PluginDescription { public PluginDescription shortName(int shortName) { this.shortName = shortName; return this; }  PluginDescription mainType(PluginType mainType); PluginDescription fragmentClass(String fragmentClass); PluginDescription alwaysEnabled(boolean alwaysEnabled); PluginDescription alwaysVisible(boolean alwaysVisible); PluginDescription neverVisible(boolean neverVisible); PluginDescription showInList(boolean showInList); PluginDescription pluginName(int pluginName); PluginDescription shortName(int shortName); PluginDescription preferencesId(int preferencesId); PluginDescription enableByDefault(boolean enableByDefault); PluginDescription visibleByDefault(boolean visibleByDefault); PluginDescription description(int description); String getFragmentClass(); PluginType getType(); public boolean alwaysVisible; public boolean neverVisible; public boolean alwaysEnabled; public boolean enableByDefault; public boolean visibleByDefault; }
@Test public void shortNameTest() { PluginDescription pluginDescription = new PluginDescription().shortName(10); Assert.assertEquals(10, pluginDescription.shortName); }