Ignore:
Timestamp:
07/07/15 08:36:28 (9 years ago)
Author:
sherbold
Message:
  • updated EqualSOAPDataMap: not a singleton anymore, now each event has a reference to the map. the map is created when the SOAPEvents are converted to SimpleSOAPEvents using the appropriate method from the SOAPUtils
  • the logic for deciding if random SOAP requests are selected or the one of the event itself was changed within the SimpleSOAPEvents. Now methods for both are offered and the caller has to decide which method to choose
  • the test case generation in the model utils now has a parameter to decide if random data or the data of the SimpleSOAPEvents is used
File:
1 edited

Legend:

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

    r1978 r1988  
    425425     *            Name of the test context that should be used. If this value is null, the first 
    426426     *            test context found is used. 
     427     * @param useRandomRequestBodies 
     428     *            defines is random request bodies are used or the body of the associated event 
    427429     */ 
    428430    public static Interaction createInteractionFromEventSequence(List<Event> sequence, 
    429431                                                                 Model model, 
    430432                                                                 String interactionName, 
    431                                                                  String testContextName) 
     433                                                                 String testContextName, 
     434                                                                 boolean useRandomRequestBodies) 
    432435    { 
    433436        final Component testContext = fetchTestContext(model, testContextName); 
     
    546549                Message callMessage = interaction.createMessage(prefix + "call"); 
    547550                callMessage.setSignature(calledOperation); 
    548                 setCallMessageParameters(callMessage, calledOperation, event, prefix); 
     551                setCallMessageParameters(callMessage, calledOperation, event, useRandomRequestBodies, prefix); 
    549552                callMessage.setConnector(connector); 
    550553                callMessage.setSendEvent(callSendFragment); 
     
    10251028     * @param event 
    10261029     *            event that provides the parameters; in case of null, default values are assumed 
     1030     * @param useRandomRequestBodies 
     1031     *            defines is random request bodies are used or the body of the associated event 
    10271032     * @param prefix 
    10281033     *            prefix of the call message; used to create good warnings and debugging information 
     
    10311036                                                 Operation calledOperation, 
    10321037                                                 Event event, 
     1038                                                 boolean useRandomRequestBodies, 
    10331039                                                 String prefix) 
    10341040    { 
    1035         org.w3c.dom.Element requestBody = SOAPUtils.getSoapRequestBodyFromEvent(event); 
     1041        org.w3c.dom.Element requestBody = SOAPUtils.getSoapRequestBodyFromEvent(event, useRandomRequestBodies); 
    10361042        Package instSpecPkg = null; 
    10371043 
Note: See TracChangeset for help on using the changeset viewer.