Package de.hsh.graja.modules.junit.api
This package provides classes, interfaces, and annotations that might be used by
JUnit test classes.
It can be seen as a plugin interface for JUnit based assignment graders.
-
Interface Summary Interface Description CommentTarget instances of this interfaces can be used by the JUnit test class in order to provide helper classes the ability to leave comments without passing a full GraderContext object.ObjectPool.Initializer StaticMethodChecker.Func3<T,U,V,R> -
Class Summary Class Description DiffHelper This class identifies differences between a sample solution and a student solution class.DiffHelper.DiffProcessor This class realizes a fluent interface when instrumenting the Diff with information used when diffing.GraderContext This is the context of your JUnit grader for a single assignment.GrajaRunner NormalizerRuleIgnoreLeadingNewlines A string normalizer for string comparisons that should ignore differences on leading line breaks.NormalizerRuleTrailingColonPerLine A string normalizer for string comparisons that should ignore differences that result from a single colon at the end of a line.NormalizerRuleTrailingSpacePerLine A string normalizer for string comparisons that should ignore differences that result from different or additional white spaces at the end of a line.NormalizerRuleTrimMaxLeadingSpacePerLine A string normalizer for string comparisons that should ignore differences that result from different but uniform indentation level.ObjectPool An object pool maps classes and names to instances.StaticMethodChecker The StaticMethodChecker invokes a static method of a student submitted class and compares the return value with the return value of a sample implementation of that method.Support This class provides supporting methods when writing JUnit tests for student submitted code.TestMethodFilterRule Example usage: -
Error Summary Error Description CommentAssertionError An instance of this class can be used to fail a JUnit test together with some formatted comments instead of a simple plain text message.DiffHelper.DiffAssertionError This error is thrown, whenDiffHelper.DiffProcessor
detects a difference. -
Annotation Types Summary Annotation Type Description GrajaTestMethodSortOrder InjectContext Example usage: