use of com.qcadoo.plugin.internal.DefaultPlugin in project qcadoo by qcadoo.
the class PluginDescriptorParserTest method shouldHaveModulesForXml2.
@Test
public void shouldHaveModulesForXml2() throws Exception {
// given
// when
Plugin result = parser.parse(xmlFile2);
// then
DefaultPlugin castedResult = (DefaultPlugin) result;
assertEquals(0, castedResult.getModules(testModule1Factory).size());
assertEquals(0, castedResult.getModules(testModule2Factory).size());
}
use of com.qcadoo.plugin.internal.DefaultPlugin in project qcadoo by qcadoo.
the class PluginDescriptorParserTest method shouldHaveModulesForXml1.
@Test
public void shouldHaveModulesForXml1() throws Exception {
// given
// when
Plugin result = parser.parse(xmlFile1);
// then
DefaultPlugin castedResult = (DefaultPlugin) result;
assertTrue(castedResult.getModules(testModule1Factory).contains(testModule1));
assertTrue(castedResult.getModules(testModule2Factory).contains(testModule2));
}
Aggregations