diff --git a/src/test/java/org/lemsml/jlems/test/ExamplesTest.java b/src/test/java/org/lemsml/jlems/test/ExamplesTest.java index 20acd6e7..f2ac725d 100644 --- a/src/test/java/org/lemsml/jlems/test/ExamplesTest.java +++ b/src/test/java/org/lemsml/jlems/test/ExamplesTest.java @@ -85,6 +85,7 @@ public void testExample10() throws ContentError, ConnectionError, RuntimeError, public boolean executeExample(String filename) throws ContentError, ConnectionError, RuntimeError, ParseError, IOException, ParseException, BuildException, XMLException { URL url = this.getClass().getResource("/"+filename); + System.out.println(" - Testing: "+url); File f = new File(url.getFile()); FileInclusionReader fir = new FileInclusionReader(f); diff --git a/src/test/java/org/lemsml/jlems/test/XMLExamplesReaderTest.java b/src/test/java/org/lemsml/jlems/test/XMLExamplesReaderTest.java index b478511e..17ecd114 100644 --- a/src/test/java/org/lemsml/jlems/test/XMLExamplesReaderTest.java +++ b/src/test/java/org/lemsml/jlems/test/XMLExamplesReaderTest.java @@ -29,7 +29,7 @@ public void testReadFromString() throws ParseException, BuildException, File fdir = new File(url.getFile()); for (File fx : fdir.listFiles()) { - E.info("Testing: " + fx); + E.info(" >>> Testing: " + fx); if (fx.isFile() && fx.getName().endsWith(".xml")) { String stxt = FileUtil.readStringFromFile(fx); XMLElementReader xmlReader = new XMLElementReader(stxt); @@ -53,7 +53,7 @@ public void testReadFromString() throws ParseException, BuildException, + "'' and not ''"); } - assertEquals("Rewrite matches", sns.length(), tns.length()); + assertEquals("Rewrite matches ("+fx+")", sns.length(), tns.length()); } } } diff --git a/src/test/resources/SimpleNetwork.xml b/src/test/resources/SimpleNetwork.xml index 507842a0..9a55a87d 100644 --- a/src/test/resources/SimpleNetwork.xml +++ b/src/test/resources/SimpleNetwork.xml @@ -4,7 +4,6 @@ - @@ -13,8 +12,6 @@ - - @@ -23,17 +20,13 @@ - - - + - - diff --git a/src/test/resources/SingleSimulation.xml b/src/test/resources/SingleSimulation.xml index 1a2319da..e6a7d555 100644 --- a/src/test/resources/SingleSimulation.xml +++ b/src/test/resources/SingleSimulation.xml @@ -1,22 +1,17 @@ - - - + - - - @@ -27,20 +22,15 @@ - - - - - @@ -48,28 +38,17 @@ - - - - - - - - - - - - \ No newline at end of file + diff --git a/src/test/resources/elecdims.xml b/src/test/resources/elecdims.xml index c81221a4..612f2cf3 100644 --- a/src/test/resources/elecdims.xml +++ b/src/test/resources/elecdims.xml @@ -4,5 +4,4 @@ - - \ No newline at end of file + diff --git a/src/test/resources/ex2dims.xml b/src/test/resources/ex2dims.xml index aeb1e228..702c3194 100644 --- a/src/test/resources/ex2dims.xml +++ b/src/test/resources/ex2dims.xml @@ -1,5 +1,4 @@ - - + @@ -8,8 +7,8 @@ - - + + @@ -19,5 +18,4 @@ - - \ No newline at end of file + diff --git a/src/test/resources/example1.xml b/src/test/resources/example1.xml index d84c23b6..393f3f8c 100644 --- a/src/test/resources/example1.xml +++ b/src/test/resources/example1.xml @@ -1,275 +1,220 @@ + - - - - - - - - - + + + + + + - - - + + + - - - - - - - - - - - - + + + + + + + + + + + - - + - + - - - - - - - + + + + + - - - + + - + - - - - - + + + - - + + - - + + - - - + + - - + + - - - - - - + + + + + - - + - - + - - - + + - - - - - - + + + + + - - - - - + + + + + - - - - - - + + + + + - - - - - - - + + + + + + + - - - - + + + - - + + - - - + + - - + + - - - + + - - - - - - - + + + + + - - - + + + - - + - - - - - - - + + + + + - + - - - - + + + - - - - + + - - - - - - - - - - - - - - + + + + + - - - - - - + + + + - + - - - - + - - - - + + + + - - \ No newline at end of file + diff --git a/src/test/resources/example2.xml b/src/test/resources/example2.xml index bdfe1b42..26e39531 100644 --- a/src/test/resources/example2.xml +++ b/src/test/resources/example2.xml @@ -1,51 +1,40 @@ - - + - - + - - + - - + - - - + - - - - - - + + + - - - + + + - - \ No newline at end of file + diff --git a/src/test/resources/example3.xml b/src/test/resources/example3.xml index 7e78b8b8..bbee903c 100644 --- a/src/test/resources/example3.xml +++ b/src/test/resources/example3.xml @@ -1,21 +1,13 @@ - - - + - - - - - + - @@ -23,98 +15,75 @@ - - - - - + + - - - - - + - - - - + - - - - - + - - - - + - - - - - - + + @@ -123,7 +92,4 @@ - - - - \ No newline at end of file + diff --git a/src/test/resources/example4.xml b/src/test/resources/example4.xml index d905399c..74660f4e 100644 --- a/src/test/resources/example4.xml +++ b/src/test/resources/example4.xml @@ -1,46 +1,35 @@ - - - + - - - - - - + - - @@ -51,12 +40,10 @@ - - @@ -64,7 +51,6 @@ - @@ -72,8 +58,7 @@ - - + @@ -82,53 +67,42 @@ - - - - - + + + - - + - - - - - - - - + + + - - - @@ -139,24 +113,19 @@ - - + - - - - - - + + @@ -165,15 +134,11 @@ - - - - - \ No newline at end of file + diff --git a/src/test/resources/example5.xml b/src/test/resources/example5.xml index c574a42b..38aa9562 100644 --- a/src/test/resources/example5.xml +++ b/src/test/resources/example5.xml @@ -1,5 +1,4 @@ - @@ -9,12 +8,10 @@ - - @@ -24,50 +21,39 @@ - - + - - - - - - - - + + - - @@ -78,21 +64,17 @@ - - - - @@ -100,8 +82,7 @@ - - + @@ -110,35 +91,26 @@ - - - - - - - - + + + - - + - - - @@ -146,21 +118,15 @@ - - - - - - + + + - - - @@ -172,27 +138,22 @@ - - + - - - - - + + - - \ No newline at end of file + diff --git a/src/test/resources/example6.xml b/src/test/resources/example6.xml index 8dd4025b..12e3f6d4 100644 --- a/src/test/resources/example6.xml +++ b/src/test/resources/example6.xml @@ -1,44 +1,35 @@ - - - + + - - + - - - + - - + - + - - - @@ -49,25 +40,19 @@ - - - - - - - + @@ -75,6 +60,4 @@ --> - - - \ No newline at end of file + diff --git a/src/test/resources/example7.xml b/src/test/resources/example7.xml index 4e46e4cb..89c6311e 100644 --- a/src/test/resources/example7.xml +++ b/src/test/resources/example7.xml @@ -1,76 +1,59 @@ - - - - + + - - - - - + - - - - - - - + - - + - - - - \ No newline at end of file + diff --git a/src/test/resources/example8.xml b/src/test/resources/example8.xml index 43d0b54e..b7dbc6f9 100644 --- a/src/test/resources/example8.xml +++ b/src/test/resources/example8.xml @@ -1,119 +1,95 @@ - - - - + - - - - - - - - - + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - + - - + - - - - + - - - - + @@ -121,6 +97,4 @@ - - - \ No newline at end of file + diff --git a/src/test/resources/hhaltgate.xml b/src/test/resources/hhaltgate.xml index 39906ee0..64c3f8d2 100644 --- a/src/test/resources/hhaltgate.xml +++ b/src/test/resources/hhaltgate.xml @@ -1,24 +1,18 @@ - - + - - - - + - - + - - \ No newline at end of file + diff --git a/src/test/resources/hhcell.xml b/src/test/resources/hhcell.xml index 90575e19..782f2991 100644 --- a/src/test/resources/hhcell.xml +++ b/src/test/resources/hhcell.xml @@ -1,12 +1,9 @@ - - - @@ -14,36 +11,29 @@ - - - - - - - + - - \ No newline at end of file + diff --git a/src/test/resources/hhchannel.xml b/src/test/resources/hhchannel.xml index 7e7c6b47..debc1cbf 100644 --- a/src/test/resources/hhchannel.xml +++ b/src/test/resources/hhchannel.xml @@ -1,5 +1,4 @@ - @@ -7,7 +6,6 @@ - @@ -16,49 +14,42 @@ - - + - - - - + - - + - + - - @@ -68,7 +59,4 @@ - - - diff --git a/src/test/resources/hhmodels.xml b/src/test/resources/hhmodels.xml index 60c36859..770bbe9e 100644 --- a/src/test/resources/hhmodels.xml +++ b/src/test/resources/hhmodels.xml @@ -1,29 +1,25 @@ - + - - - - - \ No newline at end of file + diff --git a/src/test/resources/misciaf.xml b/src/test/resources/misciaf.xml index 6899caee..10ea7f24 100644 --- a/src/test/resources/misciaf.xml +++ b/src/test/resources/misciaf.xml @@ -1,7 +1,5 @@ - - @@ -9,24 +7,18 @@ - - - - + - - - - \ No newline at end of file + diff --git a/src/test/resources/spikegenerators.xml b/src/test/resources/spikegenerators.xml index dd8db3f6..6c0d8dae 100644 --- a/src/test/resources/spikegenerators.xml +++ b/src/test/resources/spikegenerators.xml @@ -1,7 +1,5 @@ - - @@ -17,7 +15,6 @@ - @@ -28,6 +25,4 @@ - - - \ No newline at end of file +