Ignore:
Timestamp:
07/09/15 13:50:59 (9 years ago)
Author:
sherbold
Message:
  • fixed bug in the serialization of SimpleSOAPEventType. It is a workaround around a JDK bug ... who would have thought that HashMaps? have a serialization bug?!
File:
1 edited

Legend:

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

    r1993 r1994  
    1919import java.io.FileOutputStream; 
    2020import java.util.Collection; 
    21 import java.util.HashSet; 
    22 import java.util.Iterator; 
    2321import java.util.LinkedList; 
    2422import java.util.List; 
    2523import java.util.Properties; 
    2624import java.util.Random; 
    27 import java.util.Set; 
    2825import java.util.logging.Level; 
    2926 
     
    4239import de.ugoe.cs.autoquest.plugin.http.HTTPLogParser; 
    4340import de.ugoe.cs.autoquest.plugin.http.SOAPUtils; 
    44 import de.ugoe.cs.autoquest.plugin.http.SOAPUtils.SequenceOrder; 
    4541import de.ugoe.cs.autoquest.plugin.http.eventcore.SimpleSOAPEventType; 
    4642import de.ugoe.cs.autoquest.testgeneration.RandomWalkGenerator; 
     
    173169            .add(new Event(new SimpleSOAPEventType("transportInstructionRequest", 
    174170                                                   "TransportService", "Logistics_Environment", 
    175                                                    null))); 
     171                                                   null, null, null))); 
    176172        manuallyCreatedSequence 
    177173            .add(new Event(new SimpleSOAPEventType("transportInstructionConfirmationRequest", 
    178174                                                   "materialSupplierService", 
    179                                                    "Logistics_Environment", null))); 
     175                                                   "Logistics_Environment", null, null, null))); 
    180176 
    181177        // TODO make test case run 
     
    271267    public void testValidateModelWithLog_ITA_1() throws Exception { 
    272268        validateModelWithLogWorkflow(ita_1); 
     269    } 
     270     
     271    @Test 
     272    public void testSerialization_ITA_1() throws Exception { 
     273        TestData testdata = ita_1; 
     274        Properties properties = loadProperties(testdata); 
     275        Collection<List<Event>> sequences = loadAndPreprocessUsageJournal(testdata, properties); 
     276        IStochasticProcess model = createUsageProfile(testdata, sequences); 
     277        byte[] serialized = SerializationUtils.serialize(model); 
     278        SerializationUtils.deserialize(serialized); 
    273279    } 
    274280 
Note: See TracChangeset for help on using the changeset viewer.