public CaseManagementSet() { this(new CaseIdPrefix(), new CaseRoles(), new CaseFileVariables()); }
@Test public void caseFileVariables() { CaseFileVariables caseFileVariables = new CaseFileVariables("CFV1:Boolean,CFV2:Boolean,CFV3:Boolean"); p.setCaseFileVariables(caseFileVariables); assertThat(p.itemDefinitions.size() == 3); }
@Test public void testGetRawValue() { CaseFileVariables testedWithValue = new CaseFileVariables(_value); assertEquals(testedWithValue.getRawValue(), _rawValue); CaseFileVariables testedNoValue = new CaseFileVariables(); assertEquals(testedNoValue.getRawValue(), ""); }
@Test public void testGetValue() { CaseFileVariables tested = new CaseFileVariables(_value); assertEquals(_value, tested.getValue()); }
@Test public void testHashCode() { CaseFileVariables testedWithValue = new CaseFileVariables(_value); assertEquals(testedWithValue.hashCode(), -1359743347); }
@Test public void testEquals() { CaseFileVariables testedWithValue = new CaseFileVariables(_value); CaseFileVariables otherEqual = new CaseFileVariables(_value); assertFalse(testedWithValue.equals(null)); assertEquals(testedWithValue, testedWithValue); assertEquals(otherEqual, testedWithValue); assertEquals(testedWithValue, otherEqual); CaseFileVariables otherNotEqual = new CaseFileVariables(); assertNotEquals(new Object(), testedWithValue); assertNotEquals(testedWithValue, new Object()); assertNotEquals(otherNotEqual, testedWithValue); assertNotEquals(testedWithValue, otherNotEqual); } }
@Test public void testGetType() { CaseFileVariables tested = new CaseFileVariables(_value); assertEquals(new VariablesType(), tested.getType()); }
private BpmnNode convertProcessNode(String id, Process process) { Node<View<D>, Edge> diagramNode = delegate.factoryManager.newNode(id, getDiagramClass()); D definition = diagramNode.getContent().getDefinition(); ProcessPropertyReader e = delegate.propertyReaderFactory.of(process); definition.setDiagramSet(new DiagramSet(new Name(process.getName()), new Documentation(e.getDocumentation()), new Id(process.getId()), new Package(e.getPackage()), new Version(e.getVersion()), new AdHoc(e.isAdHoc()), new ProcessInstanceDescription(e.getDescription()), new Executable(process.isIsExecutable())) ); definition.setCaseManagementSet(new CaseManagementSet(new CaseIdPrefix(e.getCaseIdPrefix()), new CaseRoles(e.getCaseRoles()), new CaseFileVariables(e.getCaseFileVariables()) )); definition.setProcessData(new ProcessData(new ProcessVariables(e.getProcessVariables()))); diagramNode.getContent().setBounds(e.getBounds()); definition.setFontSet(e.getFontSet()); definition.setBackgroundSet(e.getBackgroundSet()); return BpmnNode.of(diagramNode); }
root.getCaseManagementSet().setCaseFileVariables(new CaseFileVariables("DiagramTest:Boolean"));