@Test public void testGetPluginInfoId() { A1 a1 = new A1(); A2 a2 = new A2(); assertEquals("A1", pluginInfo.getId(a1)); assertEquals("A2", pluginInfo.getId(a2)); }
public String getId(T pluginImpl) { return pluginImpl.getClass().getName(); }
PluginInfo { public String getId(T pluginImpl) { return pluginImpl.getClass().getName(); } }
PluginInfo { public String getId(T pluginImpl) { return pluginImpl.getClass().getName(); } PluginInfo(Class<T> pluginClass);  PluginInfo(Class<T> pluginClass, String pluginName); }
PluginInfo { public String getId(T pluginImpl) { return pluginImpl.getClass().getName(); } PluginInfo(Class<T> pluginClass);  PluginInfo(Class<T> pluginClass, String pluginName); Class<T> getPluginClass(); String getPluginName(); String getId(T pluginImpl); @Override String toString(); }
PluginInfo { public String getId(T pluginImpl) { return pluginImpl.getClass().getName(); } PluginInfo(Class<T> pluginClass);  PluginInfo(Class<T> pluginClass, String pluginName); Class<T> getPluginClass(); String getPluginName(); String getId(T pluginImpl); @Override String toString();  }