Ignore:
Timestamp:
07/14/15 13:20:26 (9 years ago)
Author:
sherbold
Message:
  • UMLInteractionCreator now caches instance specifications and reuses them is possible
  • UMLUtil.createInteractionFromEventSequence now works with a collection of sequences instead of single sequence; this allows the enforcement of the instance specification caching
  • updated tests to comply with new interface of UMLUtils
File:
1 edited

Legend:

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

    r2008 r2009  
    423423     *            defines is random request bodies are used or the body of the associated event 
    424424     */ 
    425     public static Interaction createInteractionFromEventSequence(List<Event> sequence, 
     425    public static List<Interaction> createInteractionFromEventSequence(Collection<List<Event>> sequences, 
    426426                                                                 Model model, 
    427427                                                                 String interactionName, 
     
    429429                                                                 boolean useRandomMsgBodies) 
    430430    { 
     431        List<Interaction> interactions = new LinkedList<>(); 
    431432        UMLInteractionCreator interactionCreator = new UMLInteractionCreator(model, testContextName, useRandomMsgBodies); 
    432         return interactionCreator.createInteraction(sequence, interactionName); 
     433        int i=0; 
     434        for( List<Event> sequence : sequences ) { 
     435            interactions.add(interactionCreator.createInteraction(sequence, interactionName+"_"+i)); 
     436            i++; 
     437        } 
     438        return interactions; 
    433439    } 
    434440 
Note: See TracChangeset for help on using the changeset viewer.