Plugin { public LoopDescriptor[] getLoopDescriptors() { return loops; } Plugin(String documentType, String documentName); protected  Plugin(String documentType, String documentName, boolean validating); void init(); String getDocumentType(); String getDocumentName(); LoopDescriptor[] getLoopDescriptors(); LoopDescriptor query(String segment, String currentLoopStack, int currentLevel, Set<String> resultFlags); static int getCount(); @Override String toString(); void prepare(); boolean isValidating(); PluginControllerImpl createController(String standard, Tokenizer tokenizer); String getDocumentVersion(); PluginDiff compare(Plugin pluginB); static final String ANY_CONTEXT; static final String INITIAL_CONTEXT; static final String CURRENT; }
@Test public void canSetLoopDescriptors() { assertNull(plugin.getLoopDescriptors()); plugin.loops = LOOP_DESCRIPTORS; assertEquals(8, plugin.getLoopDescriptors().length); }