[Mathlib-commitlog] SF.net SVN: mathlib:[542] JMathLib/trunk/src/jmathlibtests/core/tokens
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2008-12-07 19:00:32
|
Revision: 542
http://mathlib.svn.sourceforge.net/mathlib/?rev=542&view=rev
Author: st_mueller
Date: 2008-12-07 19:00:28 +0000 (Sun, 07 Dec 2008)
Log Message:
-----------
added tearDown() method to test cases
Modified Paths:
--------------
JMathLib/trunk/src/jmathlibtests/core/tokens/testAddSubOperatorToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testAssignmentOperatorToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testBinaryOperatorToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testCaseToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testCharToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testColonOperatorToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testCommandToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testConditionToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testDataToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testDelimiterToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testDotOperatorToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testExpression.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testForOperatorToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testFunctionToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testIfThenOperatorToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testImaginaryNumberToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testMatrixToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testMulDivOperatorToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testNumberToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testNumberTokenComplex.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testOperandToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testOperatorToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testPowerOperatorToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testRelationOperatorToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testScalarToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testSwitchOperatorToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testUnaryOperatorToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testVariableToken.java
JMathLib/trunk/src/jmathlibtests/core/tokens/testWhileOperatorToken.java
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testAddSubOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testAddSubOperatorToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testAddSubOperatorToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -16,6 +16,10 @@
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
+
public static Test suite() {
return new TestSuite(testAddSubOperatorToken.class);
}
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testAssignmentOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testAssignmentOperatorToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testAssignmentOperatorToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -16,6 +16,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testAssignmentOperatorToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testBinaryOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testBinaryOperatorToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testBinaryOperatorToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -15,6 +15,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testBinaryOperatorToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testCaseToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testCaseToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testCaseToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -15,6 +15,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testCaseToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testCharToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testCharToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testCharToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -34,7 +34,10 @@
number = new DoubleNumberToken(1);
ml = new Interpreter(true);
}
-
+ protected void tearDown() {
+ ml = null;
+ }
+
public void testAdd1()
{
CharToken expectedResult = new CharToken("A StringAnother String");
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testColonOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testColonOperatorToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testColonOperatorToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -15,6 +15,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testColonOperatorToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testCommandToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testCommandToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testCommandToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -15,6 +15,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testCommandToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testConditionToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testConditionToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testConditionToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -16,6 +16,10 @@
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
+
public static Test suite() {
return new TestSuite(testConditionToken.class);
}
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testDataToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testDataToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testDataToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -16,6 +16,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testDataToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testDelimiterToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testDelimiterToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testDelimiterToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -15,6 +15,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testDelimiterToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testDotOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testDotOperatorToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testDotOperatorToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -16,6 +16,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testDotOperatorToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testExpression.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testExpression.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testExpression.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -15,6 +15,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testExpression.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testForOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testForOperatorToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testForOperatorToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -30,6 +30,10 @@
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
+
public void testFor01()
{
ml.executeExpression(" x=1;y=0;for(z=0;z<5;z=z+1) { x=x+1; y=z; } end");
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testFunctionToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testFunctionToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testFunctionToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -15,6 +15,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testFunctionToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testIfThenOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testIfThenOperatorToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testIfThenOperatorToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -26,6 +26,9 @@
{
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public void testIfThen01()
{
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testImaginaryNumberToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testImaginaryNumberToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testImaginaryNumberToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -15,6 +15,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testImaginaryNumberToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testMatrixToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testMatrixToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testMatrixToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -15,6 +15,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testMatrixToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testMulDivOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testMulDivOperatorToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testMulDivOperatorToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -15,6 +15,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testMulDivOperatorToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testNumberToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testNumberToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testNumberToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -39,8 +39,11 @@
val5 = new DoubleNumberToken(-6);
ml = new Interpreter(true);
}
-
+ protected void tearDown() {
+ ml = null;
+ }
+
public void testEquals()
{
assertEquals(val1, val3);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testNumberTokenComplex.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testNumberTokenComplex.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testNumberTokenComplex.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -36,7 +36,10 @@
val4 = new DoubleNumberToken(3, 4);
ml = new Interpreter(true);
}
-
+ protected void tearDown() {
+ ml = null;
+ }
+
public void testAdd1()
{
DoubleNumberToken expectedResult = new DoubleNumberToken(5, 7);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testOperandToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testOperandToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testOperandToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -15,6 +15,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testOperandToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testOperatorToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testOperatorToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -16,6 +16,10 @@
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
+
public static Test suite() {
return new TestSuite(testOperatorToken.class);
}
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testPowerOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testPowerOperatorToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testPowerOperatorToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -15,6 +15,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testPowerOperatorToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testRelationOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testRelationOperatorToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testRelationOperatorToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -16,6 +16,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testRelationOperatorToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testScalarToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testScalarToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testScalarToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -15,6 +15,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testScalarToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testSwitchOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testSwitchOperatorToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testSwitchOperatorToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -26,7 +26,10 @@
{
ml = new Interpreter(true);
}
-
+ protected void tearDown() {
+ ml = null;
+ }
+
public void testSwitch01()
{
String code = ""
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -15,6 +15,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testUnaryOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testUnaryOperatorToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testUnaryOperatorToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -18,6 +18,9 @@
protected void setUp() {
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public static Test suite() {
return new TestSuite(testUnaryOperatorToken.class);
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testVariableToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testVariableToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testVariableToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -31,6 +31,9 @@
variable2 = new VariableToken("x");
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
public void testEquals()
{
Modified: JMathLib/trunk/src/jmathlibtests/core/tokens/testWhileOperatorToken.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/core/tokens/testWhileOperatorToken.java 2008-12-07 18:49:40 UTC (rev 541)
+++ JMathLib/trunk/src/jmathlibtests/core/tokens/testWhileOperatorToken.java 2008-12-07 19:00:28 UTC (rev 542)
@@ -27,6 +27,10 @@
ml = new Interpreter(true);
}
+ protected void tearDown() {
+ ml = null;
+ }
+
public void testWhile01()
{
ml.executeExpression(" x=0;while(x<5){x=x+1;disp('x= ' + x);}end");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|