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 fillList() { List 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 testCons = FamilyOfGeneratedGenerics.buildTransitiveClosure(fillList()); //System.out.println(testCons); } }