Changeset 1591 for trunk/autoquest-plugin-http-test/src/test/java/de/ugoe
- Timestamp:
- 07/09/14 13:35:54 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-http-test/src/test/java/de/ugoe/cs/autoquest/http/HTTPLogParserTest.java
r1561 r1591 29 29 import javax.xml.transform.stream.StreamResult; 30 30 31 import org.apache.commons.lang.SerializationUtils; 31 32 import org.junit.After; 32 33 import org.junit.Before; … … 171 172 172 173 /** 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 /** 173 200 * 174 201 */
Note: See TracChangeset
for help on using the changeset viewer.