Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- ABSTRACT - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
- AbstractArrayNodeConversion<T> - Class in org.tudalgo.algoutils.tutor.general.conversion
- AbstractArrayNodeConversion() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.AbstractArrayNodeConversion
- AbstractArrayNodeConversion(AbstractArrayNodeConversion<?>) - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.AbstractArrayNodeConversion
- AccessTransformer - Class in org.tudalgo.algoutils.transform
- AccessTransformer() - Constructor for class org.tudalgo.algoutils.transform.AccessTransformer
- actual - Variable in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult
- actual - Variable in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult.Builder
- actual() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult
- actual() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Result
-
Returns the actual of this result.
- actual(AT) - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult.Builder
- actual(AT) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Result.Builder
-
Sets the actual behavior of the result.
- actual(T, boolean) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.ResultOfExceptionalCall.Builder
-
Set the actual exception of the correct type and if this exception fulfils the expected throwable.
- Actual - Interface in org.tudalgo.algoutils.tutor.general.assertions.actual
-
A type representing the actual behavior in a test.
- ActualException<T extends Throwable> - Interface in org.tudalgo.algoutils.tutor.general.assertions.actual
-
A type representing the expected exceptional behavior in a test.
- ActualExceptions - Class in org.tudalgo.algoutils.tutor.general.assertions.actual
-
A collection of methods for building actual exceptions.
- ActualObject<T> - Interface in org.tudalgo.algoutils.tutor.general.assertions.actual
-
A type representing the actual object in a test.
- add(String, Object) - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicContext.Builder
- add(String, Object) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Context.Builder
- add(Context...) - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicContext.Builder
- add(Context...) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Context.Builder
- add(Property...) - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicContext.Builder
- add(Property...) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Context.Builder
- addImplementsInterface(String) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Adds an interface matcher used for the test class.
- addImplementsInterface(String, double) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Adds an interface matcher used for the test class.
- addImplementsInterface(IdentifierMatcher) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Adds an interface matcher used for the test class.
- addParameter(Class<?>) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Adds an expected parameter matchers to this tester.
- addParameter(Class<?>, String, double) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Adds an expected parameters' matcher to this tester.
- addParameter(ParameterMatcher...) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Adds an expected parameters' matcher to this tester.
- AlgoUtils - Class in org.tudalgo.algoutils.tutor.general
- AlgoUtils() - Constructor for class org.tudalgo.algoutils.tutor.general.AlgoUtils
- allowSubTypes - Variable in class org.tudalgo.algoutils.reflect.ParameterMatcher
-
The indicator whether to also match subtypes derived from
ParameterMatcher.parameterType. - allowSuperClass - Variable in class org.tudalgo.algoutils.reflect.AttributeMatcher
-
The indicator whether to also match super implementations.
- allowSuperClass - Variable in class org.tudalgo.algoutils.reflect.MethodTester
-
Indicator if super class check are allowed.
- always() - Static method in interface org.tudalgo.algoutils.tutor.general.match.Matcher
-
Returns an always positive-matching matcher.
- and(Matcher<U>) - Method in interface org.tudalgo.algoutils.tutor.general.match.Matcher
- ANNOTATION - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Link.Kind
- ANNOTATION - Static variable in class org.tudalgo.algoutils.reflect.TestUtils
- ARRAY - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Link.Kind
- ArrayConverter - Class in org.tudalgo.algoutils.tutor.general.conversion
-
A collection of simple
ArgumentConverters for using JSON arrays in JUnit tests. - ArrayConverter() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter
- ArrayConverter.Auto - Class in org.tudalgo.algoutils.tutor.general.conversion
-
Automatically convert
ArrayNodeto any supported parameter type. - ArrayConverter.BigDecimal - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.BigDecimal2D - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.BigInteger - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.BigInteger2D - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.Boolean - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.Boolean2D - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.Double - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.Double2D - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.Float - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.Float2D - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.Integer - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.Integer2D - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.Long - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.Long2D - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.Number - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.Number2D - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.Short - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.Short2D - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.String - Class in org.tudalgo.algoutils.tutor.general.conversion
- ArrayConverter.String2D - Class in org.tudalgo.algoutils.tutor.general.conversion
- assertAccessModifier() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the access modifier count is correct and fails it with a predefined message if it fails.
- assertAccessModifier() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Tests whether the actual access modifier count matches with the expected one.
- assertCallEquals(T, ObjectCallable<T>, Context, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the callable returns an object equal to the given expected object.
- assertCallFalse(ObjectCallable<Boolean>, Context, PreCommentSupplier<? super ResultOfObject<Boolean>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the callable returns
Boolean.FALSE. - assertCallNotEquals(T, ObjectCallable<T>, Context, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the callable returns an object not equal to the given object.
- assertCallNotNull(ObjectCallable<T>, Context, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the callable returns an object.
- assertCallNotSame(T, ObjectCallable<T>, Context, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the given callable does not return the given object.
- assertCallNull(ObjectCallable<T>, Context, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the given callable returns null.
- assertCallSame(T, ObjectCallable<T>, Context, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the given callable returns the given object.
- assertCallTrue(ObjectCallable<Boolean>, Context, PreCommentSupplier<? super ResultOfObject<Boolean>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the given callable returns
Boolean.TRUE. - assertclassInstanceResolved() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the class instance of the tested class is not
null. - assertClassNotNull(Class<?>, String) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the class instance is not
nulland fails with a proper message if it isnull. - assertClassResolved() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests that
ClassTester.theClassis notnulland fails with the predefined message if it cannot be resolved. - assertClassResolved() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Tests whether the class tester used to invoke the method can be resolved.
- assertClassTesterNotNull() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Tests whether the class tester used to invoke the method is not
null. - assertConstructorExists(TypeLink, Matcher<? super ConstructorLink>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions3
- assertConstructorValid(Constructor<T>, int, ArrayList<ParameterMatcher>) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether a constructor was declared correctly.
- assertConstructorValid(Constructor<T>, int, ParameterMatcher...) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether a constructor was declared correctly.
- assertConstructsNotUsed(List<Class<? extends CtCodeElement>>) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Tests whether none of the blacklisted constructs where used in the constructor.
- assertCorrectInterfaces(TypeLink, Matcher<? super TypeLink>...) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions3
- assertCorrectModifiers(T, Modifier...) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions3
- assertCorrectParameters(T, Matcher<? super TypeLink>...) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions3
- assertCorrectReturnType(MethodLink, Matcher<TypeLink>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions3
- assertCorrectStaticType(FieldLink, Matcher<? super FieldLink>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions3
- assertCorrectSuperType(TypeLink, Matcher<? super TypeLink>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions3
- assertDoesNotImplementAnyInterfaces() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether there are no interface extension.
- assertEnumConstants(String[]) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the enum constants with the specified names exists.
- assertEquals(T, T, Context, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the given actual object is equal to the given expected object.
- assertFalse(boolean, Context, PreCommentSupplier<? super ResultOfObject<Boolean>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the callable returns
Boolean.FALSE. - assertFieldEquals(Field, Object) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether a field has a certain content.
- assertFieldEquals(Field, Object, String) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the specified field has a specified content.
- assertFieldExists(TypeLink, Matcher<? super FieldLink>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions3
- assertHasElseStatement(CtIf, Context, PreCommentSupplier<? super Result<?, ?, ?, ?>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions4
- assertHasEnumConstant(TypeLink, Matcher<? super Stringifiable>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions3
- assertHasGetter(Field, ParameterMatcher...) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the specified field has a Getter-Method.
- assertHasSetter(Field) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the specified field has a Setter-Method.
- assertHasSetter(Field, Object) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the specified field has a Setter-Method.
- assertImplementsInterfaces() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether all described interfaces by the specified matchers are being extended.
- assertImplementsInterfaces(List<IdentifierMatcher>) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether all described interfaces by the specified matchers are being extended.
- assertInvokeable() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Tests whether the method can be invoked.
- Assertions2 - Class in org.tudalgo.algoutils.tutor.general.assertions
-
A collection of assertion methods.
- Assertions3 - Class in org.tudalgo.algoutils.tutor.general.assertions
- Assertions3() - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.Assertions3
- Assertions4 - Class in org.tudalgo.algoutils.tutor.general.assertions
- assertIsCtElementOfType(Class<T>, CtElement, Context, PreCommentSupplier<? super ResultOfObject<Class<? extends CtElement>>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions4
- assertIsEnum() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the test class is an enum.
- assertIsEnum(Class<?>, String) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the class instance is an enum.
- assertIsInterface() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the test class is an interface.
- assertIsInterface(Class<?>, String) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the class instance is an interface.
- assertIsNotIteratively(CtMethod<?>, Context, PreCommentSupplier<? super ResultOfFail>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions4
- assertIsNotRecursively(CtMethod<?>, Context, PreCommentSupplier<? super ResultOfFail>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions4
- assertIsOneStatement(CtStatement, Context, PreCommentSupplier<? super ResultOfObject<CtStatement>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions4
- assertIsPlainClass() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the test class is a plain class.
- assertIsPlainClass(Class<?>, String) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the class instance is a plain class.
- assertMethodExists(TypeLink, Matcher<? super MethodLink>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions3
- assertMethodNotNull(Method, String) - Static method in class org.tudalgo.algoutils.reflect.MethodTester
-
Tests whether the specified method is not
null. - assertMethodResolved() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Tests whether the test method could be resolved.
- assertModifier(int, int, String) - Static method in class org.tudalgo.algoutils.reflect.TestUtils
-
Tests whether the modifiers are correct.
- assertModifier(int, Class<?>) - Static method in class org.tudalgo.algoutils.reflect.TestUtils
-
Tests whether the modifiers of a class are correct.
- assertModifier(int, Constructor<?>) - Static method in class org.tudalgo.algoutils.reflect.TestUtils
-
Tests whether the modifiers of a constructor are correct.
- assertModifier(int, Field) - Static method in class org.tudalgo.algoutils.reflect.TestUtils
-
Tests whether the modifiers of a field are correct.
- assertModifier(int, Method) - Static method in class org.tudalgo.algoutils.reflect.TestUtils
-
Tests whether the modifiers of a method are correct.
- assertNormal() - Method in interface org.tudalgo.algoutils.tutor.general.call.Call
-
Asserts that the call resulted in a result of type
typeand returns the result. - assertNormal(Runnable) - Static method in class org.tudalgo.algoutils.tutor.general.TutorAssertions
-
Shortcut for
TutorAssertions.call(Runnable)andCall.assertNormal(). - assertNormal(Runnable, String) - Static method in class org.tudalgo.algoutils.tutor.general.TutorAssertions
-
Shortcut for
TutorAssertions.call(Runnable)andCall.assertNormal(String). - assertNormal(Runnable, Supplier<String>) - Static method in class org.tudalgo.algoutils.tutor.general.TutorAssertions
-
Shortcut for
TutorAssertions.call(Callable)andCall.assertNormal(Supplier). - assertNormal(String) - Method in interface org.tudalgo.algoutils.tutor.general.call.Call
-
Asserts that the call resulted in a result of type
typeand returns the result. - assertNormal(Callable<R>) - Static method in class org.tudalgo.algoutils.tutor.general.TutorAssertions
-
Shortcut for
TutorAssertions.call(Callable)andCall.assertNormal(). - assertNormal(Callable<R>, String) - Static method in class org.tudalgo.algoutils.tutor.general.TutorAssertions
-
Shortcut for
TutorAssertions.call(Callable)andCall.assertNormal(String). - assertNormal(Callable<R>, Supplier<String>) - Static method in class org.tudalgo.algoutils.tutor.general.TutorAssertions
-
Shortcut for
TutorAssertions.call(Callable)andCall.assertNormal(Supplier). - assertNormal(Supplier<String>) - Method in interface org.tudalgo.algoutils.tutor.general.call.Call
-
Asserts that the call resulted in a result of type
typeand returns the result. - assertNormal(Supplier<String>) - Method in class org.tudalgo.algoutils.tutor.general.call.NormalResult
- assertNormal(Supplier<String>) - Method in class org.tudalgo.algoutils.tutor.general.call.ThrowableResult
- assertNotEquals(T, T, Context, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the given actual object is not equal to the given unexpected object.
- assertNotNull(T, Context, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the given actual object is not null.
- assertNotSame(T, T, Context, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the given actual object is not the same as the given unexpected object.
- assertNull(T, Context, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the given actual object is null.
- assertParametersMatch() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Tests whether the method parameters matches with the expected parameters.
- assertParametersMatch(Method, String, List<ParameterMatcher>, boolean) - Static method in class org.tudalgo.algoutils.reflect.MethodTester
-
Tests whether the method parameters match.
- assertParametersMatch(List<ParameterMatcher>, List<Parameter>, boolean) - Static method in class org.tudalgo.algoutils.reflect.MethodTester
-
Tests whether the method parameters match.
- assertReturnType() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Tests whether the actual return type matches the expected return type.
- assertReturnValueEquals(Object, Object...) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Tests whether the return value after the invocation with the specified parameters are correct.
- assertReturnValueEquals(Object, String, Object...) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Tests whether the return value after the invocation with the specified parameters are correct.
- assertSame(T, T, Context, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the given actual object is the same as the given expected object.
- assertSpied() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether this class is a spy.
- assertSuperclass() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the super classes fo the test classes matches the specified super classes.
- assertThrows(Class<E>) - Method in interface org.tudalgo.algoutils.tutor.general.call.Call
-
Asserts that the call resulted in n throwable of type
typeand returns the throwable. - assertThrows(Class<E>, String) - Method in interface org.tudalgo.algoutils.tutor.general.call.Call
-
Asserts that the call resulted in a throwable of type
typeand returns the throwable. - assertThrows(Class<E>, Supplier<String>) - Method in interface org.tudalgo.algoutils.tutor.general.call.Call
-
Asserts that the call resulted in a throwable of type
typeand returns the throwable. - assertThrows(Class<T>, Supplier<String>) - Method in class org.tudalgo.algoutils.tutor.general.call.NormalResult
- assertThrows(Class<T>, Supplier<String>) - Method in class org.tudalgo.algoutils.tutor.general.call.ThrowableResult
- assertThrows(Class<T>, Callable, Context, PreCommentSupplier<? super ResultOfExceptionalCall<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the given callable throws an exception of the given expected type.
- assertThrows(Runnable, Class<E>) - Static method in class org.tudalgo.algoutils.tutor.general.TutorAssertions
-
Shortcut for
TutorAssertions.call(Runnable)andCall.assertThrows(Class). - assertThrows(Runnable, Class<T>, String) - Static method in class org.tudalgo.algoutils.tutor.general.TutorAssertions
-
Shortcut for
TutorAssertions.call(Runnable)andCall.assertThrows(Class, String). - assertThrows(Runnable, Class<T>, Supplier<String>) - Static method in class org.tudalgo.algoutils.tutor.general.TutorAssertions
-
Shortcut for
TutorAssertions.call(Runnable)andCall.assertThrows(Class, String). - assertThrows(Callable<?>, Class<E>) - Static method in class org.tudalgo.algoutils.tutor.general.TutorAssertions
-
Shortcut for
TutorAssertions.call(Callable)andCall.assertThrows(Class). - assertThrows(Callable<?>, Class<T>, String) - Static method in class org.tudalgo.algoutils.tutor.general.TutorAssertions
-
Shortcut for
TutorAssertions.call(Callable)andCall.assertThrows(Class, String). - assertThrows(Callable<?>, Class<T>, Supplier<String>) - Static method in class org.tudalgo.algoutils.tutor.general.TutorAssertions
-
Shortcut for
TutorAssertions.call(Callable)andCall.assertThrows(Class, Supplier). - assertTrue(boolean, Context, PreCommentSupplier<? super ResultOfObject<Boolean>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Asserts that the given boolean value is true.
- assertTypeExists(PackageLink, Matcher<? super TypeLink>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions3
- assureClassResolved() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Resolves the class if necessary.
- assureMethodResolved() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Assures that the method has been resolved.
- assureSpied() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Makes the class a spy if not done already.
- assureSpoonLauncherModelsBuild() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns instance of a class tester with the needed configuration for spoon.
- AttributeMatcher - Class in org.tudalgo.algoutils.reflect
-
An attribute Matcher based on
IdentifierMatcher. - AttributeMatcher(String, double, int, Class<?>) - Constructor for class org.tudalgo.algoutils.reflect.AttributeMatcher
-
Constructs and initializes an attribute matcher to match the specified attribute with no super implementation match.
- AttributeMatcher(String, double, int, Class<?>, boolean) - Constructor for class org.tudalgo.algoutils.reflect.AttributeMatcher
-
Constructs and initializes an attribute matcher to match the specified attribute.
- AttributeMatcher(String, double, Class<?>) - Constructor for class org.tudalgo.algoutils.reflect.AttributeMatcher
-
Constructs and initializes an attribute matcher to match the specified attribute with no super implementation match.
- AttributeMatcher(String, double, Class<?>, boolean) - Constructor for class org.tudalgo.algoutils.reflect.AttributeMatcher
-
Constructs and initializes an attribute matcher to match the specified attribute.
- Auto() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Auto
B
- baseConverter - Variable in class org.tudalgo.algoutils.tutor.general.conversion.AbstractArrayNodeConversion
-
Base conversion (n-1)d array to n-d array.
- BasicCommentFactory - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
-
A basic implementation of a comment factory.
- BasicCommentFactory(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicCommentFactory
-
Constructs a new comment factory with the given environment.
- BasicConstructorLink - Class in org.tudalgo.algoutils.tutor.general.reflections
- BasicContext - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
-
A basic implementation of a context.
- BasicContext.Builder - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicContext.Builder.Factory - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicEnumConstantLink - Class in org.tudalgo.algoutils.tutor.general.reflections
- BasicEnvironment - Class in org.tudalgo.algoutils.tutor.general.basic
- BasicFail - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
-
A basic implementation an always failing test.
- BasicFail(Environment, Expected) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicFail
-
Constructs a new fail with the given environment.
- BasicFail.Builder - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicFail.Builder.Factory - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicFieldLink - Class in org.tudalgo.algoutils.tutor.general.reflections
- BasicLink - Class in org.tudalgo.algoutils.tutor.general.reflections
- BasicLink() - Constructor for class org.tudalgo.algoutils.tutor.general.reflections.BasicLink
- BasicMatchers - Class in org.tudalgo.algoutils.tutor.general.match
- BasicMatchers() - Constructor for class org.tudalgo.algoutils.tutor.general.match.BasicMatchers
- BasicMethodLink - Class in org.tudalgo.algoutils.tutor.general.reflections
-
A basic implementation of a
method link. - BasicPackageLink - Class in org.tudalgo.algoutils.tutor.general.reflections
- BasicProperty - Record Class in org.tudalgo.algoutils.tutor.general.assertions.basic
-
A basic implementation of a property.
- BasicProperty(String, Object) - Constructor for record class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicProperty
-
Creates an instance of a
BasicPropertyrecord class. - BasicReflectionMatchers - Class in org.tudalgo.algoutils.tutor.general.match
- BasicResult<RT extends Result<RT,
AT, TT, ET>, AT extends Actual, TT extends Test<TT, ET, RT, AT>, ET extends Expected> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic -
An abstract basic implementation of a test.
- BasicResult(Environment, TT, AT, Exception) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult
-
Constructs a new result with the given environment, test, actual behavior, exception and state if the test was successful.
- BasicResult.Builder<RT extends Result<RT,
AT, TT, ET>, AT extends Actual, TT extends Test<TT, ET, RT, AT>, ET extends Expected, BT extends Result.Builder<RT, AT, TT, ET, BT>> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic - BasicResult.Builder.Factory<RT extends Result<RT,
AT, TT, ET>, AT extends Actual, TT extends Test<TT, ET, RT, AT>, ET extends Expected, BT extends Result.Builder<RT, AT, TT, ET, BT>> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic - BasicResultOfCall - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicResultOfCall(Environment, TestOfCall, Nothing, Exception) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfCall
- BasicResultOfCall.Builder - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicResultOfExceptionalCall<T extends Exception> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicResultOfExceptionalCall(Environment, TestOfExceptionalCall<T>, ActualException<T>, Exception, boolean) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfExceptionalCall
- BasicResultOfExceptionalCall.Builder<T extends Exception> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicResultOfExceptionalCall.Builder.Factory<T extends Exception> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicResultOfFail - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
-
A basic implementation of a result of an always failing test.
- BasicResultOfFail(Environment, Fail, Actual, Exception) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfFail
-
Constructs a new result with the given environment, test and exception.
- BasicResultOfFail.Builder - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicResultOfFail.Builder.Factory - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicResultOfObject<T> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
-
A basic implementation of a result of an object test.
- BasicResultOfObject(Environment, TestOfObject<T>, ActualObject<T>, Exception, boolean) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfObject
-
Constructs a new result of an object test with the given environment, test, actual object, exception and state if the test was successful.
- BasicResultOfObject.Builder<T> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicResultOfObject.Builder.Factory<T> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicStringMatchers - Class in org.tudalgo.algoutils.tutor.general.match
-
A collection of basic matchers for stringifiable objects.
- BasicTest<TT extends Test<TT,
ET, RT, AT>, ET extends Expected, RT extends Result<RT, AT, TT, ET>, AT extends Actual> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic -
An abstract basic implementation of a test.
- BasicTest(Environment, ET) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTest
-
Constructs a new test with the given environment and expected behavior.
- BasicTest.Builder<TT extends Test<TT,
ET, RT, AT>, ET extends Expected, RT extends Result<RT, AT, TT, ET>, AT extends Actual, BT extends Test.Builder<TT, ET, RT, AT, BT>> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic - BasicTest.Builder.Factory<TT extends Test<TT,
ET, RT, AT>, ET extends Expected, RT extends Result<RT, AT, TT, ET>, AT extends Actual, BT extends Test.Builder<TT, ET, RT, AT, BT>> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic - BasicTestOfCall - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicTestOfCall(Environment, Nothing) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfCall
- BasicTestOfCall.Builder - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicTestOfCall.Builder.Factory - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicTestOfExceptionalCall<T extends Exception> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
-
A basic implementation of a test of a throwable call.
- BasicTestOfExceptionalCall(Environment, ExpectedException<T>) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfExceptionalCall
-
Constructs a new test of a throwable call with the given environment and expected exception.
- BasicTestOfExceptionalCall.Builder<T extends Exception> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicTestOfExceptionalCall.Builder.Factory<T extends Exception> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicTestOfObject<T> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
-
A basic implementation of a test of an object.
- BasicTestOfObject(Environment, ExpectedObject<T>) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfObject
-
Constructs a new test of an object with the given environment and expected object.
- BasicTestOfObject.Builder<T> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicTestOfObject.Builder.Factory<T> - Class in org.tudalgo.algoutils.tutor.general.assertions.basic
- BasicTypeLink - Class in org.tudalgo.algoutils.tutor.general.reflections
-
A basic implementation of a
type link. - behavior() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.actual.Actual
-
Returns an object representing the behavior of the test.
- behavior() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.actual.ActualObject
-
Returns the object under test.
- behavior() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.expected.Expected
-
Returns an object representing the expected behavior of the test.
- behavior() - Method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
- BigDecimal() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.BigDecimal
- BigDecimal2D() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.BigDecimal2D
- BigInteger() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.BigInteger
- BigInteger2D() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.BigInteger2D
- Boolean() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Boolean
- Boolean2D() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Boolean2D
- BRACKET_FORMATTER - Static variable in interface org.tudalgo.algoutils.tutor.general.assertions.actual.Actual
-
A function enclosing a string with brackets.
- BRACKET_FORMATTER - Static variable in interface org.tudalgo.algoutils.tutor.general.assertions.expected.Expected
-
A function enclosing a string with brackets.
- BRIDGE - Static variable in class org.tudalgo.algoutils.reflect.TestUtils
- build() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicContext.Builder
- build() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicFail.Builder
- build() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfCall.Builder
- build() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfExceptionalCall.Builder
- build() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfFail.Builder
- build() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfObject.Builder
- build() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfCall.Builder
- build() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfExceptionalCall.Builder
- build() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfObject.Builder
- build() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Context.Builder
-
Returns a
Contextwith the given properties. - build() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Result.Builder
-
Builds a result for the given properties and returns it.
- build() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Test.Builder
-
Builds a test with the configured properties and return this.
- builder() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicContext.Builder.Factory
- builder() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicFail.Builder.Factory
- builder() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfExceptionalCall.Builder.Factory
- builder() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfFail.Builder.Factory
- builder() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfObject.Builder.Factory
- builder() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfCall.Builder.Factory
- builder() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfExceptionalCall.Builder.Factory
- builder() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfObject.Builder.Factory
- builder() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Context.Builder.Factory
-
Returns a new builder.
- builder() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Result.Builder.Factory
-
Creates a new result builder.
- builder() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.ResultOfExceptionalCall.Builder.Factory
- builder() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Test.Builder.Factory
-
Creates a new builder for a test.
- Builder(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicFail.Builder
- Builder(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult.Builder
- Builder(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfCall.Builder
- Builder(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfExceptionalCall.Builder
- Builder(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfFail.Builder
- Builder(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfObject.Builder
- Builder(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTest.Builder
- Builder(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfCall.Builder
C
- call() - Method in interface org.tudalgo.algoutils.tutor.general.callable.Callable
- call() - Method in interface org.tudalgo.algoutils.tutor.general.callable.ObjectCallable
- call(Runnable) - Static method in class org.tudalgo.algoutils.tutor.general.TutorAssertions
-
Calls
runnableand returns a correspondingCallobject. - call(Callable<R>) - Static method in class org.tudalgo.algoutils.tutor.general.TutorAssertions
-
Calls
callableand returns a correspondingCallobject. - call(Callable, Context, PreCommentSupplier<? super ResultOfCall>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
- Call<R> - Interface in org.tudalgo.algoutils.tutor.general.call
- Callable - Interface in org.tudalgo.algoutils.tutor.general.callable
- callObject(ObjectCallable<T>, Context, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
- cause() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult
- cause() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Result
-
If this result is not Result.successful() due to an exception, this method returns the causing exception.
- check(Context, PreCommentSupplier<? super RT>) - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult
- check(Context, PreCommentSupplier<? super RT>) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Result
-
If this result is not successful, this method throws an
AssertionFailedErrorinforming about the failure. - CLASS - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Link.Kind
- CLASS - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
- class_resolved() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns
trueifClassTester.theClassis not null. - classInstanceResolved() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns
trueif the class instance of the tested class is notnull. - classResolved() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Returns
trueif the class tester used to invoke the method is notnulland can be resolved. - ClassTester<T> - Class in org.tudalgo.algoutils.reflect
-
A class tester which tests properties of a class.
- ClassTester(Class<T>) - Constructor for class org.tudalgo.algoutils.reflect.ClassTester
-
Constructs and initializes a class tester.
- ClassTester(String, String) - Constructor for class org.tudalgo.algoutils.reflect.ClassTester
-
Constructs and initializes a class tester.
- ClassTester(String, String, double) - Constructor for class org.tudalgo.algoutils.reflect.ClassTester
-
Constructs and initializes a class tester.
- ClassTester(String, String, double, int) - Constructor for class org.tudalgo.algoutils.reflect.ClassTester
-
Constructs and initializes a class tester.
- ClassTester(String, String, double, int, Class<? super T>, ArrayList<IdentifierMatcher>) - Constructor for class org.tudalgo.algoutils.reflect.ClassTester
-
Constructs and initializes a class tester.
- ClassTester(String, String, double, int, Class<? super T>, List<IdentifierMatcher>, T) - Constructor for class org.tudalgo.algoutils.reflect.ClassTester
-
Constructs and initializes a class tester.
- comment(RTS, Context, PreCommentSupplier<? super RTS>) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.CommentFactory
-
Returns the comment for the given test result, context and pre-comment supplier.
- comment(TS, Context, PreCommentSupplier<? super TS>) - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicCommentFactory
- CommentFactory<RT extends Result<?,
?, ?, ?>> - Interface in org.tudalgo.algoutils.tutor.general.assertions -
A type representing a factory for creating result comments.
- compareTo(Match<T>) - Method in interface org.tudalgo.algoutils.tutor.general.match.Match
- constant() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.EnumConstantLink
- CONSTRUCTOR - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Link.Kind
- ConstructorLink - Interface in org.tudalgo.algoutils.tutor.general.reflections
- context(Object...) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
- Context - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A type representing the context of a test.
- Context.Builder<BT extends Context.Builder<BT>> - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A builder for contexts.
- Context.Builder.Factory<BT extends Context.Builder<BT>> - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A factory for builders.
- contextBuilder() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Returns a contexts builder.
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.AbstractArrayNodeConversion
-
Converts a JSON array into another type.
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.BigDecimal
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.BigDecimal2D
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.BigInteger
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.BigInteger2D
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Boolean
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Boolean2D
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Double
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Double2D
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Float
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Float2D
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Integer
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Integer2D
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Long
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Long2D
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Number
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Number2D
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Short
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Short2D
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.String
- convert(ArrayNode, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.String2D
- convert(Object, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.AbstractArrayNodeConversion
- convert(Object, ParameterContext) - Method in class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Auto
- countMatchingParameters(Method, String, List<ParameterMatcher>, boolean) - Static method in class org.tudalgo.algoutils.reflect.MethodTester
-
Counts the matching parameters.
- countMatchingParameters(List<ParameterMatcher>, List<Parameter>, boolean) - Static method in class org.tudalgo.algoutils.reflect.MethodTester
-
Counts the matching parameters.
D
- DEFAULT_ACCESS - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
- DEFAULT_FORMATTER - Static variable in interface org.tudalgo.algoutils.tutor.general.assertions.actual.ActualException
-
A function enclosing an already enclosed type with default text.
- display() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.actual.Actual
- display() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.expected.Expected
- display() - Method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
- documentation() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.WithDocumentation
-
Returns the documentation of this object.
- Double() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Double
- Double2D() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Double2D
E
- editDistance(String, String) - Static method in class org.tudalgo.algoutils.reflect.TestUtils
-
Calculates the similarity (a number within 0 and 1) between two strings.
- emptyContext() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Returns an empty contexts.
- ENUM - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Link.Kind
- ENUM - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
- ENUM - Static variable in class org.tudalgo.algoutils.reflect.TestUtils
- EnumConstantLink - Interface in org.tudalgo.algoutils.tutor.general.reflections
- environment - Variable in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult.Builder
- environment - Variable in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult.Builder.Factory
- environment - Variable in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult
- environment - Variable in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTest.Builder
- environment - Variable in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTest.Builder.Factory
- environment() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTest
-
Returns the environment used by this test.
- Environment - Interface in org.tudalgo.algoutils.tutor.general
- equalObject(T) - Static method in class org.tudalgo.algoutils.tutor.general.match.BasicMatchers
- equals(Object) - Method in record class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicProperty
-
Returns true iff the object is a property with the same key.
- equals(Object) - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicLink
- equalsFalse() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedObjects
-
Returns an expected object where the object is expected to be
Boolean.FALSE - equalsNull() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedObjects
-
Returns an expected object where the object is expected to be null.
- equalsTrue() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedObjects
-
Returns an expected object where the object is expected to be
Boolean.TRUE - equalTo(T) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedObjects
-
Returns an expected object where the object is expected to be equal to the actual object.
- exception - Variable in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult.Builder
- exception - Variable in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult
- exception() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.actual.ActualException
-
Returns the exception thrown in the test.
- exception() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.ResultOfExceptionalCall
-
If the test resulted in the Test.expected() expected exception}, this methods returns this exception.
- exception(Exception) - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult.Builder
- exception(Exception) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Result.Builder
-
Sets the exception of the result.
- expected - Variable in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTest.Builder
- expected() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTest
- expected() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Result
-
Returns the expected behavior of this result.
- expected() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Test
-
Returns the expected behavior of this test.
- expected(ET) - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTest.Builder
- expected(ET) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Test.Builder
-
Sets the expected behavior.
- Expected - Interface in org.tudalgo.algoutils.tutor.general.assertions.expected
-
A type representing the expected behavior in a test.
- ExpectedException<T extends Throwable> - Interface in org.tudalgo.algoutils.tutor.general.assertions.expected
-
A type representing the expected exceptional behavior in a test.
- ExpectedExceptional - Class in org.tudalgo.algoutils.tutor.general.assertions.expected
-
A collection of methods for building expected exceptional behaviors.
- ExpectedObject<T> - Interface in org.tudalgo.algoutils.tutor.general.assertions.expected
-
A type representing the expected object in a test.
- ExpectedObjects - Class in org.tudalgo.algoutils.tutor.general.assertions.expected
-
A collection of methods for building expected objects.
F
- Factory() - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicContext.Builder.Factory
- Factory(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicFail.Builder.Factory
- Factory(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult.Builder.Factory
- Factory(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfExceptionalCall.Builder.Factory
- Factory(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfFail.Builder.Factory
- Factory(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResultOfObject.Builder.Factory
- Factory(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTest.Builder.Factory
- Factory(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfCall.Builder.Factory
- Factory(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfExceptionalCall.Builder.Factory
- Factory(Environment) - Constructor for class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfObject.Builder.Factory
- fail(Exception, Context, PreCommentSupplier<? super ResultOfFail>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Fails.
- fail(Context, PreCommentSupplier<? super ResultOfFail>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Fails.
- fail(Expected, Actual, Context, PreCommentSupplier<? super ResultOfFail>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
- Fail - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A always-failing test.
- Fail.Builder - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A builder for fails.
- Fail.Builder.Factory - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A factory for
fail builders. - failBuilder() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Returns a fail builder.
- FIELD - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Link.Kind
- FieldLink - Interface in org.tudalgo.algoutils.tutor.general.reflections
-
An interface used to simply access fields.
- FINAL - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
- findClass() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Resolves a class with the current class name and similarity.
- findClass(double) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Resolves a class with the specified similarity.
- findClass(String, String, double) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Resolves a class with the specified name and similarity.
- findInstance(Class<? super T>, String) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Resolves an instance of a given class (even abstract).
- firstMatch(Collection<T>, Matcher<? super T>) - Static method in class org.tudalgo.algoutils.tutor.general.match.MatchingUtils
-
Returns the object in the given collection matched by the given matcher with the highest match score.
- Float() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Float
- Float2D() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Float2D
G
- generateDerivedClass(Class<T>, String, String) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Generates a derived class from a specified class.
- get() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicFieldLink
- get() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.FieldLink
-
Returns the object assigned to the type of this field.
- get(Object) - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicFieldLink
- get(Object) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.FieldLink
-
Returns the object assigned to the given instance.
- getAccessModifier() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns the expected access modifier.
- getAccessModifier() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Returns the expected access modifier count.
- getAllFields() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns all fields of the test class and its super classes.
- getAllFields(Class<?>) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns all fields of a class and its super classes recursively.
- getAllMethods(Class<?>) - Static method in class org.tudalgo.algoutils.reflect.MethodTester
-
Returns all fields from a class and its super classes recursively.
- getBaseConverter() - Method in class org.tudalgo.algoutils.tutor.general.conversion.AbstractArrayNodeConversion
- getClasses(String) - Static method in class org.tudalgo.algoutils.reflect.TestUtils
-
Scans all classes accessible from the context class loader which belong to the given package and subpackages.
- getClassIdentifier() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns the class matcher used on the test class.
- getClassInstance() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns class instance of the tested class.
- getClassNotFoundMessage() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Generates a predefined class not found message.
- getClassNotFoundMessage(String) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Generates a predefined class not found message.
- getClassTester() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Returns the class tester used to invoke the method.
- getClassTesterNullMessage(String) - Static method in class org.tudalgo.algoutils.reflect.MethodTester
-
Generates a predefined class tester
nullmessage. - getCommentFactory() - Method in class org.tudalgo.algoutils.tutor.general.basic.BasicEnvironment
- getCommentFactory() - Method in interface org.tudalgo.algoutils.tutor.general.Environment
- getConstructor(Matcher<? super ConstructorLink>) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Returns the constructor contained in the type linked by this type link and matched by the given matcher with the highest match score.
- getConstructors() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicTypeLink
- getConstructors() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Returns a collection of constructors declared in the type linked by this type link.
- getConstructors(Matcher<? super ConstructorLink>) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Returns a list of all constructors contained in the type linked by this type link and matched by the given matcher.
- getCtElement() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicMethodLink
- getCtElement() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicTypeLink
- getCtElement() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.WithCtElement
-
Returns the CtElement associated with the element behind this link.
- getCtElementForSourceCode(String, Class<U>, Matcher<Stringifiable>) - Static method in class org.tudalgo.algoutils.tutor.general.SpoonUtils
-
Returns a CtElement of the specified type for the specified source code.
- getDefaultValue(Class<?>) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns the default value for the specified type.
- getEnumConstant(Matcher<? super EnumConstantLink>) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Returns the enum constant contained in the type linked by this type link and matched by the given matcher with the highest match score.
- getEnumConstantMissingMessage(String) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Generates a predefined message for a missing enum constant.
- getEnumConstants() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicTypeLink
- getEnumConstants() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Returns a collection of all enum constants contained in the type linked by this type link.
- getEnumConstants(Matcher<? super EnumConstantLink>) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Returns a list of all enum constants contained in the type linked by this type link and matched by the given matcher.
- getEnumValue(Class<Enum<?>>, String, double) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns the specified enum value.
- getEnumValue(String, double) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns a specific enum value.
- getEnvironment() - Method in class org.tudalgo.algoutils.tutor.general.AlgoUtils
- getField(Matcher<? super FieldLink>) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Returns the field contained in the type linked by this type link and matched by the given matcher with the highest match score.
- getFields() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicTypeLink
- getFields() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Returns a collection of all fields contained in the type linked by this type link.
- getFields(Matcher<? super FieldLink>) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Returns a list of all fields contained in the type linked by this type link and matched by the given matcher.
- getFieldValue(Object, Field) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns the content of a field.
- getFieldValue(Field) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns the field content.
- getImplementsInterfaces() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns the implemented interfaces of the tested class.
- getInstance() - Static method in class org.tudalgo.algoutils.tutor.general.AlgoUtils
- getInstance() - Static method in class org.tudalgo.algoutils.tutor.general.basic.BasicEnvironment
- getInstance() - Static method in class org.tudalgo.algoutils.tutor.general.stringify.basic.ReflectionStringifier
-
Returns an instance of this class
- getInterface(Matcher<? super TypeLink>) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
- getInterfaceNotImplementedMessage(String) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Generates a predefined interface not found message.
- getInvalidReturnTypeMessage(String) - Static method in class org.tudalgo.algoutils.reflect.MethodTester
-
Generates a predefined message for an invalid return type.
- getInvocationCount() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Gets the number of invocations.
- getInvocations() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Gets the invocations of the test method.
- getMethod(Matcher<? super MethodLink>) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Returns the method contained in the type linked by this type link and matched by the given matcher with the highest match score.
- getMethodIdentifier() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Returns the method identifier containing the name of the method and the similarity to accept alternative identifiers.
- getMethodNotFoundMessage() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Generates a predefined method not found message.
- getMethodNotFoundMessage(String) - Static method in class org.tudalgo.algoutils.reflect.MethodTester
-
Generates a predefined method not found message.
- getMethods() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicTypeLink
- getMethods() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Returns a collection of all methods contained in the type linked by this type link.
- getMethods(Matcher<? super MethodLink>) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Returns a list of all methods contained in the type linked by this type link and matched by the given matcher.
- getMockingDetails() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns the
MockingDetailsofClassTester.theClass. - getName() - Method in class org.tudalgo.algoutils.transform.AccessTransformer
- getNameOfCtElement(Class<?>) - Static method in class org.tudalgo.algoutils.tutor.general.SpoonUtils
-
Returns a human-readable name of the given element type.
- getNameOfCtElement(CtElement) - Static method in class org.tudalgo.algoutils.tutor.general.SpoonUtils
-
Returns a human-readable name of the given element.
- getNewInstance() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns a new test class instance.
- getNewRealInstance() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns a new test class instance.
- getParameters() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Returns the expected parameters.
- getPreComment(TR) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.PreCommentSupplier
-
Returns the pre-comment for the given result.
- getRandomEnumConstant() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns a random enum constant.
- getRandomEnumConstant(Class<Enum<?>>, String) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns a random enum constant from the available enum constants.
- getRandomParams() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Returns the random valid parameter values.
- getRandomValue(Class<?>) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns a random value for the specified type.
- getReturnType() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Returns the expected class type of the test method.
- getShouldNotHaveParameterMessage(String) - Static method in class org.tudalgo.algoutils.reflect.MethodTester
-
Generates a predefined should not have parameter message.
- getSpoon() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns the spoon launcher which allows source code analysis and transformation.
- getStringifier() - Method in class org.tudalgo.algoutils.tutor.general.basic.BasicEnvironment
- getStringifier() - Method in interface org.tudalgo.algoutils.tutor.general.Environment
- getSuperClass() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns the super class of the tested class.
- getTheClass() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns the test classes if it is already resolved.
- getTheMethod() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Returns the method that should be tested.
- getType(Matcher<? super TypeLink>) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.PackageLink
- getTypeContent(Class<?>) - Static method in class org.tudalgo.algoutils.tutor.general.ResourceUtils
-
Returns the source code of the given student solution class.
- getTypes() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicPackageLink
- getTypes() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.PackageLink
- getTypes(Matcher<? super TypeLink>) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.PackageLink
H
- hashCode() - Method in record class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicProperty
-
Returns a hash code value for this object.
- hasModifiers(Modifier...) - Static method in class org.tudalgo.algoutils.tutor.general.match.BasicReflectionMatchers
-
A matcher matching an object if the object has at least the given modifiers.
- HTML - Class in org.tudalgo.algoutils.tutor.general.stringify
I
- identical(String) - Static method in class org.tudalgo.algoutils.tutor.general.match.BasicStringMatchers
- Identifiable - Interface in org.tudalgo.algoutils.tutor.general.match
-
A type that can be identified by an identifier.
- identifier() - Method in interface org.tudalgo.algoutils.tutor.general.match.Identifiable
-
Returns the identifier of this identifiable object.
- identifier() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicFieldLink
- identifier() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicMethodLink
- identifier() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicTypeLink
- identifier() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.WithName
- IdentifierMatcher - Class in org.tudalgo.algoutils.reflect
-
An identifier Matcher.
- IdentifierMatcher(String, double) - Constructor for class org.tudalgo.algoutils.reflect.IdentifierMatcher
-
Constructs and initializes an identifier matcher to match the specified identifier.
- IdentifierMatcher(String, String, double) - Constructor for class org.tudalgo.algoutils.reflect.IdentifierMatcher
-
Constructs and initializes an identifier matcher to match the specified identifier.
- identifierName - Variable in class org.tudalgo.algoutils.reflect.IdentifierMatcher
-
The name to match.
- instanceOf(Class<T>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedExceptional
-
Returns an expected behavior where an exception of the given type is expected to be thrown.
- instanceOf(Class<U>, boolean) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedObjects
-
Returns an expected object where the object is expected be an instance of the given type.
- Integer() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Integer
- Integer2D() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Integer2D
- INTERFACE - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Link.Kind
- INTERFACE - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
- interfaces() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicTypeLink
- interfaces() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Returns a collection of all interfaces extended (interfaces) or implemented (classes and enums) by the type linked by this type link.
- interfaces(Matcher<? super TypeLink>) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
- invoke(Object...) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Invokes test method using the class tester.
- invoke(Object...) - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicConstructorLink
- invoke(Object...) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.ConstructorLink
- invoke(Object, Object...) - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicMethodLink
- invoke(Object, Object...) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.MethodLink
-
Invokes the method linked by this method link on the given instance with the given arguments.
- invokeable() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Returns
trueif the method can be invoked, more formally returnstrueif the class tester used to invoke the method, the method itself can be resolved. - invokeStatic(Object...) - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicMethodLink
- invokeStatic(Object...) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.MethodLink
-
Invokes the method linked by this method link with the given arguments.
- invokeWithRandomParams() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Invokes the test method with random parameters.
- is(int) - Method in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
- is_mock() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns
trueifClassTester.theClassis mocked. - is_spy() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Returns
trueifClassTester.theClassis a spy. - isAutograderRun() - Static method in class org.tudalgo.algoutils.reflect.TestUtils
-
Returns
trueifTestCycleResolver.getTestCycle()does not returnnull. - isLooseReturnTypeChecking() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Returns
trueif subtype are allowed for the return type. - isNot(int) - Method in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
- it(String) - Static method in class org.tudalgo.algoutils.tutor.general.stringify.HTML
- items(String, String, List<?>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
- items(String, String, List<?>, String, String) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
- items(String, List<?>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
- items(String, List<?>, String) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
- items(List<?>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
- items(List<?>, String) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
- items(List<?>, String, String) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
K
- key() - Method in record class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicProperty
-
Returns the value of the
keyrecord component. - key() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Property
-
Returns the key of the property.
- keyword() - Method in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
- kind() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicTypeLink
- kind() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.ConstructorLink
- kind() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.EnumConstantLink
- kind() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.FieldLink
- kind() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.Link
- kind() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.MethodLink
- kind() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.PackageLink
L
- legacyFindInstance(Class<? super T>, String) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Resolves an instance of a given class (even abstract).
- link() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.FieldLink
-
Deprecated.use FieldLink.reflection() instead
- link() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Deprecated.use TypeLink.reflection() instead
- Link - Interface in org.tudalgo.algoutils.tutor.general.reflections
- Link.Kind - Enum Class in org.tudalgo.algoutils.tutor.general.reflections
-
An enumeration of kinds of links.
- Long() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Long
- Long2D() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Long2D
M
- MANDATED - Static variable in class org.tudalgo.algoutils.reflect.TestUtils
- match(ST) - Method in interface org.tudalgo.algoutils.tutor.general.match.Matcher
-
Returns a match for the given object.
- match(T, boolean) - Static method in interface org.tudalgo.algoutils.tutor.general.match.Match
-
Returns a simple match with the given object and binary state.
- Match<T> - Interface in org.tudalgo.algoutils.tutor.general.match
-
A match represents a match of an object matcher.
- matched() - Method in interface org.tudalgo.algoutils.tutor.general.match.Match
-
Returns if this match is a positive match.
- matcher(String) - Method in interface org.tudalgo.algoutils.tutor.general.match.MatcherFactories.StringMatcherFactory
- Matcher<T> - Interface in org.tudalgo.algoutils.tutor.general.match
-
A matcher is a function mapping objects to positive/negative matches.
- MatcherFactories - Class in org.tudalgo.algoutils.tutor.general.match
- MatcherFactories.StringMatcherFactory - Interface in org.tudalgo.algoutils.tutor.general.match
- matches(Collection<T>, Matcher<? super T>) - Static method in class org.tudalgo.algoutils.tutor.general.match.MatchingUtils
-
Returns a list of all objects in the given collection matched by the given matcher sorted by match scores in descending order.
- MatchingUtils - Class in org.tudalgo.algoutils.tutor.general.match
- MatchingUtils() - Constructor for class org.tudalgo.algoutils.tutor.general.match.MatchingUtils
- Messages - Class in org.tudalgo.algoutils.tutor.general
- METHOD - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Link.Kind
- MethodLink - Interface in org.tudalgo.algoutils.tutor.general.reflections
-
An interface used to simply access methods.
- methodResolved() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Returns
trueif test method is notnull. - MethodTester - Class in org.tudalgo.algoutils.reflect
-
A method tester which tests properties of a class.
- MethodTester(ClassTester<?>, String) - Constructor for class org.tudalgo.algoutils.reflect.MethodTester
-
Constructs and initializes a method tester.
- MethodTester(ClassTester<?>, String, double) - Constructor for class org.tudalgo.algoutils.reflect.MethodTester
-
Constructs and initializes a method tester.
- MethodTester(ClassTester<?>, String, double, int) - Constructor for class org.tudalgo.algoutils.reflect.MethodTester
-
Constructs and initializes a method tester.
- MethodTester(ClassTester<?>, String, double, int, Class<?>) - Constructor for class org.tudalgo.algoutils.reflect.MethodTester
-
Constructs and initializes a method tester.
- MethodTester(ClassTester<?>, String, double, int, Class<?>, ArrayList<ParameterMatcher>, boolean, boolean) - Constructor for class org.tudalgo.algoutils.reflect.MethodTester
-
Constructs and initializes a method tester.
- MethodTester(ClassTester<?>, String, double, int, Class<?>, List<ParameterMatcher>) - Constructor for class org.tudalgo.algoutils.reflect.MethodTester
-
Constructs and initializes a method tester.
- MethodTester(ClassTester<?>, String, double, int, Class<?>, List<ParameterMatcher>, boolean) - Constructor for class org.tudalgo.algoutils.reflect.MethodTester
-
Constructs and initializes a method tester.
- MethodTester(ClassTester<?>, String, double, Class<?>, ArrayList<ParameterMatcher>) - Constructor for class org.tudalgo.algoutils.reflect.MethodTester
-
Constructs and initializes a method tester.
- modifier - Variable in class org.tudalgo.algoutils.reflect.AttributeMatcher
-
The expected access modifier.
- Modifier - Enum Class in org.tudalgo.algoutils.tutor.general.reflections
- modifiers() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicConstructorLink
- modifiers() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicFieldLink
- modifiers() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.FieldLink
- modifiers() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.MethodLink
- modifiers() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
- modifiers() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.WithModifiers
-
Return the bit representation of the modifiers of this link.
N
- name() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicEnumConstantLink
- name() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicFieldLink
- name() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicPackageLink
- name() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.MethodLink
- name() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
- name() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.WithName
-
Returns the name of this link.
- negative() - Method in interface org.tudalgo.algoutils.tutor.general.match.Match
-
Returns if this match is a negative match.
- negative(T) - Static method in interface org.tudalgo.algoutils.tutor.general.match.Match
-
Returns a negative match with the given object.
- never() - Static method in interface org.tudalgo.algoutils.tutor.general.match.Matcher
-
Returns an always negative-matching matcher.
- nobr(String) - Static method in class org.tudalgo.algoutils.tutor.general.stringify.HTML
- noException() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.actual.ActualExceptions
-
Returns a behavior where no exception was thrown.
- NON_ABSTRACT - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
- NON_FINAL - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
- NON_STATIC - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
- none() - Static method in class org.tudalgo.algoutils.tutor.general.Utils
- NormalResult<R> - Class in org.tudalgo.algoutils.tutor.general.call
-
An instance of
NormalResultrepresents a call that resulted in no exception. - NormalResult(R) - Constructor for class org.tudalgo.algoutils.tutor.general.call.NormalResult
- notEqualsNull() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedObjects
-
Returns an expected object where the object is not null.
- notEqualsTo(T) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedObjects
-
Returns an expected object where the object is expected to be not equal to the given object.
- nothing() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
- Nothing - Class in org.tudalgo.algoutils.tutor.general.assertions.expected
-
A type representing no expected behavior.
- notSameAs(T) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedObjects
-
Returns an expected object where the object is expected to be the same as the given object.
- Number() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Number
- Number2D() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Number2D
O
- object() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.actual.ActualObject
-
Returns the object under test.
- object() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.ResultOfObject
-
Returns the actual object of this result.
- object() - Method in interface org.tudalgo.algoutils.tutor.general.match.Match
-
Returns the matched object.
- object() - Method in interface org.tudalgo.algoutils.tutor.general.match.Matcher
- object(T, boolean) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.ResultOfObject.Builder
-
Sets the actual object and if the actual object fulfils the expected object.
- objectAssert(ExpectedObject<T>, ObjectCallable<T>, Context) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
- objectAssert(ExpectedObject<T>, ObjectCallable<T>, Context, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
- objectAssert(ExpectedObject<T>, ObjectCallable<T>, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
- objectAssert(ExpectedObject<T>, T, Context) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
- objectAssert(ExpectedObject<T>, T, Context, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
- objectAssert(ExpectedObject<T>, T, PreCommentSupplier<? super ResultOfObject<T>>) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
- ObjectCallable<T> - Interface in org.tudalgo.algoutils.tutor.general.callable
- of(Class<?>) - Static method in class org.tudalgo.algoutils.tutor.general.reflections.BasicTypeLink
- of(Class<T>, Predicate<Class<T>>, Predicate<T>, Function<String, String>) - Static method in interface org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedException
-
Returns an instance representing an expected exceptional behavior.
- of(Enum<?>) - Static method in class org.tudalgo.algoutils.tutor.general.reflections.BasicEnumConstantLink
- of(Object) - Static method in interface org.tudalgo.algoutils.tutor.general.assertions.expected.Expected
- of(Object, boolean) - Static method in interface org.tudalgo.algoutils.tutor.general.assertions.actual.Actual
- of(Constructor<?>) - Static method in class org.tudalgo.algoutils.tutor.general.reflections.BasicConstructorLink
-
Returns the constructor link for the given constructor.
- of(Field) - Static method in class org.tudalgo.algoutils.tutor.general.reflections.BasicFieldLink
- of(Method) - Static method in class org.tudalgo.algoutils.tutor.general.reflections.BasicMethodLink
- of(String) - Static method in class org.tudalgo.algoutils.tutor.general.reflections.BasicPackageLink
- of(Predicate<T>) - Static method in interface org.tudalgo.algoutils.tutor.general.match.Matcher
- of(Predicate<T>, Object) - Static method in interface org.tudalgo.algoutils.tutor.general.match.Matcher
- of(T, boolean) - Static method in interface org.tudalgo.algoutils.tutor.general.assertions.actual.ActualException
-
Returns an instance representing behavior where the given exception was thrown or an behavior where no exception was thrown if no exception is given.
- of(T, boolean) - Static method in interface org.tudalgo.algoutils.tutor.general.assertions.actual.ActualObject
- of(T, boolean, Function<String, String>) - Static method in interface org.tudalgo.algoutils.tutor.general.assertions.actual.ActualException
-
Returns an instance representing behavior where the given exception was thrown or, if no exception is given, an behavior where no exception was thrown.
- of(T, boolean, Function<String, String>) - Static method in interface org.tudalgo.algoutils.tutor.general.assertions.actual.ActualObject
-
Returns an instance representing a behavior where the given object was tested or, if no object was given, an behavior where no object was returned.
- of(T, Predicate<T>) - Static method in interface org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedObject
-
Returns an expected behavior where the expected object is described with the given object.
- of(T, Predicate<T>, Function<String, String>) - Static method in interface org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedObject
-
Returns an expected behavior where the expected object is described with the given object.
- orElse(Stringifier) - Method in interface org.tudalgo.algoutils.tutor.general.stringify.Stringifier
-
Returns a new stringifier using the given stringifier as an alternative to the current stringifier if the current stringifier cannot create a string representation.
- org.tudalgo.algoutils.reflect - package org.tudalgo.algoutils.reflect
- org.tudalgo.algoutils.transform - package org.tudalgo.algoutils.transform
- org.tudalgo.algoutils.tutor.general - package org.tudalgo.algoutils.tutor.general
- org.tudalgo.algoutils.tutor.general.assertions - package org.tudalgo.algoutils.tutor.general.assertions
- org.tudalgo.algoutils.tutor.general.assertions.actual - package org.tudalgo.algoutils.tutor.general.assertions.actual
- org.tudalgo.algoutils.tutor.general.assertions.basic - package org.tudalgo.algoutils.tutor.general.assertions.basic
- org.tudalgo.algoutils.tutor.general.assertions.expected - package org.tudalgo.algoutils.tutor.general.assertions.expected
- org.tudalgo.algoutils.tutor.general.basic - package org.tudalgo.algoutils.tutor.general.basic
- org.tudalgo.algoutils.tutor.general.call - package org.tudalgo.algoutils.tutor.general.call
- org.tudalgo.algoutils.tutor.general.callable - package org.tudalgo.algoutils.tutor.general.callable
- org.tudalgo.algoutils.tutor.general.conversion - package org.tudalgo.algoutils.tutor.general.conversion
- org.tudalgo.algoutils.tutor.general.match - package org.tudalgo.algoutils.tutor.general.match
- org.tudalgo.algoutils.tutor.general.reflections - package org.tudalgo.algoutils.tutor.general.reflections
- org.tudalgo.algoutils.tutor.general.stringify - package org.tudalgo.algoutils.tutor.general.stringify
- org.tudalgo.algoutils.tutor.general.stringify.basic - package org.tudalgo.algoutils.tutor.general.stringify.basic
P
- PACKAGE - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Link.Kind
- PackageLink - Interface in org.tudalgo.algoutils.tutor.general.reflections
- packageName - Variable in class org.tudalgo.algoutils.reflect.IdentifierMatcher
-
The package name.
- ParameterMatcher - Class in org.tudalgo.algoutils.reflect
-
A parameter matcher based on
IdentifierMatcher. - ParameterMatcher(Class<?>) - Constructor for class org.tudalgo.algoutils.reflect.ParameterMatcher
-
Constructs and initializes an attribute matcher to match the specified attribute.
- ParameterMatcher(Class<?>, boolean) - Constructor for class org.tudalgo.algoutils.reflect.ParameterMatcher
-
Constructs and initializes an attribute matcher to match the specified attribute.
- ParameterMatcher(String, double, Class<?>) - Constructor for class org.tudalgo.algoutils.reflect.ParameterMatcher
-
Constructs and initializes an attribute matcher to match the specified attribute.
- ParameterMatcher(String, double, Class<?>, boolean) - Constructor for class org.tudalgo.algoutils.reflect.ParameterMatcher
-
Constructs and initializes an attribute matcher to match the specified attribute.
- parameterType - Variable in class org.tudalgo.algoutils.reflect.ParameterMatcher
-
The expected parameter type.
- pl4(String) - Static method in class org.tudalgo.algoutils.tutor.general.stringify.HTML
- positive(T) - Static method in interface org.tudalgo.algoutils.tutor.general.match.Match
-
Returns a positive match with the given object.
- PreCommentSupplier<TR extends Result<?,
?, ?, ?>> - Interface in org.tudalgo.algoutils.tutor.general.assertions -
A type representing a function for creating comments for a given result.
- PRIMITIVE - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Link.Kind
- PRIVATE - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
- properties() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicContext
- properties() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Context
-
Returns all properties of this context.
- property(String, Object) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Context.Builder
-
Deprecated.use
Context.Builder.add(String, Object)instead - Property - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A type consisting of a key and a value.
- PROTECTED - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
- PUBLIC - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
R
- RECORD - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Link.Kind
- reflection() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicConstructorLink
- reflection() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicEnumConstantLink
- reflection() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicFieldLink
- reflection() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicMethodLink
- reflection() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicPackageLink
- reflection() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicTypeLink
- reflection() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.EnumConstantLink
- reflection() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.FieldLink
-
Returns the type of the field linked by this field link.
- reflection() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.Link
- reflection() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.MethodLink
-
Returns the actual method behind this method link.
- reflection() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Returns the actual type behind this type link.
- ReflectionStringifier - Class in org.tudalgo.algoutils.tutor.general.stringify.basic
-
A stringifier for transforming reflection object to string objects.
- ReflectionStringifier() - Constructor for class org.tudalgo.algoutils.tutor.general.stringify.basic.ReflectionStringifier
- resolve() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Resolves the class and instance and stores them.
- resolveAttribute(AttributeMatcher) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Resolves a field (attribute) with a specified matcher.
- resolveClass() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Finds the class to test and stores it.
- resolveConstructor(List<ParameterMatcher>) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Resolves a constructor with the specified parameters.
- resolveConstructor(ParameterMatcher...) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Resolves a constructor with the parameters.
- resolveInstance() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Resolves a test class instance.
- resolveMethod() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Resolves the method with the tolerances, more formally the method is searched first using its name.
- resolveMethod(double) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Resolves the method with the tolerances, more formally the method is searched first using its name.
- resolveMethod(Class<?>, String, double, List<ParameterMatcher>) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Resolves the method with the tolerances, more formally the method is searched first using its name.
- resolveMethod(Class<?>, String, double, List<ParameterMatcher>, boolean) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Resolves the method with the tolerances, more formally the method is searched first using its name.
- resolveReal() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Resolves the class and instance and stores them.
- resolveRealInstance() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Resolve a real test class instance.
- ResourceUtils - Class in org.tudalgo.algoutils.tutor.general
-
A utility class for resource handling.
- Result<RT extends Result<RT,
AT, TT, ET>, AT extends Actual, TT extends Test<TT, ET, RT, AT>, ET extends Expected> - Interface in org.tudalgo.algoutils.tutor.general.assertions -
A type representing the result of a
Test. - Result.Builder<RT extends Result<RT,
AT, TT, ET>, AT extends Actual, TT extends Test<TT, ET, RT, AT>, ET extends Expected, BT extends Result.Builder<RT, AT, TT, ET, BT>> - Interface in org.tudalgo.algoutils.tutor.general.assertions -
A type representing a builder for results.
- Result.Builder.Factory<RT extends Result<RT,
AT, TT, ET>, AT extends Actual, TT extends Test<TT, ET, RT, AT>, ET extends Expected, BT extends Result.Builder<RT, AT, TT, ET, BT>> - Interface in org.tudalgo.algoutils.tutor.general.assertions -
A type representing a factory for builders.
- ResultOfCall - Interface in org.tudalgo.algoutils.tutor.general.assertions
- ResultOfCall.Builder - Interface in org.tudalgo.algoutils.tutor.general.assertions
- ResultOfCall.Builder.Factory - Interface in org.tudalgo.algoutils.tutor.general.assertions
- ResultOfExceptionalCall<T extends Exception> - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A type representing the result of a throwable call.
- ResultOfExceptionalCall.Builder<T extends Exception> - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A builder for results of throwable calls.
- ResultOfExceptionalCall.Builder.Factory<T extends Exception> - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A factory for
result of throwable call builders. - ResultOfFail - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A result of a fail.
- ResultOfFail.Builder - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A builder for results of fails.
- ResultOfFail.Builder.Factory - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A factory for
result of fail builders. - ResultOfObject<T> - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A type representing the result of a
TestOfObject. - ResultOfObject.Builder<T> - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
return null;
- ResultOfObject.Builder.Factory<T> - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A factory for builders.
- returnType() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicMethodLink
- returnType() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.MethodLink
-
Returns the return type of the method linked by this method link.
- run() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Fail
-
Fails this test (there is no other option).
- run(Actual, Exception) - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicFail
- run(Actual, Exception) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Fail
-
Fails this test (there is no other option) with the given cause.
- run(Callable) - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfCall
- run(Callable) - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfExceptionalCall
- run(Callable) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.TestOfCall
- run(Callable) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.TestOfExceptionalCall
-
Tests if the callable throws an exception and if the exception is as expected.
- run(ObjectCallable<T>) - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfObject
- run(ObjectCallable<T>) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.TestOfObject
-
Tests if the object retrieved by the given callable is as expected and returns the result.
- run(T) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.TestOfObject
-
Tests if the given object is as expected and returns the result.
S
- safeArrayToString(Object...) - Static method in class org.tudalgo.algoutils.reflect.MethodTester
-
Represents a safe string as an array.
- sameAs(T) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedObjects
-
Returns an expected object where the object is expected to be the same as the given object.
- sameObject(T) - Static method in class org.tudalgo.algoutils.tutor.general.match.BasicMatchers
- sameType(TypeLink) - Static method in class org.tudalgo.algoutils.tutor.general.match.BasicReflectionMatchers
- sameTypes(TypeLink...) - Static method in class org.tudalgo.algoutils.tutor.general.match.BasicReflectionMatchers
-
A matcher matching an object if the object has the same types as given.
- set(Object) - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicFieldLink
- set(Object) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.FieldLink
-
Sets the object assigned to the type of this field.
- set(Object, Object) - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicFieldLink
- set(Object, Object) - Method in interface org.tudalgo.algoutils.tutor.general.reflections.FieldLink
-
Sets the object assigned to the given instance.
- setAccessModifier(int) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Sets the expected access modifier the specified value.
- setAccessModifier(int) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Sets the expected access modifier count to the new value.
- setClassIdentifier(IdentifierMatcher) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Sets the class matcher used on the test class to the new value.
- setClassInstance(T) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Sets class instance of the tested class to the specified value.
- setClassTester(ClassTester<?>) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Sets the class tester used to invoke the method to the specified value.
- setField(Object, Field, Object) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Sets the field to the specified value.
- setField(Field, Object) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Sets a field value to the specified value.
- setFieldRandom(Field) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Sets a field value to a random value.
- setFieldTyped(Field, Object, Object) - Static method in class org.tudalgo.algoutils.reflect.ClassTester
-
Sets the typed field to the specified value.
- setImplementsInterfaces(List<IdentifierMatcher>) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Sets the implemented class of the tested class to the specified value.
- setLooseReturnTypeChecking(boolean) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Sets the boolean value whether to allow subtypes for the return type.
- setMethodIdentifier(IdentifierMatcher) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Set the method identifier containing the name of the method and the similarity to accept alternative identifiers to the specified value.
- setNumberOfTraceLines(int) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicCommentFactory
- setParameters(List<ParameterMatcher>) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Sets the expected parameters to the specified value.
- setReturnType(Class<?>) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Sets the expected class type of the test method to the specified value.
- setSpoon(Launcher) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Sets the spoon launcher which allows source code analysis and transformation to the specified value.
- setStringifier(Stringifier) - Method in class org.tudalgo.algoutils.tutor.general.basic.BasicEnvironment
- setStringifier(Stringifier) - Method in interface org.tudalgo.algoutils.tutor.general.Environment
- setSuperClass(Class<? super T>) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Sets the super class of the tested class to the specified value.
- setTheClass(Class<T>) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Sets the test class instance to the specified class instance.
- setTheMethod(Method) - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Sets the method that should be tested to the specified value.
- Short() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Short
- Short2D() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Short2D
- similarity - Variable in class org.tudalgo.algoutils.reflect.IdentifierMatcher
-
The minimum required similarity.
- similarity(String, String) - Static method in class org.tudalgo.algoutils.reflect.TestUtils
-
Calculates the similarity (a number within 0 and 1) between two strings.
- small(String) - Static method in class org.tudalgo.algoutils.tutor.general.stringify.HTML
- something() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedObjects
-
Returns an expected where the actual result is not relevant.
- SpoonUtils - Class in org.tudalgo.algoutils.tutor.general
-
A collection of utilities for working with spoon.
- STATIC - Enum constant in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
- staticType() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicFieldLink
- staticType() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.FieldLink
- string() - Method in interface org.tudalgo.algoutils.tutor.general.match.Identifiable
- string() - Method in interface org.tudalgo.algoutils.tutor.general.match.Stringifiable
-
Returns a human-readable string representation of this object.
- string(Stringifier) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.actual.Actual
-
Returns a string representation of the behavior under test using the given stringifier to make the behavior human-readable.
- string(Stringifier) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.expected.Expected
-
Returns a string representation of the expected behavior using the given stringifier to make the behavior human-readable.
- string(Stringifier) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedException
- string(Stringifier) - Method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
- String() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.String
- String2D() - Constructor for class org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.String2D
- Stringifiable - Interface in org.tudalgo.algoutils.tutor.general.match
-
A type providing a human-readable string.
- Stringifier - Interface in org.tudalgo.algoutils.tutor.general.stringify
-
A stringifier is a function for transforming objects to a string representations.
- stringify(Object) - Method in interface org.tudalgo.algoutils.tutor.general.stringify.Stringifier
-
Creates a string representation of the given object or
null, if no string representation can be created. - stringifyOrElseDefault(Object, String) - Method in interface org.tudalgo.algoutils.tutor.general.stringify.Stringifier
-
Creates a string representation of the given object or use the given default string, if no string representation can be created.
- stringifyOrElseDefault(Object, Supplier<String>) - Method in interface org.tudalgo.algoutils.tutor.general.stringify.Stringifier
-
Creates a string representation of the given object or the default string supplied by the given suuplier, if no string representation can be created.
- stringifyOrElseNull(Object) - Method in class org.tudalgo.algoutils.tutor.general.stringify.basic.ReflectionStringifier
- stringifyOrElseNull(Object) - Method in interface org.tudalgo.algoutils.tutor.general.stringify.Stringifier
-
Creates a string representation of the given object or
null, if no string representation can be created. - stringifyOrElseToString(Object) - Method in interface org.tudalgo.algoutils.tutor.general.stringify.Stringifier
-
Creates a string representation of the given object or use
String.toString(), if no string representation can be created. - subject() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicContext
- subject() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Context
-
Returns the subject of this context.
- subject(Object) - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicContext.Builder
- subject(Object) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Context.Builder
-
Sets the subject of this context.
- successBehavior() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
- successBehavior(Object) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
- successful - Variable in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult.Builder
- successful() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.actual.Actual
- successful() - Method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
- successful() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Result
-
Returns if the test was successful.
- successful(Object) - Static method in interface org.tudalgo.algoutils.tutor.general.assertions.actual.Actual
- superType() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicTypeLink
- superType() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
-
Returns the type link to the super type of the type linked by this type link.
- SYNTHETIC - Static variable in class org.tudalgo.algoutils.reflect.TestUtils
T
- test - Variable in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult.Builder
- test - Variable in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult
- test() - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult
- test() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Result
-
Returns the test this result belongs to.
- test(Class<T>) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedException
-
Returns if the given type is of the expected type.
- test(T) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedException
-
Returns if the given exception is as expected.
- test(T) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.expected.ExpectedObject
-
Returns true if the given object is as expected.
- test(TT) - Method in class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicResult.Builder
- test(TT) - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Result.Builder
-
Sets the test of the result.
- Test<TT extends Test<TT,
ET, RT, AT>, ET extends Expected, RT extends Result<RT, AT, TT, ET>, AT extends Actual> - Interface in org.tudalgo.algoutils.tutor.general.assertions -
A type of a test.
- Test.Builder<TT extends Test<TT,
ET, RT, AT>, ET extends Expected, RT extends Result<RT, AT, TT, ET>, AT extends Actual, BT extends Test.Builder<TT, ET, RT, AT, BT>> - Interface in org.tudalgo.algoutils.tutor.general.assertions -
A builder for tests.
- Test.Builder.Factory<TT extends Test<TT,
ET, RT, AT>, ET extends Expected, RT extends Result<RT, AT, TT, ET>, AT extends Actual, BT extends Test.Builder<TT, ET, RT, AT, BT>> - Interface in org.tudalgo.algoutils.tutor.general.assertions -
A factory for
test builders. - TestOfCall - Interface in org.tudalgo.algoutils.tutor.general.assertions
- TestOfCall.Builder - Interface in org.tudalgo.algoutils.tutor.general.assertions
- TestOfCall.Builder.Factory - Interface in org.tudalgo.algoutils.tutor.general.assertions
- testOfCallBuilder() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
- TestOfExceptionalCall<T extends Exception> - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A type for testing the throwing behavior of callables.
- TestOfExceptionalCall.Builder<T extends Exception> - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A builder for tests of throwable calls.
- TestOfExceptionalCall.Builder.Factory<T extends Exception> - Interface in org.tudalgo.algoutils.tutor.general.assertions
- TestOfObject<T> - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A test of an object.
- TestOfObject.Builder<T> - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A builder for tests of objects.
- TestOfObject.Builder.Factory<T> - Interface in org.tudalgo.algoutils.tutor.general.assertions
-
A factory for tests of object builders.
- testOfObjectBuilder() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Returns a object test builder.
- testOfThrowableCallBuilder() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.Assertions2
-
Returns a throwable call test builder.
- TestUtils - Class in org.tudalgo.algoutils.reflect
-
A utility class used for JUnit tests which provides reflective access to some properties and assertions.
- text() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
- text(Object) - Static method in class org.tudalgo.algoutils.tutor.general.assertions.expected.Nothing
- ThrowableResult<R> - Class in org.tudalgo.algoutils.tutor.general.call
-
An instance of
ThrowableResultrepresents a call that resulted in anThrowable. - ThrowableResult(Throwable) - Constructor for class org.tudalgo.algoutils.tutor.general.call.ThrowableResult
- toShortSignature(Method) - Static method in class org.tudalgo.algoutils.tutor.general.ResourceUtils
- toString() - Method in record class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicProperty
-
Returns a string representation of this record class.
- toString() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicFieldLink
- transform(ClassReader, ClassWriter) - Method in class org.tudalgo.algoutils.transform.AccessTransformer
- tt(String) - Static method in class org.tudalgo.algoutils.tutor.general.stringify.HTML
- TutorAssertions - Class in org.tudalgo.algoutils.tutor.general
- TutorAssertions() - Constructor for class org.tudalgo.algoutils.tutor.general.TutorAssertions
- type - Variable in class org.tudalgo.algoutils.reflect.AttributeMatcher
-
The expected attribute type.
- type() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicConstructorLink
- type() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicMethodLink
- type() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.FieldLink
- type() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.TypeLink
- type() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.WithType
-
Returns the type of this link.
- TypeLink - Interface in org.tudalgo.algoutils.tutor.general.reflections
-
An interface used to simply access classes, interfaces and enumerations.
- typeList() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicConstructorLink
- typeList() - Method in class org.tudalgo.algoutils.tutor.general.reflections.BasicMethodLink
- typeList() - Method in interface org.tudalgo.algoutils.tutor.general.reflections.WithTypeList
-
Returns the list of this link.
U
- unexpected(Object) - Static method in interface org.tudalgo.algoutils.tutor.general.assertions.actual.Actual
- UNEXPECTED_EXCEPTION - Static variable in class org.tudalgo.algoutils.tutor.general.Messages
- unexpectedException() - Static method in class org.tudalgo.algoutils.tutor.general.assertions.actual.ActualExceptions
-
Returns a behavior where an unexpected exception was thrown.
- Utils - Class in org.tudalgo.algoutils.tutor.general
- Utils() - Constructor for class org.tudalgo.algoutils.tutor.general.Utils
V
- value() - Method in record class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicProperty
-
Returns the value of the
valuerecord component. - value() - Method in interface org.tudalgo.algoutils.tutor.general.assertions.Property
-
Returns the value of the property.
- valueOf(String) - Static method in enum class org.tudalgo.algoutils.tutor.general.reflections.Link.Kind
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.tudalgo.algoutils.tutor.general.reflections.Link.Kind
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.tudalgo.algoutils.tutor.general.reflections.Modifier
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VARARGS - Static variable in class org.tudalgo.algoutils.reflect.TestUtils
- verify() - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the Class is declared correctly.
- verify() - Method in class org.tudalgo.algoutils.reflect.MethodTester
-
Verifies that the method was declared correctly.
- verify(double) - Method in class org.tudalgo.algoutils.reflect.ClassTester
-
Tests whether the Class is declared correctly.
W
- wbr() - Static method in class org.tudalgo.algoutils.tutor.general.stringify.HTML
- WithCtElement - Interface in org.tudalgo.algoutils.tutor.general.reflections
-
A link with an CtElement.
- WithDocumentation - Interface in org.tudalgo.algoutils.tutor.general.reflections
- WithModifiers - Interface in org.tudalgo.algoutils.tutor.general.reflections
-
An interface for links to types with modifiers.
- WithName - Interface in org.tudalgo.algoutils.tutor.general.reflections
-
An interface for links to types with a name.
- WithType - Interface in org.tudalgo.algoutils.tutor.general.reflections
-
An interface for links to types with a type.
- WithTypeList - Interface in org.tudalgo.algoutils.tutor.general.reflections
-
An interface for links to types with a list of types.
All Classes and Interfaces|All Packages|Constant Field Values