Thanks,

I'm giving it a try. Following the junit API (http://repository.ops4j.org/classic/junit/junit/3.8.1/api/junit/framework/Assert.html#assertEquals%28java.lang.String,%20java.lang.Object,%20java.lang.Object%29) it seems, the paramters in the tests should be switched: We expect <1> (DENY) but actually get <3> and not the other way round.

The error here should have something to do with spamdRejectionHits being 0 - then DECLINED is returned.

Tim

Norman Maurer schrieb:
Really strange.. the test works here..  I will try to find the cause of this..
In the meantime you can try to compile james with:

# mvn clean package -Dmaven.test.skip.exec=true

Bye,
Norman

2010/1/12 Tim-Christian Mundt <mu...@tzi.de>:
Sure, here are the details:

-------------------------------------------------------------------------------
Test set: org.apache.james.smtpserver.SpamAssassinHandlerTest
-------------------------------------------------------------------------------
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 120.109 sec
<<< FAILURE!
testSpamReject(org.apache.james.smtpserver.SpamAssassinHandlerTest)  Time
elapsed: 120.047 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Email was rejected expected:<3> but
was:<1>
  at junit.framework.Assert.fail(Assert.java:47)
  at junit.framework.Assert.failNotEquals(Assert.java:282)
  at junit.framework.Assert.assertEquals(Assert.java:64)
  at junit.framework.Assert.assertEquals(Assert.java:201)
  at
org.apache.james.smtpserver.SpamAssassinHandlerTest.testSpamReject(SpamAssassinHandlerTest.java:167)

If I'm not mistaken, <3> refers to DECLINED in HookReturnCode and <1> to
DENY. Maybe, either the test or the server don't follow some standard here?

Regards
Tim

Norman Maurer schrieb:
Hmm... Strange here the SPFHandlerTest was failing because of the
missing dnsjava dependency, which was fixed by the last commit. Could
you show us the test result details?

Bye,
Norman

2010/1/12 Tim-Christian Mundt <mu...@tzi.de>:

Thanks and no problem, I already noticed and the build works. Almost...
The
SpamAssassinHandlerTest fails. Did not yet figure out why.

Tim

Norman Maurer schrieb:

Hi Tim,

I just commit a fix to trunk. Please update your checkout...

Sorry for the trouble.

Bye,
Norman

2010/1/12 Tim-Christian Mundt <mu...@tzi.de>:


Hi,

I'm trying to build James trunk HEAD with Maven (mvn clean compile
within
/stage). It immediately gives:

[INFO] snapshot org.apache.james:james-project:1.4RC3-SNAPSHOT:
checking
for
updates from module-local
Downloading:


file://${pom.basedir}//org.apache.james/poms/james-project-1.4RC3-SNAPSHOT.pom
[INFO] Unable to find resource
'org.apache.james:james-project:pom:1.4RC3-SNAPSHOT' in repository
module-local (file://${pom.basedir}/)

Seems ${pom.basedir} is not resolved?

The same command e.g. in imapserver-function gives:

Project ID: org.apache.james:james-server-root:pom:1.3RC3-SNAPSHOT
Reason: Cannot find parent: org.apache.james:james-project for project:
org.apache.james:james-server-root:pom:1.3RC3-SNAPSHOT for project
org.apache.james:james-server-root:pom:1.3RC3-SNAPSHOT

Similar message when trying to build imap. Am I missing something here
in
general?

Thanks,
Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to