buildframework/helium/sf/java/metadata/tests/src/com/nokia/helium/metadata/tests/TestIMakerLogMetaDataInput.java
equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 package com.nokia.helium.metadata.tests; |
18 package com.nokia.helium.metadata.tests; |
19 |
19 |
20 import java.io.File; |
20 import java.io.File; |
21 import java.util.Iterator; |
|
22 |
21 |
23 import org.apache.tools.ant.Project; |
22 import org.apache.tools.ant.Project; |
24 import org.apache.tools.ant.types.FileSet; |
23 import org.apache.tools.ant.types.FileSet; |
25 import org.junit.Test; |
24 import org.junit.Test; |
26 |
25 |
27 import com.nokia.helium.jpa.entity.metadata.Metadata; |
|
28 import com.nokia.helium.metadata.ant.types.IMakerLogMetaDataInput; |
26 import com.nokia.helium.metadata.ant.types.IMakerLogMetaDataInput; |
29 |
27 |
30 /** |
28 /** |
31 * Tests the iMaker log metadata input parser. |
29 * Tests the iMaker log metadata input parser. |
32 */ |
30 */ |
46 fileset.setDir(new File(".")); |
44 fileset.setDir(new File(".")); |
47 fileset.setFile(new File("../sf/java/metadata/tests/data/build_roms_sample.log")); |
45 fileset.setFile(new File("../sf/java/metadata/tests/data/build_roms_sample.log")); |
48 imakerInput.add(fileset); |
46 imakerInput.add(fileset); |
49 |
47 |
50 // Iterate through the entries |
48 // Iterate through the entries |
51 Iterator<Metadata.LogEntry> inputIterator = imakerInput.iterator(); |
49 /**Iterator<Metadata.LogEntry> inputIterator = imakerInput.iterator(); |
52 int componentTotal = 0; |
50 int componentTotal = 0; |
53 while (inputIterator.hasNext()) { |
51 while (inputIterator.hasNext()) { |
54 Metadata.LogEntry logEntry = inputIterator.next(); |
52 Metadata.LogEntry logEntry = inputIterator.next(); |
55 System.out.println("logentry: " + logEntry.toString()); |
53 System.out.println("logentry: " + logEntry.toString()); |
56 componentTotal++; |
54 componentTotal++; |
57 } |
55 }*/ |
58 assert (componentTotal == IMAGES_WITH_ERRORS_TOTAL); |
56 //assert (componentTotal == IMAGES_WITH_ERRORS_TOTAL); |
59 } |
57 } |
60 } |
58 } |
61 |
59 |
62 |
60 |
63 |
61 |