Beispiel #1
0
 /** Test of setNumberOfEqualities method, of class EqualsLastValue, for the value 0. */
 @Test(expected = IllegalArgumentException.class)
 public void testSetNumberOfEqualities_Zero() {
   System.out.println("setNumberOfEqualities(0)");
   int numberOfEqualities = 0;
   EqualsLastValue instance = this._double;
   instance.setNumberOfEqualities(numberOfEqualities);
   fail("No exception thrown.");
 }
Beispiel #2
0
 /** Test of setNumberOfEqualities method, of class EqualsLastValue. */
 @Test
 public void testSetNumberOfEqualities() {
   System.out.println("setNumberOfEqualities");
   int numberOfEqualities = 17;
   EqualsLastValue instance = this._double;
   instance.setNumberOfEqualities(numberOfEqualities);
   int expResult = 17;
   int result = instance.getNumberOfEqualities();
   assertEquals(expResult, result);
 }