Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 97850 invoked from network); 8 Sep 2009 10:39:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Sep 2009 10:39:07 -0000 Received: (qmail 21533 invoked by uid 500); 8 Sep 2009 10:39:06 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 21469 invoked by uid 500); 8 Sep 2009 10:39:05 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 21459 invoked by uid 99); 8 Sep 2009 10:39:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2009 10:39:05 +0000 X-ASF-Spam-Status: No, hits=-1.8 required=10.0 tests=HTML_MESSAGE,MISSING_MIMEOLE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kaparame@cisco.com designates 171.71.176.71 as permitted sender) Received: from [171.71.176.71] (HELO sj-iport-2.cisco.com) (171.71.176.71) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2009 10:38:54 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvAEAJzRpUqrR7MV/2dsb2JhbACCVo5sizmlGohDAY8nBYQYgVlk X-IronPort-AV: E=Sophos;i="4.44,352,1249257600"; d="scan'208,217";a="202469274" Received: from sj-dkim-1.cisco.com ([171.71.179.21]) by sj-iport-2.cisco.com with ESMTP; 08 Sep 2009 10:38:33 +0000 Received: from sj-core-5.cisco.com (sj-core-5.cisco.com [171.71.177.238]) by sj-dkim-1.cisco.com (8.12.11/8.12.11) with ESMTP id n88AcXuR013633 for ; Tue, 8 Sep 2009 03:38:33 -0700 Received: from sj-webmail-15.cisco.com (sj-webmail-15.cisco.com [171.70.113.20]) by sj-core-5.cisco.com (8.13.8/8.14.3) with ESMTP id n88AcXLs008159 for ; Tue, 8 Sep 2009 10:38:33 GMT Received: from sj-webmail-15.cisco.com (localhost.localdomain [127.0.0.1]) by sj-webmail-15.cisco.com (8.13.1/8.13.1) with ESMTP id n88AcXrP022935 for ; Tue, 8 Sep 2009 03:38:33 -0700 Received: from sj-webmail-15.cisco.com (root@localhost) by sj-webmail-15.cisco.com (8.13.1/8.13.1/Submit) with ESMTP id n88AcXL6022931 for ; Tue, 8 Sep 2009 03:38:33 -0700 Received: from kaparamewxp ( [10.77.6.57]) by sj-webmail-15.cisco.com (Scalix SMTP Relay 10.0.5.3) via ESMTP; Tue, 08 Sep 2009 03:38:32 -0700 (PDT) Date: Tue, 8 Sep 2009 16:08:31 +0530 From: Kamesh Parameswaran To: Message-ID: <000e01ca3070$832634b0$89729e10$@com> Subject: Exceptions while executing JUnit Importance: High Priority: Urgent X-MSMail-Priority: High X-Priority: 1 x-scalix-Hops: 1 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcowcIIDpBtr/NQETUC1lld3/dOxTA== MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000F_01CA309E.9CDE70B0" Content-Language: en-us DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; l=18082; t=1252406313; x=1253270313; c=relaxed/simple; s=sjdkim1004; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=kaparame@cisco.com; z=From:=20Kamesh=20Parameswaran=20 |Subject:=20Exceptions=20while=20executing=20JUnit |Sender:=20; bh=UTA86b2Mqc4/Yprm+qqy5ykI7qpdw2Nc70FM+QTu5Ts=; b=kQcAsodcXDOV5sa6LBTcv2/mZfXgznG8tElNfkMCS5nTTbEL8M55QJtxgY b1ffRbkslx1ly7YaEjxViygyLi1N07mrV/gSlDvn9U8ATtg5wjUEUd2dF3L2 k2SQiznHI0E537hlS0AiUbATJl5BOUD3xNvDJVujMJjggzbvqMxcA=; Authentication-Results: sj-dkim-1; header.From=kaparame@cisco.com; dkim=pass ( sig from cisco.com/sjdkim1004 verified; ); X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_000F_01CA309E.9CDE70B0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Hi All, I'm trying to execute certain test cases as a part of my build. I'm using the ant's junit task to accomplish this. My build script is as follows, 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. Line1 : @XMLParameters("/com/cisco/cp/engine/sal/unittest/data/ TestData.xml") 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.(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. (Unknown Source) at org.junitext.runners.XMLParameterizedRunner.(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. Thanks and Regards, Kamesh ------=_NextPart_000_000F_01CA309E.9CDE70B0--