@Test public void createTopLevelFactModelTreeSimpleNoCollection() { ClientDMNType simpleString = getSimpleNoCollection(); FactModelTree retrieved = abstractKogitoDMNServiceSpy.createTopLevelFactModelTree("testPath", simpleString, new TreeMap<>(), FactModelTree.Type.INPUT); Assert.assertNotNull(retrieved); assertEquals("testPath", retrieved.getFactName()); assertEquals(1, retrieved.getSimpleProperties().size()); assertTrue(retrieved.getSimpleProperties().containsKey(VALUE)); assertEquals(simpleString.getName(), retrieved.getSimpleProperties().get(VALUE).getTypeName()); assertFalse(retrieved.getSimpleProperties().get(VALUE).getBaseTypeName().isPresent()); assertEquals(simpleString.getName(), retrieved.getSimpleProperties().get(VALUE).getPropertyTypeNameToVisualize()); assertTrue(retrieved.getGenericTypesMap().isEmpty()); }
protected FactModelTree createTopLevelFactModelTree(final String factName, final ClientDMNType type, final SortedMap<String, FactModelTree> hiddenFacts, final FactModelTree.Type fmType) { return isToBeManagedAsCollection(type) ? createFactModelTreeForCollection(new HashMap<>(), factName, type, hiddenFacts, fmType, new ArrayList<>()) : createFactModelTreeForNoCollection(new HashMap<>(), factName, factName, type.getName(), type, hiddenFacts, fmType, new ArrayList<>()); }
AbstractKogitoDMNService implements KogitoDMNService { protected FactModelTree createTopLevelFactModelTree(final String factName, final ClientDMNType type, final SortedMap<String, FactModelTree> hiddenFacts, final FactModelTree.Type fmType) { return isToBeManagedAsCollection(type) ? createFactModelTreeForCollection(new HashMap<>(), factName, type, hiddenFacts, fmType, new ArrayList<>()) : createFactModelTreeForNoCollection(new HashMap<>(), factName, factName, type.getName(), type, hiddenFacts, fmType, new ArrayList<>()); } }
AbstractKogitoDMNService implements KogitoDMNService { protected FactModelTree createTopLevelFactModelTree(final String factName, final ClientDMNType type, final SortedMap<String, FactModelTree> hiddenFacts, final FactModelTree.Type fmType) { return isToBeManagedAsCollection(type) ? createFactModelTreeForCollection(new HashMap<>(), factName, type, hiddenFacts, fmType, new ArrayList<>()) : createFactModelTreeForNoCollection(new HashMap<>(), factName, factName, type.getName(), type, hiddenFacts, fmType, new ArrayList<>()); }  }
AbstractKogitoDMNService implements KogitoDMNService { protected FactModelTree createTopLevelFactModelTree(final String factName, final ClientDMNType type, final SortedMap<String, FactModelTree> hiddenFacts, final FactModelTree.Type fmType) { return isToBeManagedAsCollection(type) ? createFactModelTreeForCollection(new HashMap<>(), factName, type, hiddenFacts, fmType, new ArrayList<>()) : createFactModelTreeForNoCollection(new HashMap<>(), factName, factName, type.getName(), type, hiddenFacts, fmType, new ArrayList<>()); }  @Override FactModelTuple getFactModelTuple(final JSITDefinitions jsitDefinitions); boolean isJSITInputData(JSITDRGElement jsitdrgElement); boolean isJSITDecision(JSITDRGElement jsitdrgElement); Map<QName, String> getOtherAttributesMap(JSITDMNElement jsitInputDataVariable); }
AbstractKogitoDMNService implements KogitoDMNService { protected FactModelTree createTopLevelFactModelTree(final String factName, final ClientDMNType type, final SortedMap<String, FactModelTree> hiddenFacts, final FactModelTree.Type fmType) { return isToBeManagedAsCollection(type) ? createFactModelTreeForCollection(new HashMap<>(), factName, type, hiddenFacts, fmType, new ArrayList<>()) : createFactModelTreeForNoCollection(new HashMap<>(), factName, factName, type.getName(), type, hiddenFacts, fmType, new ArrayList<>()); }  @Override FactModelTuple getFactModelTuple(final JSITDefinitions jsitDefinitions); boolean isJSITInputData(JSITDRGElement jsitdrgElement); boolean isJSITDecision(JSITDRGElement jsitdrgElement); Map<QName, String> getOtherAttributesMap(JSITDMNElement jsitInputDataVariable); static final String URI_FEEL; static final String WRONG_DMN_MESSAGE; }