@Test public void getDefaultImports() { final String CLASS_NAME = "className"; final int QTY = 10; List<DefaultImport> defaultImports = new ArrayList<>(); for (int i = 0; i < QTY; i++) { defaultImports.add(new DefaultImport(CLASS_NAME + i)); } CustomElement.defaultImports.of(process).set(defaultImports); List<DefaultImport> result = tested.getDefaultImports(); assertEquals(QTY, result.size()); for (int i = 0; i < result.size(); i++) { assertEquals(CLASS_NAME + i, result.get(i).getClassName()); } }
public List<DefaultImport> getDefaultImports() { return CustomElement.defaultImports.of(process).get(); }
ProcessPropertyReader extends BasePropertyReader { public List<DefaultImport> getDefaultImports() { return CustomElement.defaultImports.of(process).get(); } }
ProcessPropertyReader extends BasePropertyReader { public List<DefaultImport> getDefaultImports() { return CustomElement.defaultImports.of(process).get(); } ProcessPropertyReader(Process element, BPMNDiagram diagram, BPMNShape shape, double resolutionFactor); }
ProcessPropertyReader extends BasePropertyReader { public List<DefaultImport> getDefaultImports() { return CustomElement.defaultImports.of(process).get(); } ProcessPropertyReader(Process element, BPMNDiagram diagram, BPMNShape shape, double resolutionFactor); String getPackage(); String getProcessType(); String getVersion(); boolean isAdHoc(); @Override Bounds getBounds(); String getProcessVariables(); String getCaseIdPrefix(); String getCaseFileVariables(); String getCaseRoles(); FlowElement getFlowElement(String id); String getGlobalVariables(); String getMetaDataAttributes(); List<DefaultImport> getDefaultImports(); String getSlaDueDate(); }
ProcessPropertyReader extends BasePropertyReader { public List<DefaultImport> getDefaultImports() { return CustomElement.defaultImports.of(process).get(); } ProcessPropertyReader(Process element, BPMNDiagram diagram, BPMNShape shape, double resolutionFactor); String getPackage(); String getProcessType(); String getVersion(); boolean isAdHoc(); @Override Bounds getBounds(); String getProcessVariables(); String getCaseIdPrefix(); String getCaseFileVariables(); String getCaseRoles(); FlowElement getFlowElement(String id); String getGlobalVariables(); String getMetaDataAttributes(); List<DefaultImport> getDefaultImports(); String getSlaDueDate();  }