Пример #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);
 }