Package de.hsh.graja.modules.junit.api
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.
-
ClassDescriptionThis class represents the source code position of a node in an abstract syntax tree (AST).The type of node in an abstract syntax tree.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.A sequence of comments and a default AST position recorded by a JUnit test method.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.This class identifies differences between a sample solution and a student solution class.This error is thrown, when
DiffHelper.DiffProcessordetects a difference.This class realizes a fluent interface when instrumenting the Diff with information used when diffing.This is the context of your JUnit grader for a single assignment.Example usage:A string normalizer for string comparisons that should ignore differences on leading line breaks.A string normalizer for string comparisons that should ignore differences that result from a single colon at the end of a line.A string normalizer for string comparisons that should ignore differences that result from different or additional white spaces at the end of a line.A string normalizer for string comparisons that should ignore differences that result from different but uniform indentation level.An object pool maps classes and names to instances.AnAssertionErrorthat additionally holds aASTPosThe 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.StaticMethodChecker.Func3<T,U, V, R> This class provides supporting methods when writing JUnit tests for student submitted code.Support.Callable<T,E extends Throwable> Example usage: