AbstractKogitoDMNService implements KogitoDMNService { protected ClientDMNType getDMNTypeFromMaps(final Map<String, ClientDMNType> dmnTypesMap, final Map<QName, String> source) { String typeRef = source.get(TYPEREF_QNAME); if (typeRef == null) { typeRef = BuiltInType.ANY.getName(); } return dmnTypesMap.get(typeRef); }  @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; }
@Test public void getDMNTypeFromMaps() { Map<String, ClientDMNType> dmnTypesMap = abstractKogitoDMNServiceSpy.getDMNDataTypesMap(jstiItemDefinitions, NAMESPACE); attributesMapInput.put(TYPEREF_QNAME, "number"); ClientDMNType clientDMNType = abstractKogitoDMNServiceSpy.getDMNTypeFromMaps(dmnTypesMap, attributesMapInput); assertNotNull(clientDMNType); assertTrue(BuiltInType.NUMBER.equals(clientDMNType.getFeelType())); }