Hi,
I enabled assertions in the junit test for WoT from
866e4c10db9795019a6a80e96356e38e72190564 onwards, and the junit tests fail like
this:
junit:
[junit] Running plugins.WoT.DatabaseBasedTest
[junit] Testsuite: plugins.WoT.DatabaseBasedTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.648 sec
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.648 sec
[junit]
[junit] Testcase: testSelf took 0.643 sec
[junit] Running plugins.WoT.IdentityTest
[junit] Testsuite: plugins.WoT.IdentityTest
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 5.892 sec
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 5.892 sec
[junit]
[junit] Testcase: testIdentityStored took 1.166 sec
[junit] Testcase: testGetByURI took 0.723 sec
[junit] Testcase: testContexts took 1.854 sec
[junit] Testcase: testProperties took 0.609 sec
[junit] Testcase: testPersistence took 0.944 sec
[junit] Testcase: testSelf took 0.587 sec
[junit] Running plugins.WoT.ScoreTest
[junit] Testsuite: plugins.WoT.ScoreTest
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 3.498 sec
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 3.498 sec
[junit]
[junit] Testcase: testScoreCreation took 1.331 sec
[junit] Testcase: testScorePersistence took 1.054 sec
[junit] Testcase: testSelf took 1.099 sec
[junit] Running plugins.WoT.TrustTest
[junit] Testsuite: plugins.WoT.TrustTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 3.077 sec
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 3.077 sec
[junit]
[junit] Testcase: testConstructor took 0.923 sec
[junit] Testcase: testTrust took 0.762 sec
[junit] Testcase: testTrustPersistence took 0.744 sec
[junit] Testcase: testSelf took 0.642 sec
[junit] Running plugins.WoT.WoTTest
[junit] Testsuite: plugins.WoT.WoTTest
[junit] Tests run: 7, Failures: 0, Errors: 2, Time elapsed: 8.18 sec
[junit] Tests run: 7, Failures: 0, Errors: 2, Time elapsed: 8.18 sec
[junit]
[junit] Testcase: testInitTrustTree took 1.61 sec
[junit] Testcase: testSetTrust1 took 0.719 sec
[junit] Testcase: testSetTrust2 took 2.303 sec
[junit] Testcase: testRemoveTrust took 0.856 sec
[junit] Caused an ERROR
[junit] null
[junit] java.lang.AssertionError
[junit] at plugins.WoT.WoT.setTrust(WoT.java:1251)
[junit] at plugins.WoT.WoTTest.testRemoveTrust(WoTTest.java:145)
[junit]
[junit] Testcase: testTrustLoop took 0.63 sec
[junit] Caused an ERROR
[junit] null
[junit] java.lang.AssertionError
[junit] at plugins.WoT.WoT.setTrust(WoT.java:1251)
[junit] at plugins.WoT.WoTTest.testTrustLoop(WoTTest.java:216)
[junit] Testcase: testSelf took 0.307 sec
BUILD FAILED
/home/infinity0/0/projects/freenet/git/plugin-WoT-staging/build.xml:73: Test
plugins.WoT.WoTTest failed
X