Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 18606 invoked from network); 27 Dec 2001 17:33:54 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 27 Dec 2001 17:33:54 -0000 Received: (qmail 25975 invoked by uid 97); 27 Dec 2001 17:33:29 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 25956 invoked by uid 97); 27 Dec 2001 17:33:29 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 25910 invoked from network); 27 Dec 2001 17:33:27 -0000 Message-ID: <00ee01c18efd$5e0fd310$0a41a8c0@MERLIN> From: "Marcus" To: "Ant Users List" References: <005701c18e6e$ad621e80$0a41a8c0@MERLIN> <024c01c18e71$b97f7070$6401a8c0@darden.virginia.edu> <008c01c18e76$926fcc50$0a41a8c0@MERLIN> <027c01c18e76$bb181f90$6401a8c0@darden.virginia.edu> <00a501c18e79$abb61b30$0a41a8c0@MERLIN> <02a801c18e7c$1075d090$6401a8c0@darden.virginia.edu> Subject: Re: junit specify system properties Date: Thu, 27 Dec 2001 09:38:59 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ok, i got it so it now accepts the parameters, but: Cannot instantiate test case: testSubmitQueryMThread junit.framework.AssertionFailedError: Cannot instantiate test case: testSubmitQueryMThread at junit.framework.Assert.fail(Assert.java:143) at junit.framework.TestSuite$1.runTest(TestSuite.java:178) at junit.framework.TestCase.runBare(TestCase.java:129) at junit.framework.TestResult$1.protect(TestResult.java:100) at junit.framework.TestResult.runProtected(TestResult.java:117) at junit.framework.TestResult.run(TestResult.java:103) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.run(TestSuite.java:144) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu nner.java:231) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR unner.java:409) thx -mez ----- Original Message ----- From: "Erik Hatcher" To: "Ant Users List" Sent: Wednesday, December 26, 2001 6:13 PM Subject: Re: junit specify system properties > As I've mentioned to you in private mail, you're example is way too > convoluted to make much sense out of it. Please try and simplify it down to > a barebones test case that gets a property from System.getProperty and uses > that as a filename. Create a contrived example that will eliminate all your > domain specific property names and post what you have back for us if you > still have issues. > > Typically the act of creating a contrived working example will shed light on > the actual problem though. > > More comments below.... > > > > value="mdb.properties.file1.properties"/> > > Ok, so you've got this set and being fed into JUnit... > > > i have a file mdb.properties.file1.properties that has teh following line: > > minitest QUESTIONFILE_minimetanet questionfile 1 > > Ok, again we're getting convoluted here... simplify! > > > here is the output: > > which are parameters that i pass in for my unit test. > > [junit] Running cp_test.system.TestSubmitQueryMThread > > [junit] Executing: > > p:\thirdparty\win32\runnable\jdk\13\jre\..\bin\java.exe - > > > Dmdb.properties.file=mdb.testsubmitqueryMthread.properties -Dmdb.properties. > > file > > 1=mdb.properties.file1.properties > > Ok, you can clearly see that your property is being sent into Ant's > JUnitTestRunner. > > > [junit] TEST cp_test.system.TestSubmitQueryMThread FAILED > > So the failure is in your test case from what your output is showing. > Without seeing those details (and we don't need to see them if you create a > trivial example showing the problem) we can't tell why its failing. > > > BUILD SUCCESSFUL > > And *never ever* let a build finish successfully if tests failed!!!!! :)) > > Erik > > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: