141142143144145146147148149150151
@Test public void testEncapsulateField() { JDolly jdolly = new JDollyImp("alloyTheory/encapsulatefield_final.als",2, 3, 3,1); int numberPrograms = TestUtil.countSolutions(jdolly, false); assertEquals(2000, numberPrograms);
151152153154155156157158159160161162
} @Test public void testMoveMethod() { JDolly jdolly = new JDollyImp("alloyTheory/movemethod_final.als",2, 3, 3,1); jdolly.setMaxMethodNames(2); int numberPrograms = TestUtil.countSolutions(jdolly, false); assertEquals(22905, numberPrograms);