Ignore:
Timestamp:
11/27/14 12:44:01 (10 years ago)
Author:
sherbold
Message:
  • updated UMLUtils and UMLUtilsTest to work with a first version of the MIDAS logistics pilot. This also required changes in the service name maps. They now must point to the component for a service, not the interface.
Location:
trunk/autoquest-plugin-uml-test/src/test
Files:
2 added
3 edited

Legend:

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

    r1763 r1835  
    167167        ModelUtils.writeModelToFile(model, OUTPUT_DIR + "testCreateInteractionFromEventSequence_1_result.uml"); 
    168168    } 
     169     
     170    @Test 
     171    public void testCreateInteractionFromEventSequence_2() throws Exception { 
     172        // parse log file 
     173        HTTPLogParser parser = 
     174            new HTTPLogParser(new File(ClassLoader 
     175                .getSystemResource("testCreateInteractionFromEventSequence_2_properties.txt") 
     176                .getFile())); 
     177        parser 
     178            .parseFile(new File(ClassLoader 
     179                .getSystemResource("testCreateInteractionFromEventSequence_2_usagedata.log") 
     180                .getFile())); 
     181        Collection<List<Event>> httpSequences = parser.getSequences(); 
     182 
     183         
     184        Model model = 
     185            ModelUtils.loadModel(ClassLoader 
     186                .getSystemResourceAsStream("testCreateInteractionFromEventSequence_2_model.uml")); 
     187 
     188        for (List<Event> httpSequence : httpSequences) { 
     189            for (Iterator<Event> eventIter = httpSequence.iterator(); eventIter.hasNext();) { 
     190                Event event = eventIter.next(); 
     191                if (!(event.getType() instanceof SOAPEventType)) { 
     192                    eventIter.remove(); 
     193                } 
     194            } 
     195 
     196            UMLUtils.createInteractionFromEventSequence(httpSequence, model, "testSequence"); 
     197        } 
     198 
     199        ModelUtils.writeModelToFile(model, OUTPUT_DIR + "testCreateInteractionFromEventSequence_2_result.uml"); 
     200         
     201    } 
    169202 
    170203    @Test 
  • trunk/autoquest-plugin-uml-test/src/test/resources/testCalculateUsageScore_1_properties.txt

    r1643 r1835  
    1 /midas/rlus/query/xdw = rlus 
    2 /midas/rlus/update/xdw = rlus 
    3 /midas/rlus/update/cda2report = rlus 
    4 /midas/ixsmq/update/pocdpatient = ixsmq 
    5 /midas/ixsmq/query/pocdpatient = ixsmq 
     1/midas/rlus/query/xdw = rlus_property 
     2/midas/rlus/update/xdw = rlus_property 
     3/midas/rlus/update/cda2report = rlus_property 
     4/midas/ixsmq/update/pocdpatient = ixsmq_property 
     5/midas/ixsmq/query/pocdpatient = ixsmq_property 
  • trunk/autoquest-plugin-uml-test/src/test/resources/testCreateInteractionFromEventSequence_1_properties.txt

    r1625 r1835  
    1 /midas/rlus/query/xdw = rlus 
    2 /midas/rlus/update/xdw = rlus 
    3 /midas/rlus/update/cda2report = rlus 
    4 /midas/ixsmq/update/pocdpatient = ixsmq 
    5 /midas/ixsmq/query/pocdpatient = ixsmq 
     1/midas/rlus/query/xdw = rlus_property 
     2/midas/rlus/update/xdw = rlus_property 
     3/midas/rlus/update/cda2report = rlus_property 
     4/midas/ixsmq/update/pocdpatient = ixsmq_property 
     5/midas/ixsmq/query/pocdpatient = ixsmq_property 
Note: See TracChangeset for help on using the changeset viewer.