Acceptance tests now run with JUnit

This commit is contained in:
Mike Cifelli 2017-03-02 15:26:21 -05:00
parent 4a91d197fd
commit 0eb8db36a8
7 changed files with 19 additions and 7 deletions

View File

@ -2,7 +2,6 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="src" path="acctest"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="owner.project.facets" value="java"/>
@ -10,5 +9,6 @@
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="lib" path="lib/recursion.jar"/>
<classpathentry kind="lib" path="fitnesse/fitnesse-standalone.jar"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>

1
.gitignore vendored
View File

@ -2,6 +2,7 @@ build/
doc/
FitNesseRoot/FitNesse/UserGuide/
fitnesse/FitNesseRoot/files
fitnesse/fitnesse-results
jar/
*.zip
*.swp

View File

@ -1,8 +1,8 @@
---
Test
---
| import |
| fixture |
| import |
| acceptance.fixture |
| script | lisp interpreter fixture |
| reset |

View File

@ -1,5 +1,5 @@
|LispInterpreter.SetUp||15:09:12 Thu, Mar 02, 2017|
|LispInterpreter.MultipleMethodClosure||16:02:22 Wed, Mar 01, 2017|
|LispInterpreter.SetUp||11:04:36 Wed, Mar 01, 2017|
|LispInterpreter.LexicalClosures||12:10:13 Mon, Feb 27, 2017|
|LispInterpreter.TestClosure||11:24:27 Mon, Feb 27, 2017|
|LispInterpreter.TestOne||09:26:08 Fri, Feb 24, 2017|

View File

@ -40,7 +40,7 @@ public class ArgumentValidator {
this.firstArgumentType = argumentType;
this.trailingArgumentType = argumentType;
}
public void setFirstArgumentExcludedType(Class<? extends SExpression> argumentType) {
this.excludedFirstArgumentType = argumentType;
}
@ -52,7 +52,7 @@ public class ArgumentValidator {
public void setEveryArgumentExcludedType(Class<? extends SExpression> argumentType) {
this.excludedFirstArgumentType = argumentType;
this.excludedTrailingArgumentType = argumentType;
}
}
public void setMaximumNumberOfArguments(int maximumNumberOfArguments) {
this.maximumNumberOfArguments = BigInteger.valueOf(maximumNumberOfArguments);

View File

@ -0,0 +1,11 @@
package acceptance;
import org.junit.runner.RunWith;
import fitnesse.junit.FitNesseRunner;
@RunWith(FitNesseRunner.class)
@FitNesseRunner.Suite("LispInterpreter")
@FitNesseRunner.FitnesseDir("fitnesse")
@FitNesseRunner.OutputDir("fitnesse/fitnesse-results")
public class FitNesseRunnerTester {}

View File

@ -1,4 +1,4 @@
package fixture;
package acceptance.fixture;
import java.io.*;