예제 #1
0
 @Test
 public void testGetNumberOfStatedPreferences() {
   assertEquals(0, s.getNumberOfStatedPreferences());
   s.addProject(testProject_1);
   assertEquals(0, s.getNumberOfStatedPreferences());
   for (Project p : testProject_rest) {
     s.addProject(p);
   }
   assertEquals(0, s.getNumberOfStatedPreferences());
   s.setNumberOfStatedPreferences(100);
   assertEquals(100, s.getNumberOfStatedPreferences());
   s.preassignProject(testProject_1);
   assertEquals(1, s.getNumberOfStatedPreferences());
 }
예제 #2
0
 @Test
 public void testSetNumberOfStatedPreferences() throws Exception {
   Integer t = 5;
   s.setNumberOfStatedPreferences(t);
   assertEquals("expect 5", 5, s.getNumberOfStatedPreferences());
 }