TestUtils

@Deprecated(since = "0.7.0", forRemoval = true)
public final class TestUtils(source)

Deprecated (for removal)

Since version 0.7.0

A utility class used for JUnit tests which provides reflective access to some properties and assertions. This class is deprecated and will be removed in a future release. Use the new API located in the org.tudalgo.algoutils.tutor.general.reflections package instead.

Author

Ruben Deisenroth

Properties

Link copied to clipboard
public final static int ANNOTATION
Link copied to clipboard
public final static int BRIDGE
Link copied to clipboard
public final static int ENUM
Link copied to clipboard
public final static int MANDATED
Link copied to clipboard
public final static int SYNTHETIC
Link copied to clipboard
public final static int VARARGS

Functions

Link copied to clipboard
public static void assertModifier(int expected, Class<? extends Object> clazz)
Tests whether the modifiers of a class are correct.
public static void assertModifier(int expected, Constructor<? extends Object> constructor)
Tests whether the modifiers of a constructor are correct.
public static void assertModifier(int expected, Field attribut)
Tests whether the modifiers of a field are correct.
public static void assertModifier(int expected, Method method)
Tests whether the modifiers of a method are correct.
public static void assertModifier(int expected, int actual, String name)
Tests whether the modifiers are correct.
Link copied to clipboard
@Deprecated(since = "0.7.0", forRemoval = true)
public static boolean isAutograderRun()
Returns true if getTestCycle does not return null.