Ignore:
Timestamp:
07/17/15 10:40:38 (9 years ago)
Author:
sherbold
Message:
  • updated UMLUtils to allow TestComponent? stereotype directly applied to the property in a test context
  • updated UMLInteractionCreator to ignore unknown primitive types and only give a warning instead of throwing an exception and aborting
Location:
trunk/autoquest-plugin-uml/src/main/java/de/ugoe/cs/autoquest/plugin/uml
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-uml/src/main/java/de/ugoe/cs/autoquest/plugin/uml/UMLInteractionCreator.java

    r2010 r2011  
    482482            else if (prop.getType() instanceof DataType) { 
    483483                if( isXSDSequence(prop.getType()) ) { // XSD sequence, no real type 
    484                     System.out.println(SOAPUtils.getChildNodeNames(currentNode)); 
    485484                    List<String> childNames = SOAPUtils.getChildNodeNames(currentNode); 
    486485                    List<org.w3c.dom.Element> childNodes = SOAPUtils.getChildElements(currentNode); 
     
    550549                            }  
    551550                        } 
    552                         System.out.println(prop.getName() + " " + sequenceIsMatch); 
    553551                    } 
    554552                } 
     
    697695                Console.traceln(Level.SEVERE, "could not create literal for primitive type: " + 
    698696                    prop.getType().getName()); 
    699                 throw new RuntimeException("unknown primitive type: " + prop.getType().getName()); 
     697                Console.traceln(Level.SEVERE, "attribute is ignored!"); 
     698                // TODO 
     699                //throw new RuntimeException("unknown primitive type: " + prop.getType().getName()); 
    700700            } 
    701701        } 
     
    747747            if( attributeValue!=null ) { 
    748748                value.setInstance(((Enumeration) prop.getType()).getOwnedLiteral(attributeValue)); 
    749                 System.out.println("foo"); 
    750749            } else { 
    751750                throw new RuntimeException("cannot create enumeration literal with dummy value"); 
  • trunk/autoquest-plugin-uml/src/main/java/de/ugoe/cs/autoquest/plugin/uml/UMLUtils.java

    r2009 r2011  
    759759        final Set<Property> properties = new HashSet<>(); 
    760760        for (Property property : testContext.getAllAttributes()) { 
    761             if (property.getType().getAppliedStereotypes().contains(utpTestComponent)) { 
     761            // TODO once all models are update the first condition should be removed 
     762            if (property.getType().getAppliedStereotypes().contains(utpTestComponent) || 
     763                property.getType().getApplicableStereotypes().contains(utpTestComponent)) { 
    762764                properties.add(property); 
    763765            } 
Note: See TracChangeset for help on using the changeset viewer.