@Test public void testSimpleNames() { Assert.assertTrue(validator.checkName("Mary").equals("Mary")); Assert.assertTrue(validator.checkName("Jane").equals("Jane")); Assert.assertTrue(validator.checkName("Liz").equals("Liz")); Assert.assertTrue(validator.checkName("Sharon").equals("Sharon")); Assert.assertTrue(validator.checkName("Victor").equals("Victor")); Assert.assertTrue(validator.checkName("Adrian").equals("Adrian")); Assert.assertTrue(validator.checkName("Mohammed").equals("Mohammed")); Assert.assertTrue(validator.checkName("Joe").equals("Joe")); }
public String checkName(String name) { build(); String rval = checkName(name, malesDB); if (rval == null) { rval = checkName(name, femalesDB); } return rval; }
ScreenNameValidator extends ScreenNameValidatorDB { public String checkName(String name) { build(); String rval = checkName(name, malesDB); if (rval == null) { rval = checkName(name, femalesDB); } return rval; } }
ScreenNameValidator extends ScreenNameValidatorDB { public String checkName(String name) { build(); String rval = checkName(name, malesDB); if (rval == null) { rval = checkName(name, femalesDB); } return rval; } ScreenNameValidator(); }
ScreenNameValidator extends ScreenNameValidatorDB { public String checkName(String name) { build(); String rval = checkName(name, malesDB); if (rval == null) { rval = checkName(name, femalesDB); } return rval; } ScreenNameValidator(); String checkName(String name); String checkName(String name, boolean isMale); }
ScreenNameValidator extends ScreenNameValidatorDB { public String checkName(String name) { build(); String rval = checkName(name, malesDB); if (rval == null) { rval = checkName(name, femalesDB); } return rval; } ScreenNameValidator(); String checkName(String name); String checkName(String name, boolean isMale);  }