You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2006/11/13 15:27:49 UTC
svn commit: r474332 - in
/james/server/trunk/src/test/org/apache/james/util/junkscore:
ComposedJunkScoreTest.java JunkScoreConfigUtilTest.java
JunkScoreImplTest.java
Author: norman
Date: Mon Nov 13 06:27:49 2006
New Revision: 474332
URL: http://svn.apache.org/viewvc?view=rev&rev=474332
Log:
Change tests to be junit 3.8.1 compatible. Thx to Stefano to pointin out
Modified:
james/server/trunk/src/test/org/apache/james/util/junkscore/ComposedJunkScoreTest.java
james/server/trunk/src/test/org/apache/james/util/junkscore/JunkScoreConfigUtilTest.java
james/server/trunk/src/test/org/apache/james/util/junkscore/JunkScoreImplTest.java
Modified: james/server/trunk/src/test/org/apache/james/util/junkscore/ComposedJunkScoreTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/test/org/apache/james/util/junkscore/ComposedJunkScoreTest.java?view=diff&rev=474332&r1=474331&r2=474332
==============================================================================
--- james/server/trunk/src/test/org/apache/james/util/junkscore/ComposedJunkScoreTest.java (original)
+++ james/server/trunk/src/test/org/apache/james/util/junkscore/ComposedJunkScoreTest.java Mon Nov 13 06:27:49 2006
@@ -69,16 +69,16 @@
public void testComposedJunkScore() {
JunkScore junk = new ComposedJunkScore(getJunkScore(KEY1, SCORE1), getJunkScore(KEY2, SCORE2));
- assertEquals("Summarize score", junk.getCompleteStoredScores(),SCORE1 + SCORE2);
+ assertEquals("Summarize score", junk.getCompleteStoredScores(),SCORE1 + SCORE2, 0d);
- assertEquals("Get stored score", junk.getStoredScore(KEY1), SCORE1);
- assertEquals("Get stored score", junk.getStoredScore(KEY2), SCORE2);
+ assertEquals("Get stored score", junk.getStoredScore(KEY1), SCORE1, 0d);
+ assertEquals("Get stored score", junk.getStoredScore(KEY2), SCORE2, 0d);
assertEquals("Get Map", junk.getStoredScores().size(), 2);
- assertEquals("Reset Score", junk.resetStoredScores(), SCORE1 + SCORE2);
+ assertEquals("Reset Score", junk.resetStoredScores(), SCORE1 + SCORE2, 0d);
- assertEquals("No Score", junk.getCompleteStoredScores(), 0.0);
+ assertEquals("No Score", junk.getCompleteStoredScores(), 0.0, 0d);
assertEquals("Empty Map", junk.getStoredScores().size(), 0);
}
Modified: james/server/trunk/src/test/org/apache/james/util/junkscore/JunkScoreConfigUtilTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/test/org/apache/james/util/junkscore/JunkScoreConfigUtilTest.java?view=diff&rev=474332&r1=474331&r2=474332
==============================================================================
--- james/server/trunk/src/test/org/apache/james/util/junkscore/JunkScoreConfigUtilTest.java (original)
+++ james/server/trunk/src/test/org/apache/james/util/junkscore/JunkScoreConfigUtilTest.java Mon Nov 13 06:27:49 2006
@@ -50,7 +50,7 @@
assertTrue("Exception thrown", exception2);
- assertEquals("JunkScore extracted", JunkScoreConfigUtil.getJunkScore(VALID_CONFIG),21.0);
+ assertEquals("JunkScore extracted", JunkScoreConfigUtil.getJunkScore(VALID_CONFIG),21.0,0d);
}
Modified: james/server/trunk/src/test/org/apache/james/util/junkscore/JunkScoreImplTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/test/org/apache/james/util/junkscore/JunkScoreImplTest.java?view=diff&rev=474332&r1=474331&r2=474332
==============================================================================
--- james/server/trunk/src/test/org/apache/james/util/junkscore/JunkScoreImplTest.java (original)
+++ james/server/trunk/src/test/org/apache/james/util/junkscore/JunkScoreImplTest.java Mon Nov 13 06:27:49 2006
@@ -33,23 +33,23 @@
public void testJunkScoreImpl() {
JunkScore junk = new JunkScoreImpl();
- assertEquals("Empty", junk.getCompleteStoredScores(),0.0);
+ assertEquals("Empty", junk.getCompleteStoredScores(), 0.0, 0d);
- assertEquals("No previous stored score", junk.setStoredScore(KEY1, SCORE1), 0.0);
- assertEquals("No previous stored score", junk.setStoredScore(KEY2, SCORE1), 0.0);
+ assertEquals("No previous stored score", junk.setStoredScore(KEY1, SCORE1), 0.0, 0d);
+ assertEquals("No previous stored score", junk.setStoredScore(KEY2, SCORE1), 0.0, 0d);
- assertEquals("Return the previous stored score", junk.setStoredScore(KEY2, SCORE2), SCORE1);
+ assertEquals("Return the previous stored score", junk.setStoredScore(KEY2, SCORE2), SCORE1, 0d);
- assertEquals("Summarize score", junk.getCompleteStoredScores(), SCORE1 + SCORE2);
+ assertEquals("Summarize score", junk.getCompleteStoredScores(), SCORE1 + SCORE2, 0d);
- assertEquals("Get stored score", junk.getStoredScore(KEY1), SCORE1);
- assertEquals("Get stored score", junk.getStoredScore(KEY2), SCORE2);
+ assertEquals("Get stored score", junk.getStoredScore(KEY1), SCORE1, 0d);
+ assertEquals("Get stored score", junk.getStoredScore(KEY2), SCORE2, 0d);
assertEquals("Get Map", junk.getStoredScores().size(), 2);
- assertEquals("Reset Score", junk.resetStoredScores(), SCORE1 + SCORE2);
+ assertEquals("Reset Score", junk.resetStoredScores(), SCORE1 + SCORE2, 0d);
- assertEquals("No Score", junk.getCompleteStoredScores(), 0.0);
+ assertEquals("No Score", junk.getCompleteStoredScores(), 0.0, 0d);
assertEquals("Empty Map", junk.getStoredScores().size(), 0);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
Re: svn commit: r474332 - in /james/server/trunk/src/test/org/apache/james/util/junkscore:
ComposedJunkScoreTest.java JunkScoreConfigUtilTest.java JunkScoreImplTest.java
Posted by Stefano Bagnara <ap...@bago.org>.
norman@apache.org wrote:
> Author: norman
> Date: Mon Nov 13 06:27:49 2006
> New Revision: 474332
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=474332
> Log:
> Change tests to be junit 3.8.1 compatible. Thx to Stefano to pointin out
Well, let's thank again Continuum ;-)
I only read the failure notification from continuum.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org