forked from JavaTX/JavaCompilerCore
34 lines
804 B
Java
Executable File
34 lines
804 B
Java
Executable File
package mycompiler.test.trivial;
|
|
|
|
import mycompiler.test.AbstractInferenceTest;
|
|
import mycompiler.test.expectationTypes.ClassExpect;
|
|
import mycompiler.test.expectationTypes.Expectation;
|
|
|
|
|
|
/**
|
|
* 01-04-08
|
|
* @author
|
|
*
|
|
* This tests verifies correct detection of an empty class.
|
|
*
|
|
*/
|
|
|
|
public class TestClassEmpty extends AbstractInferenceTest {
|
|
|
|
private final static String TESTEDCLASSNAME="TestClassEmpty";
|
|
private final static String JAVPATH="test/mycompiler/test/trivial/";
|
|
|
|
public TestClassEmpty(String name) {
|
|
super(name,TestClassEmpty.JAVPATH+TestClassEmpty.TESTEDCLASSNAME + ".jav");
|
|
|
|
}
|
|
|
|
@Override
|
|
protected Expectation getExpectations() {
|
|
|
|
//classes
|
|
ClassExpect testEmptyClass = new ClassExpect(TestClassEmpty.TESTEDCLASSNAME);
|
|
|
|
return new Expectation(testEmptyClass);
|
|
}
|
|
} |