Thread: [Aceunit-commit] SF.net SVN: aceunit:[372] trunk/src/java/src/prj/net/sf/aceunit/Fixture. java
Status: Beta
Brought to you by:
christianhujer
From: <chr...@us...> - 2008-10-06 08:10:53
|
Revision: 372 http://aceunit.svn.sourceforge.net/aceunit/?rev=372&view=rev Author: christianhujer Date: 2008-10-06 08:10:41 +0000 (Mon, 06 Oct 2008) Log Message: ----------- Fixed bug: The loops max for the loop feature was not generated matching the test cases. Modified Paths: -------------- trunk/src/java/src/prj/net/sf/aceunit/Fixture.java Modified: trunk/src/java/src/prj/net/sf/aceunit/Fixture.java =================================================================== --- trunk/src/java/src/prj/net/sf/aceunit/Fixture.java 2008-10-06 08:09:16 UTC (rev 371) +++ trunk/src/java/src/prj/net/sf/aceunit/Fixture.java 2008-10-06 08:10:41 UTC (rev 372) @@ -234,8 +234,12 @@ out.format("#ifdef ACEUNIT_LOOP%n"); out.format("/** The loops of this fixture. */%n"); out.format("static const aceunit_loop_t loops[] = {%n"); - for (final String method : loopMethods) { - out.format(" %s,%n", loopMethods.getArg(method)); // TODO Care about last comma? + for (final String method : testMethods) { + if (loopMethods.contains(method)) { + out.format(" %s,%n", loopMethods.getArg(method)); // TODO Care about last comma? + } else { + out.format(" %s,%n", "1"); // TODO Care about last comma? + } } out.format("};%n"); out.format("#endif%n"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2008-10-06 08:22:53
|
Revision: 374 http://aceunit.svn.sourceforge.net/aceunit/?rev=374&view=rev Author: christianhujer Date: 2008-10-06 08:21:49 +0000 (Mon, 06 Oct 2008) Log Message: ----------- Cosmetic: Removed redundant whitespace. Modified Paths: -------------- trunk/src/java/src/prj/net/sf/aceunit/Fixture.java Modified: trunk/src/java/src/prj/net/sf/aceunit/Fixture.java =================================================================== --- trunk/src/java/src/prj/net/sf/aceunit/Fixture.java 2008-10-06 08:18:38 UTC (rev 373) +++ trunk/src/java/src/prj/net/sf/aceunit/Fixture.java 2008-10-06 08:21:49 UTC (rev 374) @@ -63,7 +63,7 @@ private final MethodList ignoreMethods = MethodList.createIgnoreMethodList(); /** The list of {@code @Loop} methods. */ - private final MethodList2 loopMethods = MethodList.createLoopMethodList(); + private final MethodList2 loopMethods = MethodList.createLoopMethodList(); /** All method lists for easy iteration. */ private final List<MethodList> methodLists = Arrays.asList(testMethods, beforeMethods, afterMethods, beforeClassMethods, afterClassMethods, ignoreMethods, loopMethods); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2008-11-02 16:49:15
|
Revision: 424 http://aceunit.svn.sourceforge.net/aceunit/?rev=424&view=rev Author: christianhujer Date: 2008-11-02 16:49:08 +0000 (Sun, 02 Nov 2008) Log Message: ----------- Fixed bug in fixture names from previous commit. Modified Paths: -------------- trunk/src/java/src/prj/net/sf/aceunit/Fixture.java Modified: trunk/src/java/src/prj/net/sf/aceunit/Fixture.java =================================================================== --- trunk/src/java/src/prj/net/sf/aceunit/Fixture.java 2008-11-02 16:47:14 UTC (rev 423) +++ trunk/src/java/src/prj/net/sf/aceunit/Fixture.java 2008-11-02 16:49:08 UTC (rev 424) @@ -161,7 +161,7 @@ public String getFixture(@NotNull final String basename) { final Formatter out = new Formatter(); out.format("/** This fixture. */%n"); - out.format("const TestFixture_t %s = {%n", fixtureName); + out.format("const TestFixture_t %sFixture = {%n", fixtureName); out.format(" A_FIXTURE_ID,%n"); out.format("#ifdef ACEUNIT_SUITES%n"); out.format(" NULL,%n"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2009-08-16 21:35:47
|
Revision: 522 http://aceunit.svn.sourceforge.net/aceunit/?rev=522&view=rev Author: christianhujer Date: 2009-08-16 21:35:33 +0000 (Sun, 16 Aug 2009) Log Message: ----------- Fix javadoc error. Modified Paths: -------------- trunk/src/java/src/prj/net/sf/aceunit/Fixture.java Modified: trunk/src/java/src/prj/net/sf/aceunit/Fixture.java =================================================================== --- trunk/src/java/src/prj/net/sf/aceunit/Fixture.java 2009-08-16 18:14:59 UTC (rev 521) +++ trunk/src/java/src/prj/net/sf/aceunit/Fixture.java 2009-08-16 21:35:33 UTC (rev 522) @@ -237,7 +237,7 @@ return out.toString(); } - /** @inheritDoc} */ + /** @{inheritDoc} */ @Override public String getGlobalVariablename() { return fixtureName + "Fixture"; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2011-03-26 22:27:08
|
Revision: 579 http://aceunit.svn.sourceforge.net/aceunit/?rev=579&view=rev Author: christianhujer Date: 2011-03-26 22:27:01 +0000 (Sat, 26 Mar 2011) Log Message: ----------- Remove TODO. I will not care about the last comma for stupid standards-violating compilers until someone really requires it. Modified Paths: -------------- trunk/src/java/src/prj/net/sf/aceunit/Fixture.java Modified: trunk/src/java/src/prj/net/sf/aceunit/Fixture.java =================================================================== --- trunk/src/java/src/prj/net/sf/aceunit/Fixture.java 2011-03-26 22:14:31 UTC (rev 578) +++ trunk/src/java/src/prj/net/sf/aceunit/Fixture.java 2011-03-26 22:27:01 UTC (rev 579) @@ -174,7 +174,7 @@ out.format("/** The loops of this fixture. */%n"); out.format("static const aceunit_loop_t loops[] = {%n"); for (final String method : testMethods) { - out.format(" %s,%n", loopMethods.getArg(method)); // TODO Care about last comma? + out.format(" %s,%n", loopMethods.getArg(method)); } out.format("};%n"); out.format("#endif%n"); @@ -183,7 +183,7 @@ out.format("/** The groups of this fixture. */%n"); out.format("static const AceGroupId_t groups[] = {%n"); for (final String method : testMethods) { - out.format(" %s,%n", groupMethods.getArg(method)); // TODO Care about last comma? + out.format(" %s,%n", groupMethods.getArg(method)); } out.format("};%n"); out.format("#endif%n"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |