forked from JavaTX/JavaCompilerCore
Test anfügen
This commit is contained in:
parent
45ccfb58e3
commit
dd18c7c40e
31
test/finiteClosure/SuperInterfacesTest.java
Normal file
31
test/finiteClosure/SuperInterfacesTest.java
Normal file
@ -0,0 +1,31 @@
|
||||
package finiteClosure;
|
||||
|
||||
import de.dhbwstuttgart.parser.SyntaxTreeGenerator.FCGenerator;
|
||||
import de.dhbwstuttgart.syntaxtree.ClassOrInterface;
|
||||
import de.dhbwstuttgart.syntaxtree.factory.ASTFactory;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public class SuperInterfacesTest {
|
||||
@Test
|
||||
public void test() throws ClassNotFoundException {
|
||||
Collection<ClassOrInterface> classes = new ArrayList<>();
|
||||
classes.add(ASTFactory.createClass(TestClass.class));
|
||||
System.out.println(FCGenerator.toFC(classes));
|
||||
}
|
||||
}
|
||||
|
||||
class TestClass implements Test2, Test3{
|
||||
|
||||
}
|
||||
|
||||
interface Test2 {
|
||||
|
||||
}
|
||||
|
||||
interface Test3{
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user