@Test public void testSimpleNamesCaseCorrectionSexed() { Assert.assertTrue(validator.checkName("mary", false).equals("Mary")); Assert.assertTrue(validator.checkName("JANE", false).equals("Jane")); Assert.assertTrue(validator.checkName("lIZ", false).equals("Liz")); Assert.assertTrue(validator.checkName("ShArOn", false).equals("Sharon")); Assert.assertTrue(validator.checkName("vICTOR", true).equals("Victor")); Assert.assertTrue(validator.checkName("adrian", true).equals("Adrian")); Assert.assertTrue(validator.checkName("mOhAmMeD", true).equals("Mohammed")); Assert.assertTrue(validator.checkName("JOE", true).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);  }