use of com.qcadoo.view.internal.internal.ViewDefinitionImpl in project qcadoo by qcadoo.
the class ViewDefinitionTest method shouldReturnJsFilePaths.
@Test
public void shouldReturnJsFilePaths() throws Exception {
// given
ViewDefinitionImpl viewDefinition = new ViewDefinitionImpl("name", "plugin", mock(DataDefinition.class), true, null);
AbstractContainerPattern parent = new WindowComponentPattern(getComponentDefinition("test", viewDefinition));
ComponentPattern form = new FormComponentPattern(getComponentDefinition("test", parent, viewDefinition));
parent.addChild(form);
viewDefinition.addComponentPattern(parent);
viewDefinition.initialize();
// when
Set<String> paths = viewDefinition.getJsFilePaths();
// then
Assert.assertEquals(1, paths.size());
}
Aggregations