@Test public void testFullNameMappingFailure1() throws Exception { factory.addClassFullNameMapping(MyDriver.class.getName()+"X", MyCustomDriver.class.getName()); assertDriverIs(MySshDriver.class, sshLocation); }
public DriverInferenceRule addClassFullNameMapping(String expectedClassFullName, String newClassFullName) { DriverInferenceByRenamingClassFullName rule = new DriverInferenceByRenamingClassFullName(expectedClassFullName, newClassFullName); return addRule(rule.getIdentifier(), rule); }
ReflectiveEntityDriverFactory { public DriverInferenceRule addClassFullNameMapping(String expectedClassFullName, String newClassFullName) { DriverInferenceByRenamingClassFullName rule = new DriverInferenceByRenamingClassFullName(expectedClassFullName, newClassFullName); return addRule(rule.getIdentifier(), rule); } }
ReflectiveEntityDriverFactory { public DriverInferenceRule addClassFullNameMapping(String expectedClassFullName, String newClassFullName) { DriverInferenceByRenamingClassFullName rule = new DriverInferenceByRenamingClassFullName(expectedClassFullName, newClassFullName); return addRule(rule.getIdentifier(), rule); } ReflectiveEntityDriverFactory(); }
ReflectiveEntityDriverFactory { public DriverInferenceRule addClassFullNameMapping(String expectedClassFullName, String newClassFullName) { DriverInferenceByRenamingClassFullName rule = new DriverInferenceByRenamingClassFullName(expectedClassFullName, newClassFullName); return addRule(rule.getIdentifier(), rule); } ReflectiveEntityDriverFactory(); DriverInferenceRule addRule(String identifier, DriverInferenceRule rule); DriverInferenceRule addClassFullNameMapping(String expectedClassFullName, String newClassFullName); DriverInferenceRule addClassSimpleNameMapping(String expectedClassSimpleName, String newClassSimpleName); D build(DriverDependentEntity<D> entity, Location location); }
ReflectiveEntityDriverFactory { public DriverInferenceRule addClassFullNameMapping(String expectedClassFullName, String newClassFullName) { DriverInferenceByRenamingClassFullName rule = new DriverInferenceByRenamingClassFullName(expectedClassFullName, newClassFullName); return addRule(rule.getIdentifier(), rule); } ReflectiveEntityDriverFactory(); DriverInferenceRule addRule(String identifier, DriverInferenceRule rule); DriverInferenceRule addClassFullNameMapping(String expectedClassFullName, String newClassFullName); DriverInferenceRule addClassSimpleNameMapping(String expectedClassSimpleName, String newClassSimpleName); D build(DriverDependentEntity<D> entity, Location location);  }