115116117118119120121122123124125
public void testNoMatch() { AdapterRegistry r = new AdapterRegistryImpl(); r.register(String.class, "STRING"); try { r.getAdapter(Boolean.class);
133134135136137138139140141142143
public void testToString() { AdapterRegistry r = new AdapterRegistryImpl(); r.register(String.class, "STRING"); assertEquals("AdaptorRegistry[java.lang.String=STRING]", r.toString()); } public void testDuplicateRegistration()
142143144145146147148149150151152
public void testDuplicateRegistration() { AdapterRegistry r = new AdapterRegistryImpl(); r.register(String.class, "STRING"); try { r.register(String.class, "STRING2");
146147148149150151152153154155156
r.register(String.class, "STRING"); try { r.register(String.class, "STRING2"); unreachable(); } catch (IllegalArgumentException ex) {