Ignore:
Timestamp:
07/09/14 13:35:54 (10 years ago)
Author:
sherbold
Message:
  • made the soapRequest and soapResponse fields of the SOAPEventType transient. It is as of now unclear whether we need them as part of Serialization and my be changed later. This should, at least, not affect the equals and hashCode operations, as both ignore the soapRequest and soapResponse fields.
File:
1 edited

Legend:

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

    r1561 r1591  
    2929import javax.xml.transform.stream.StreamResult; 
    3030 
     31import org.apache.commons.lang.SerializationUtils; 
    3132import org.junit.After; 
    3233import org.junit.Before; 
     
    171172     
    172173    /** 
     174     * @throws Exception 
     175     */ 
     176    @Test 
     177    public void testSerializability_1() throws Exception { 
     178        HTTPLogParser parser = new HTTPLogParser(); 
     179        parser.parseFile 
     180            (new File(ClassLoader.getSystemResource("httpmonitor_testtrace_1.xml").getFile())); 
     181        Collection<List<Event>> events = parser.getSequences(); 
     182 
     183        assertNotNull(events); 
     184        assertEquals(1, events.size()); 
     185         
     186        Iterator<List<Event>> iterator = events.iterator(); 
     187        assertNotNull(iterator); 
     188        assertEquals(876, iterator.next().size()); 
     189        assertFalse(iterator.hasNext()); 
     190 
     191        for (List<Event> session : events) { 
     192            for (Event event : session) { 
     193                byte[] serializedEvent = SerializationUtils.serialize(event); 
     194                assertEquals(event, SerializationUtils.deserialize(serializedEvent)); 
     195            } 
     196        } 
     197    } 
     198     
     199    /** 
    173200     * 
    174201     */ 
Note: See TracChangeset for help on using the changeset viewer.