bizarre

Modérateurs : graffion, jmdouin, agoncal, mlebihan

wfh
Messages : 14
Inscription : 21 oct. 2007 14:48

bizarre

Message par wfh » 27 oct. 2007 22:20

Bonjour à toutes à tous.
voila mon problem. quand je fait ant yaps-test il y

Code : Tout sélectionner

 Source)
    [junit]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unk
nown Source)
    [junit]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [junit]     at junit.framework.TestSuite.createTest(TestSuite.java:65)
    [junit]     at junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
    [junit]     at junit.framework.TestSuite.<init>(TestSuite.java:146)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.suite(Unknown Source)
    [junit]     at AllTests.suite(Unknown Source)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Sourc
e)
    [junit]     at java.lang.reflect.Method.invoke(Unknown Source)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
run(JUnitTestRunner.java:357)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
launch(JUnitTestRunner.java:912)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
main(JUnitTestRunner.java:766)
    [junit] Caused by: java.lang.NullPointerException
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     ... 19 more
    [junit] )
    [junit] junit.framework.AssertionFailedError: Exception in constructor: test
DomainCreateItemWithInvalidValues (com.yaps.petstore.exception.DataAccessExcepti
on: Cannot load null !!!
    [junit]     at com.yaps.petstore.persistence.ItemDAO.loadHastable(Unknown So
urce)
    [junit]     at com.yaps.petstore.persistence.ItemDAO.<init>(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.<init>(Unknown Source)
    [junit]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.suite(Unknown Source)
    [junit]     at AllTests.suite(Unknown Source)
    [junit] Caused by: java.lang.NullPointerException
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit] )
    [junit]
    [junit] Testcase: warning took 0,016 sec
    [junit]     FAILED
    [junit] Exception in constructor: testDomainCreateItemWithInvalidProduct (co
m.yaps.petstore.exception.DataAccessException: Cannot load null !!!
    [junit]     at com.yaps.petstore.persistence.ItemDAO.loadHastable(Unknown So
urce)
    [junit]     at com.yaps.petstore.persistence.ItemDAO.<init>(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.<init>(Unknown Source)
    [junit]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
    [junit]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
 Source)
    [junit]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unk
nown Source)
    [junit]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [junit]     at junit.framework.TestSuite.createTest(TestSuite.java:65)
    [junit]     at junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
    [junit]     at junit.framework.TestSuite.<init>(TestSuite.java:146)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.suite(Unknown Source)
    [junit]     at AllTests.suite(Unknown Source)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Sourc
e)
    [junit]     at java.lang.reflect.Method.invoke(Unknown Source)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
run(JUnitTestRunner.java:357)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
launch(JUnitTestRunner.java:912)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
main(JUnitTestRunner.java:766)
    [junit] Caused by: java.lang.NullPointerException
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     ... 19 more
    [junit] )
    [junit] junit.framework.AssertionFailedError: Exception in constructor: test
DomainCreateItemWithInvalidProduct (com.yaps.petstore.exception.DataAccessExcept
ion: Cannot load null !!!
    [junit]     at com.yaps.petstore.persistence.ItemDAO.loadHastable(Unknown So
urce)
    [junit]     at com.yaps.petstore.persistence.ItemDAO.<init>(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.<init>(Unknown Source)
    [junit]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.suite(Unknown Source)
    [junit]     at AllTests.suite(Unknown Source)
    [junit] Caused by: java.lang.NullPointerException
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit] )
    [junit]
    [junit] Testcase: warning took 0,016 sec
    [junit]     FAILED
    [junit] Exception in constructor: testDomainUpdateUnknownItem (com.yaps.pets
tore.exception.DataAccessException: Cannot load null !!!
    [junit]     at com.yaps.petstore.persistence.ItemDAO.loadHastable(Unknown So
urce)
    [junit]     at com.yaps.petstore.persistence.ItemDAO.<init>(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.<init>(Unknown Source)
    [junit]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
    [junit]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
 Source)
    [junit]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unk
nown Source)
    [junit]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [junit]     at junit.framework.TestSuite.createTest(TestSuite.java:65)
    [junit]     at junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
    [junit]     at junit.framework.TestSuite.<init>(TestSuite.java:146)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.suite(Unknown Source)
    [junit]     at AllTests.suite(Unknown Source)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Sourc
e)
    [junit]     at java.lang.reflect.Method.invoke(Unknown Source)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
run(JUnitTestRunner.java:357)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
launch(JUnitTestRunner.java:912)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
main(JUnitTestRunner.java:766)
    [junit] Caused by: java.lang.NullPointerException
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     ... 19 more
    [junit] )
    [junit] junit.framework.AssertionFailedError: Exception in constructor: test
DomainUpdateUnknownItem (com.yaps.petstore.exception.DataAccessException: Cannot
 load null !!!
    [junit]     at com.yaps.petstore.persistence.ItemDAO.loadHastable(Unknown So
urce)
    [junit]     at com.yaps.petstore.persistence.ItemDAO.<init>(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.<init>(Unknown Source)
    [junit]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.suite(Unknown Source)
    [junit]     at AllTests.suite(Unknown Source)
    [junit] Caused by: java.lang.NullPointerException
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit] )
    [junit]
    [junit] Testcase: warning took 0,031 sec
    [junit]     FAILED
    [junit] Exception in constructor: testDomainUpdateItemWithInvalidValues (com
.yaps.petstore.exception.DataAccessException: Cannot load null !!!
    [junit]     at com.yaps.petstore.persistence.ItemDAO.loadHastable(Unknown So
urce)
    [junit]     at com.yaps.petstore.persistence.ItemDAO.<init>(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.<init>(Unknown Source)
    [junit]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
    [junit]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
 Source)
    [junit]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unk
nown Source)
    [junit]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [junit]     at junit.framework.TestSuite.createTest(TestSuite.java:65)
    [junit]     at junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
    [junit]     at junit.framework.TestSuite.<init>(TestSuite.java:146)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.suite(Unknown Source)
    [junit]     at AllTests.suite(Unknown Source)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Sourc
