JavaTXCompilerInJavaTX/test/mycompiler/test/trivial/TestClassEmpty.java
2013-10-18 13:33:46 +02:00

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);
}
}