9be64e4905
modified: src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java modified: src/main/java/de/dhbwstuttgart/bytecode/utilities/MethodAndTPH.java modified: src/test/java/insertGenerics/TestContraVariant.java modified: src/test/java/insertGenerics/TestLocalVarLambda.java modified: src/test/java/insertGenerics/TestTransitiveClosure.java Transitiv Closure auf new umgestellt
29 lines
901 B
Java
29 lines
901 B
Java
package insertGenerics;
|
|
|
|
import de.dhbwstuttgart.bytecode.constraint.TPHConstraint;
|
|
import de.dhbwstuttgart.bytecode.constraint.TPHConstraint.Relation;
|
|
import de.dhbwstuttgart.bytecode.insertGenerics.FamilyOfGeneratedGenerics;
|
|
import org.junit.Test;
|
|
import static org.junit.Assert.assertEquals;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class TestTransitiveClosure {
|
|
public List<TPHConstraint> fillList() {
|
|
List<TPHConstraint> list = new ArrayList<>();
|
|
list.add(new TPHConstraint("A", "B", Relation.EXTENDS));
|
|
list.add(new TPHConstraint("B", "C", Relation.EXTENDS));
|
|
list.add(new TPHConstraint("C", "D", Relation.EXTENDS));
|
|
|
|
return list;
|
|
}
|
|
|
|
@Test
|
|
public void genericTest() {
|
|
//List<TPHConstraint> testCons = FamilyOfGeneratedGenerics.buildTransitiveClosure(fillList());
|
|
//System.out.println(testCons);
|
|
|
|
}
|
|
}
|