e)
    [junit]     at java.lang.reflect.Method.invoke(Unknown Source)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
run(JUnitTestRunner.java:357)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
launch(JUnitTestRunner.java:912)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
main(JUnitTestRunner.java:766)
    [junit] Caused by: java.lang.NullPointerException
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     ... 19 more
    [junit] )
    [junit] junit.framework.AssertionFailedError: Exception in constructor: test
DomainUpdateItemWithInvalidValues (com.yaps.petstore.exception.DataAccessExcepti
on: Cannot load null !!!
    [junit]     at com.yaps.petstore.persistence.ItemDAO.loadHastable(Unknown So
urce)
    [junit]     at com.yaps.petstore.persistence.ItemDAO.<init>(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.<init>(Unknown Source)
    [junit]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.suite(Unknown Source)
    [junit]     at AllTests.suite(Unknown Source)
    [junit] Caused by: java.lang.NullPointerException
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit] )
    [junit]
    [junit] Testcase: warning took 0,015 sec
    [junit]     FAILED
    [junit] Exception in constructor: testDomainUpdateItem (com.yaps.petstore.ex
ception.DataAccessException: Cannot load null !!!
    [junit]     at com.yaps.petstore.persistence.ItemDAO.loadHastable(Unknown So
urce)
    [junit]     at com.yaps.petstore.persistence.ItemDAO.<init>(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.<init>(Unknown Source)
    [junit]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
    [junit]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
 Source)
    [junit]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unk
nown Source)
    [junit]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [junit]     at junit.framework.TestSuite.createTest(TestSuite.java:65)
    [junit]     at junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
    [junit]     at junit.framework.TestSuite.<init>(TestSuite.java:146)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.suite(Unknown Source)
    [junit]     at AllTests.suite(Unknown Source)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Sourc
e)
    [junit]     at java.lang.reflect.Method.invoke(Unknown Source)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
run(JUnitTestRunner.java:357)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
launch(JUnitTestRunner.java:912)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
main(JUnitTestRunner.java:766)
    [junit] Caused by: java.lang.NullPointerException
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     ... 19 more
    [junit] )
    [junit] junit.framework.AssertionFailedError: Exception in constructor: test
DomainUpdateItem (com.yaps.petstore.exception.DataAccessException: Cannot load n
ull !!!
    [junit]     at com.yaps.petstore.persistence.ItemDAO.loadHastable(Unknown So
urce)
    [junit]     at com.yaps.petstore.persistence.ItemDAO.<init>(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.<init>(Unknown Source)
    [junit]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.suite(Unknown Source)
    [junit]     at AllTests.suite(Unknown Source)
    [junit] Caused by: java.lang.NullPointerException
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit] )
    [junit]
    [junit] Testcase: warning took 0,016 sec
    [junit]     FAILED
    [junit] Exception in constructor: testDomainDeleteUnknownItem (com.yaps.pets
tore.exception.DataAccessException: Cannot load null !!!
    [junit]     at com.yaps.petstore.persistence.ItemDAO.loadHastable(Unknown So
urce)
    [junit]     at com.yaps.petstore.persistence.ItemDAO.<init>(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.<init>(Unknown Source)
    [junit]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
    [junit]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
 Source)
    [junit]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unk
nown Source)
    [junit]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [junit]     at junit.framework.TestSuite.createTest(TestSuite.java:65)
    [junit]     at junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
    [junit]     at junit.framework.TestSuite.<init>(TestSuite.java:146)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.suite(Unknown Source)
    [junit]     at AllTests.suite(Unknown Source)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Sourc
e)
    [junit]     at java.lang.reflect.Method.invoke(Unknown Source)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
run(JUnitTestRunner.java:357)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
launch(JUnitTestRunner.java:912)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
main(JUnitTestRunner.java:766)
    [junit] Caused by: java.lang.NullPointerException
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     ... 19 more
    [junit] )
    [junit] junit.framework.AssertionFailedError: Exception in constructor: test
DomainDeleteUnknownItem (com.yaps.petstore.exception.DataAccessException: Cannot
 load null !!!
    [junit]     at com.yaps.petstore.persistence.ItemDAO.loadHastable(Unknown So
urce)
    [junit]     at com.yaps.petstore.persistence.ItemDAO.<init>(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.<init>(Unknown Source)
    [junit]     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [junit]     at com.yaps.petstore.domain.ItemDAOTest.suite(Unknown Source)
    [junit]     at AllTests.suite(Unknown Source)
    [junit] Caused by: java.lang.NullPointerException
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit]     at java.io.FileInputStream.<init>(Unknown Source)
    [junit] )
    [junit]
    [junit] Test AllTests FAILED

BUILD SUCCESSFUL
Total time: 2 seconds
C:\TP02\Yaps>

wfh
Messages : 14
Inscription : 21 oct. 2007 14:48

bizarre

Message par wfh » 28 oct. 2007 1:02

J'ai aucune erreure mais il y a fail à alltest. et en faisant yasp-mark ca complite bien un tp02.test. Estceque c'est bon ou erronné.

Répondre

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 1 invité