Unit tests are failing
Dan Tihelka <[email protected]> Fri, 14 Dec 2012 08:41:43 +0100
| Newsgroups | gmane.comp.java.cruise-control.devel |
|---|---|
| Message-ID | <2910654.r85L7bW4rA@uk508n02-kky> |
Hi all,
I am trying to make few more improvements of CC, but when I run the unit
tests, there are failures. And I am almost sure that the failures are not
connected with the changes I have made ...
The first problem is in net.sourceforge.cruisecontrol.sourcecontrols.SVN (full
log is in ant.out1.txt attachment):
[junit] Running net.sourceforge.cruisecontrol.sourcecontrols.SVNTest
[junit] Testsuite: net.sourceforge.cruisecontrol.sourcecontrols.SVNTest
[junit] Tests run: 21, Failures: 0, Errors: 3, Time elapsed: 0.245 sec
[junit] Tests run: 21, Failures: 0, Errors: 3, Time elapsed: 0.245 sec
[junit]
[junit] Testcase:
testSetPropertyIgnoresPriorState(net.sourceforge.cruisecontrol.sourcecontrols.SVNTest):
Caused an ERROR
[junit] null
[junit] java.lang.NullPointerException
[junit] at
net.sourceforge.cruisecontrol.sourcecontrols.SVN$SVNInfoXMLParser.parse(SVN.java:671)
[junit] at
net.sourceforge.cruisecontrol.sourcecontrols.SVN.execInfoCommand(SVN.java:470)
[junit] at
net.sourceforge.cruisecontrol.sourcecontrols.SVN.fillPropertiesIfNeeded(SVN.java:517)
[junit] at
net.sourceforge.cruisecontrol.sourcecontrols.SVNTest.testSetProperty(SVNTest.java:397)
[junit] at
net.sourceforge.cruisecontrol.sourcecontrols.SVNTest.testSetPropertyIgnoresPriorState(SVNTest.java:414)
[junit]
[junit]
[junit] Testcase:
testSetProperty(net.sourceforge.cruisecontrol.sourcecontrols.SVNTest):
Caused an ERROR
[junit] null
[junit] java.lang.NullPointerException
[junit] at
net.sourceforge.cruisecontrol.sourcecontrols.SVN$SVNInfoXMLParser.parse(SVN.java:671)
[junit] at
net.sourceforge.cruisecontrol.sourcecontrols.SVN.execInfoCommand(SVN.java:470)
[junit] at
net.sourceforge.cruisecontrol.sourcecontrols.SVN.fillPropertiesIfNeeded(SVN.java:517)
[junit] at
net.sourceforge.cruisecontrol.sourcecontrols.SVNTest.testSetProperty(SVNTest.java:397)
[junit]
[junit]
[junit] Testcase:
testSetPropertyOnDelete(net.sourceforge.cruisecontrol.sourcecontrols.SVNTest):
Caused an ERROR
[junit] null
[junit] java.lang.NullPointerException
[junit] at
net.sourceforge.cruisecontrol.sourcecontrols.SVN$SVNInfoXMLParser.parse(SVN.java:671)
[junit] at
net.sourceforge.cruisecontrol.sourcecontrols.SVN.execInfoCommand(SVN.java:470)
[junit] at
net.sourceforge.cruisecontrol.sourcecontrols.SVN.fillPropertiesIfNeeded(SVN.java:517)
[junit] at
net.sourceforge.cruisecontrol.sourcecontrols.SVNTest.testSetPropertyOnDelete(SVNTest.java:425)
[junit]
[junit]
SVN version is:
svn, version 1.7.7 (r1393599)
compiled Nov 5 2012, 09:50:39
I have disabled the SVN test temporarily, but another failure happened (log
attached in in ant.out2.txt):
[junit] Running
net.sourceforge.cruisecontrol.util.BuildInformationHelperTest
[junit] Testsuite:
net.sourceforge.cruisecontrol.util.BuildInformationHelperTest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.02 sec
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.02 sec
[junit]
[junit] Testcase:
testShouldCreateObjectFromXml(net.sourceforge.cruisecontrol.util.BuildInformationHelperTest):
Caused an ERROR
[junit] Cannot construct
net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a no-
args constructor
[junit] ---- Debugging information ----
[junit] message : Cannot construct
net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a no-
args constructor
[junit] cause-exception :
com.thoughtworks.xstream.converters.reflection.ObjectAccessException
[junit] cause-message : Cannot construct
net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a no-
args constructor
[junit] class :
net.sourceforge.cruisecontrol.BuildLoopInformation
[junit] required-type :
net.sourceforge.cruisecontrol.BuildLoopInformation
[junit] path : /buildloop
[junit] line number : 1
[junit] -------------------------------
[junit] com.thoughtworks.xstream.converters.ConversionException: Cannot
construct net.sourceforge.cruisecontrol.BuildLoopInformation as it does not
have a no-args constructor
[junit] ---- Debugging information ----
[junit] message : Cannot construct
net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a no-
args constructor
[junit] cause-exception :
com.thoughtworks.xstream.converters.reflection.ObjectAccessException
[junit] cause-message : Cannot construct
net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a no-
args constructor
[junit] class :
net.sourceforge.cruisecontrol.BuildLoopInformation
[junit] required-type :
net.sourceforge.cruisecontrol.BuildLoopInformation
[junit] path : /buildloop
[junit] line number : 1
[junit] -------------------------------
[junit] at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63)
[junit] at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
[junit] at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)
[junit] at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117)
[junit] at
com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29)
[junit] at
com.thoughtworks.xstream.XStream.unmarshal(XStream.java:846)
[junit] at
com.thoughtworks.xstream.XStream.unmarshal(XStream.java:833)
[junit] at com.thoughtworks.xstream.XStream.fromXML(XStream.java:781)
[junit] at com.thoughtworks.xstream.XStream.fromXML(XStream.java:773)
[junit] at
net.sourceforge.cruisecontrol.util.BuildInformationHelper.toObject(BuildInformationHelper.java:32)
[junit] at
net.sourceforge.cruisecontrol.util.BuildInformationHelperTest.testShouldCreateObjectFromXml(BuildInformationHelperTest.java:40)
[junit] Caused by:
com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot
construct net.sourceforge.cruisecontrol.BuildLoopInformation as it does not
have a no-args constructor
[junit] at
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:59)
[junit] at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:257)
[junit] at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:124)
[junit] at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56)
[junit]
I did not examined them more, since I don't understand the reason very much.
Does someone know the reason of it? Can anyone help? I don't want to commit
anything now, since I am not sure if the whole build will be successful ...
Thank you very much for your help,
Dan T.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Cruisecontrol-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-devel
ant.out.tbz2
(application/x-bzip-compressed-tar, 8.7 KB) - not displayed