@Test public void testGetLocalFlows() throws IOException { createProjectDir(PROJECT_PATH); scaffolding.createEntity("my-entity"); assertEquals(0, fm.getLocalFlows().size()); CodeFormat[] codeFormats = new CodeFormat[] { CodeFormat.JAVASCRIPT, CodeFormat.XQUERY }; DataFormat[] dataFormats = new DataFormat[] { DataFormat.JSON, DataFormat.XML }; FlowType[] flowTypes = new FlowType[] { FlowType.INPUT, FlowType.HARMONIZE }; for (CodeFormat codeFormat : codeFormats) { for (DataFormat dataFormat : dataFormats) { for (FlowType flowType : flowTypes) { String flowName = flowType.toString() + "-" + codeFormat.toString() + "-" + dataFormat.toString(); scaffolding.createFlow("my-entity", flowName, flowType, codeFormat, dataFormat, false); } } } List<Flow> flows = fm.getLocalFlows(); assertEquals(8, flows.size()); for (Flow flow : flows) { assertEquals("my-entity", flow.getEntityName()); } FileUtils.deleteDirectory(Paths.get("./del-me-dir").toFile()); }