Ignore:
Timestamp:
02/14/13 15:20:07 (12 years ago)
Author:
pharms
Message:
  • support of new HTML logging format
Location:
trunk/autoquest-plugin-html-test/src/test/java/de/ugoe/cs/autoquest/plugin/html
Files:
1 deleted
1 edited

Legend:

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

    r1066 r1069  
    1919import java.io.File; 
    2020import java.util.Collection; 
     21import java.util.Iterator; 
    2122import java.util.List; 
    2223import java.util.logging.Level; 
     
    5455   public void testParseFile() throws Exception { 
    5556       HTMLLogParser parser = new HTMLLogParser(); 
    56        parser.parseFile(new File(ClassLoader.getSystemResource("htmlmonitor_testtrace.xml").getFile())); 
     57       parser.parseFile(new File(ClassLoader.getSystemResource("htmlmonitor_testtrace_1.xml").getFile())); 
     58       parser.parseFile(new File(ClassLoader.getSystemResource("htmlmonitor_testtrace_2.xml").getFile())); 
    5759       Collection<List<Event>> events = parser.getSequences(); 
    5860 
    5961       assertNotNull(events); 
    60        assertTrue(events.size() > 0); 
     62       assertEquals(2, events.size()); 
     63        
     64       Iterator<List<Event>> iterator = events.iterator(); 
     65       assertNotNull(iterator); 
     66       assertEquals(1, iterator.next().size()); 
     67       assertEquals(3, iterator.next().size()); 
     68       assertFalse(iterator.hasNext()); 
    6169 
    6270       System.err.println("{"); 
Note: See TracChangeset for help on using the changeset viewer.