I've test case which takes inputs from *.xml files and runs. The
implementation is as follows.
I'm using @RunWith(XMLParameterizedRunner.class) and pass my arguments
through @XMLParameters("/com/org/bias/engine/sal/unittest/TestData.xml").
TestData.xml is the input file which contains the input data for the test
cases.
JUnit suffers the exception at the following constructor.
Line2 : public TestGenTest(TestData create,TestData update, TestData
delete) { // TestData here is my bean
Line3 : this.createAttributes = create;
Line4 : this.updateAttributes = update;
Line5 : this.deleteAttributes = delete;
Line6 : }
The exception occurs at Line1
Testcase: initializationError0 took 0 sec
Caused an ERROR
null
java.lang.NullPointerException
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at
org.junitext.runners.parameters.factory.DigesterParameterFactory.createParam
eters(Unknown Source)
at
org.junitext.runners.XMLParameterizedRunner$RunAllXMLParameterMethods.getPar
ametersList(Unknown Source)
at
org.junitext.runners.XMLParameterizedRunner$RunAllXMLParameterMethods.<init>
(Unknown Source)
at org.junitext.runners.XMLParameterizedRunner.<init>(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494).
FYI. Everything is at place.. I didn't find any issues with the classpath.
Could someone throw lights on the annotated @XMLParameters() method, since
I'm not much familiar about what it's up to.