예제 #1
0
 @Test
 public final void testValidateTotalFail() {
   ValidationResult result = validator.validate("NINI");
   Assert.assertTrue(result.getRightColors() == 0 && result.getRightColorsAtRightPlace() == 0);
 }
예제 #2
0
 @Test
 public final void testValidateOneRightColorAndOneExact() {
   ValidationResult result = validator.validate("RMNI");
   Assert.assertTrue(result.getRightColors() == 1 && result.getRightColorsAtRightPlace() == 1);
 }
예제 #3
0
 @Test
 public final void testValidateTotalSuccess() {
   ValidationResult result = validator.validate("RAMV");
   Assert.assertTrue(result.getRightColors() == 0 && result.getRightColorsAtRightPlace() == 4);
 }