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