Skip navigation links
A C D E I N P S T W 

A

AdvancedMatchers - Class in net.obvj.junit.utils.matchers
A class that groups all Matchers provided by junit-utils, so that they can be accessed with a single static import declaration.
assertException(Class<? extends Throwable>, Throwable) - Static method in class net.obvj.junit.utils.TestUtils
A utility method to assert that a given throwable matches the expected class.
assertException(Class<? extends Throwable>, String, Throwable) - Static method in class net.obvj.junit.utils.TestUtils
A utility method to assert that a given throwable matches the expected class and message.
assertException(Class<? extends Throwable>, String, Class<? extends Throwable>, Throwable) - Static method in class net.obvj.junit.utils.TestUtils
A utility method to assert that a given throwable matches the expected class, cause and message.
assertException(Class<? extends Throwable>, Supplier<?>) - Static method in class net.obvj.junit.utils.TestUtils
A utility method to assert the expected exception thrown by a supplying function.
assertException(Class<? extends Throwable>, String, Supplier<?>) - Static method in class net.obvj.junit.utils.TestUtils
A utility method to assert the expected exception and message thrown by a supplying function.
assertException(Class<? extends Throwable>, String, Class<? extends Throwable>, Supplier<?>) - Static method in class net.obvj.junit.utils.TestUtils
A utility method to assert the expected exception, message and cause thrown by a supplying function.
assertException(Class<? extends Throwable>, Runnable) - Static method in class net.obvj.junit.utils.TestUtils
A utility method to assert the expected exception thrown by a given procedure, that is, a function that accepts no arguments and returns void (e.g., a Runnable's run() method).
assertException(Class<? extends Throwable>, String, Runnable) - Static method in class net.obvj.junit.utils.TestUtils
A utility method to assert the expected exception and message thrown by a given procedure, that is, a function that accepts no arguments and returns void (e.g., a Runnable's run() method).
assertException(Class<? extends Throwable>, String, Class<? extends Throwable>, Runnable) - Static method in class net.obvj.junit.utils.TestUtils
A utility method to assert the expected exception, message and cause thrown by a given procedure, that is, a function that accepts no arguments and returns void (e.g., a Runnable's run() method).
assertInstantiationNotAllowed(Class<?>) - Static method in class net.obvj.junit.utils.TestUtils
Tests that no instances of an utility class are created.
assertInstantiationNotAllowed(Class<?>, Class<? extends Throwable>) - Static method in class net.obvj.junit.utils.TestUtils
Tests that no instances of an utility class are created.
assertInstantiationNotAllowed(Class<?>, Class<? extends Throwable>, String) - Static method in class net.obvj.junit.utils.TestUtils
Tests that no instances of an utility class are created.
assertNegativeNumber(Number) - Static method in class net.obvj.junit.utils.TestUtils
Assert that a number is negative.
assertPositiveNumber(Number) - Static method in class net.obvj.junit.utils.TestUtils
Assert that a number is positive.
assertStringContains(String, String...) - Static method in class net.obvj.junit.utils.TestUtils
Tests that the given test string contains all of the expected strings.
assertStringDoesNotContain(String, String...) - Static method in class net.obvj.junit.utils.TestUtils
Tests that the given test string does not contain any of the expected strings.

C

containsAll(String...) - Static method in class net.obvj.junit.utils.matchers.AdvancedMatchers
Creates a matcher that matches if the examined string contains all of the specified substrings (regardless of the order they appear in the string).
containsAll(String...) - Static method in class net.obvj.junit.utils.matchers.StringMatcher
Creates a matcher that matches if the examined string contains all of the specified substrings (regardless of the order they appear in the string).
containsAny(String...) - Static method in class net.obvj.junit.utils.matchers.AdvancedMatchers
Creates a matcher that matches if the examined string contains any of the specified substrings.
containsAny(String...) - Static method in class net.obvj.junit.utils.matchers.StringMatcher
Creates a matcher that matches if the examined string contains any of the specified substrings.
containsNone(String...) - Static method in class net.obvj.junit.utils.matchers.AdvancedMatchers
Creates a matcher that matches if the examined string contains none of the specified substrings.
containsNone(String...) - Static method in class net.obvj.junit.utils.matchers.StringMatcher
Creates a matcher that matches if the examined string contains none of the specified substrings.

D

describeTo(Description) - Method in class net.obvj.junit.utils.matchers.ExceptionMatcher
Describes the "expected" pat of the test description.
describeTo(Description) - Method in class net.obvj.junit.utils.matchers.InstantiationNotAllowedMatcher
Describes the "expected" pat of the test description.
describeTo(Description) - Method in class net.obvj.junit.utils.matchers.IsNegativeMatcher
Describes the "expected" pat of the test description.
describeTo(Description) - Method in class net.obvj.junit.utils.matchers.IsPositiveMatcher
Describes the "expected" pat of the test description.
describeTo(Description) - Method in class net.obvj.junit.utils.matchers.StringMatcher
Describes the "expected" pat of the test description.

E

exception(Class<? extends Exception>) - Static method in class net.obvj.junit.utils.matchers.AdvancedMatchers
This method behaves exactly the same as calling AdvancedMatchers.throwsException(Class).
exception(Class<? extends Exception>) - Static method in class net.obvj.junit.utils.matchers.ExceptionMatcher
This method behaves exactly the same as calling ExceptionMatcher.throwsException(Class).
ExceptionMatcher - Class in net.obvj.junit.utils.matchers
A Matcher that matches if a procedure throws an expected exception.
execute() - Method in interface net.obvj.junit.utils.Procedure
Executes this procedure.

I

ignoreCase() - Method in class net.obvj.junit.utils.matchers.StringMatcher
Tells the matcher to compare strings irrespective of case.
instantiationNotAllowed() - Static method in class net.obvj.junit.utils.matchers.AdvancedMatchers
Creates a matcher that matches if the examined class cannot be instantiated, which is particularly useful for utility classes.
instantiationNotAllowed() - Static method in class net.obvj.junit.utils.matchers.InstantiationNotAllowedMatcher
Creates a matcher that matches if the examined class cannot be instantiated, which is particularly useful for utility classes.
InstantiationNotAllowedMatcher - Class in net.obvj.junit.utils.matchers
A Matcher that checks that instantiation is not allowed for a given class, which is particularly useful for utility classes, for example.
InstantiationNotAllowedMatcher() - Constructor for class net.obvj.junit.utils.matchers.InstantiationNotAllowedMatcher
 
isNegative() - Static method in class net.obvj.junit.utils.matchers.AdvancedMatchers
A matcher that matches if a Number is negative.
isNegative() - Static method in class net.obvj.junit.utils.matchers.IsNegativeMatcher
Creates a matcher that matches if the examined object is a negative number.
IsNegativeMatcher - Class in net.obvj.junit.utils.matchers
A matcher that matches if a Number is negative.
IsNegativeMatcher() - Constructor for class net.obvj.junit.utils.matchers.IsNegativeMatcher
 
isPositive() - Static method in class net.obvj.junit.utils.matchers.AdvancedMatchers
A matcher that matches if a Number is positive.
isPositive() - Static method in class net.obvj.junit.utils.matchers.IsPositiveMatcher
Creates a matcher that matches if the examined object is a positive number.
IsPositiveMatcher - Class in net.obvj.junit.utils.matchers
A matcher that matches if a Number is positive.
IsPositiveMatcher() - Constructor for class net.obvj.junit.utils.matchers.IsPositiveMatcher
 

N

net.obvj.junit.utils - package net.obvj.junit.utils
Common utilities for working with JUnit.
net.obvj.junit.utils.matchers - package net.obvj.junit.utils.matchers
Provides matchers in general, for usage with org.hamcrest.MatcherAssert.

P

Procedure - Interface in net.obvj.junit.utils
A functional interface that can be used to implement any generic block of code that potentially throws an exception.

S

StringMatcher - Class in net.obvj.junit.utils.matchers
A Matcher that evaluates the content of a string of characters against one or more substrings.

T

TestUtils - Class in net.obvj.junit.utils
Common utilities for working with unit tests.
throwing(Class<? extends Exception>) - Method in class net.obvj.junit.utils.matchers.InstantiationNotAllowedMatcher
Assigns an expected Exception (optional step).
throwsException() - Static method in class net.obvj.junit.utils.matchers.AdvancedMatchers
Creates a matcher that matches if the examined procedure throws any exception.
throwsException(Class<? extends Exception>) - Static method in class net.obvj.junit.utils.matchers.AdvancedMatchers
Creates a matcher that matches if the examined procedure throws a given exception.
throwsException() - Static method in class net.obvj.junit.utils.matchers.ExceptionMatcher
Creates a matcher that matches if the examined procedure throws any exception.
throwsException(Class<? extends Exception>) - Static method in class net.obvj.junit.utils.matchers.ExceptionMatcher
Creates a matcher that matches if the examined procedure throws a given exception.
throwsNoException() - Static method in class net.obvj.junit.utils.matchers.AdvancedMatchers
Creates a matcher that matches if the examined procedure throws no exception.
throwsNoException() - Static method in class net.obvj.junit.utils.matchers.ExceptionMatcher
Creates a matcher that matches if the examined procedure throws no exception.

W

withCause(Class<? extends Throwable>) - Method in class net.obvj.junit.utils.matchers.ExceptionMatcher
Assigns an expected cause for evaluation.
withCause(ExceptionMatcher) - Method in class net.obvj.junit.utils.matchers.ExceptionMatcher
Assigns another ExceptionMatcher to be used for the exception cause validation.
withMessage(Matcher<String>) - Method in class net.obvj.junit.utils.matchers.ExceptionMatcher
Assigns an external Matcher to be used in combination for the exception message validation.
withMessage(String) - Method in class net.obvj.junit.utils.matchers.ExceptionMatcher
Assigns an expected message for validation.
withMessage(String) - Method in class net.obvj.junit.utils.matchers.InstantiationNotAllowedMatcher
Assigns an expected message for Exception validation (optional).
withMessage(Matcher<String>) - Method in class net.obvj.junit.utils.matchers.InstantiationNotAllowedMatcher
Assigns an external Matcher to be used in combination for the exception message validation (optional).
withMessageContaining(String...) - Method in class net.obvj.junit.utils.matchers.ExceptionMatcher
Assigns one or more expected substrings for exception message validation.
withNoCause() - Method in class net.obvj.junit.utils.matchers.ExceptionMatcher
Instruct the matcher to ensure that the expected exception has no cause.
A C D E I N P S T W 
Skip navigation links

Copyright © 2024. All rights reserved.