forked from JavaTX/JavaCompilerCore
Erste Tests für strucTypes
This commit is contained in:
parent
9faf25d670
commit
2d598d28e9
20
test/strucType/Test.java
Normal file
20
test/strucType/Test.java
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package strucType;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
import de.dhbwstuttgart.core.JavaTXCompiler;
|
||||||
|
|
||||||
|
public class Test {
|
||||||
|
public static final String rootDirectory = System.getProperty("user.dir")+"/test/strucType/javFiles/";
|
||||||
|
|
||||||
|
|
||||||
|
@org.junit.Test
|
||||||
|
public void test() throws ClassNotFoundException, IOException {
|
||||||
|
JavaTXCompiler compiler = new JavaTXCompiler(new File(rootDirectory + "test.jav"));
|
||||||
|
System.out.println("test ende");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
4
test/strucType/javFiles/test.jav
Normal file
4
test/strucType/javFiles/test.jav
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
class C1 extends Object
|
||||||
|
{
|
||||||
|
m(para) { return para; }
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user