Ignore:
Timestamp:
02/14/13 15:20:07 (11 years ago)
Author:
pharms
Message:
  • support of new HTML logging format
Location:
trunk/autoquest-plugin-html-test
Files:
2 added
3 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-html-test/.classpath

    r953 r1069  
    1313                </attributes> 
    1414        </classpathentry> 
    15         <classpathentry kind="src" path="src/test/resources"/> 
     15        <classpathentry including="**/*.java" kind="src" path="src/test/resources"/> 
    1616        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"> 
    1717                <attributes> 
  • trunk/autoquest-plugin-html-test/pom.xml

    r953 r1069  
    2828                <executions> 
    2929                    <execution> 
    30                         <id>get-jfc-plugin-config</id> 
     30                        <id>get-html-plugin-config</id> 
    3131                        <phase>process-classes</phase> 
    3232                        <goals> 
  • 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.