RE: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED]

2011-06-15 Thread Fraser, James
UNCLASSIFIED Thanks Chris! -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, 16 June 2011 5:01 AM To: Tomcat Users List Subject: Re: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASS

Re: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED]

2011-06-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, On 6/15/2011 12:09 AM, Fraser, James wrote: > Thanks for your help. I got it working in the end. I suspect the main > problem had to do with not terminating the running instance of Tomcat > correctly in a tear-down method. That might do it, de

RE: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED]

2011-06-14 Thread Fraser, James
UNCLASSIFIED Hi Chuck, Thanks for your help. I got it working in the end. I suspect the main problem had to do with not terminating the running instance of Tomcat correctly in a tear-down method. I solved this using the example in the Tomcat unit tests; i.e. @AfterClass public static void

RE: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED]

2011-06-14 Thread Caldarale, Charles R
> From: Fraser, James [mailto:james.fra...@dsto.defence.gov.au] > Subject: RE: Embedded tomcat and unit testing.. Tomcat either > stops or my unit tests don't execute? [SEC=UNCLASSIFIED] > I read that Apache use embedded Tomcat for unit testing. Are there any > examples flo

RE: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED]

2011-06-14 Thread Fraser, James
unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED] > From: Fraser, James [mailto:james.fra...@dsto.defence.gov.au] > Subject: Embedded tomcat and unit testing.. Tomcat either stops or my > unit tests don't execute? [SEC=UNCLASSIFIED] >

RE: Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED]

2011-06-14 Thread Caldarale, Charles R
> From: Fraser, James [mailto:james.fra...@dsto.defence.gov.au] > Subject: Embedded tomcat and unit testing.. Tomcat either stops > or my unit tests don't execute? [SEC=UNCLASSIFIED] > tomcat.enableNaming(); > tomcat.start(); > t

Embedded tomcat and unit testing.. Tomcat either stops or my unit tests don't execute? [SEC=UNCLASSIFIED]

2011-06-14 Thread Fraser, James
ontext.xml"); ctx.setConfigFile(contextFile.toURI().toURL()); tomcat.enableNaming(); tomcat.start(); tomcat.getServer().await(); } Without the line `tomcat.getServer().await();`, Tomcat simply stops; with the line `tomcat.getServer().await();`, it looks as though the thread

ApacheHttp and Tomcat 7 tests...

2011-03-05 Thread Tony Anecito
Hi Oleg, Summary The following test results show me that using the localhost as the server name and the ApacheHttp client running on the server as done with the ApacheHttp tests by Apache components group gets close to or bettter than expected. Using localhost I am guessing bypasses using the

Re: Trouble with writing TC 7.0.x unit tests

2010-11-03 Thread Christopher Schultz
/catalina/connector/TestRequest.java and my test > method contains the following code: Circling back for those interested, I wasn't reading the log file of my tests, which can be found in build/logs/TEST-org.apache.catalina.connector.TestRequest.[connector].txt Plus, I fixed the problem

Re: Trouble with writing TC 7.0.x unit tests

2010-11-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 11/3/2010 9:15 AM, Mark Thomas wrote: > On 03/11/2010 09:08, Christopher Schultz wrote: >> All, >> >> I'm having trouble understanding the behavior of a unit test I'm writing >> against TC 7.0.x trunk to prepare for testing a patch. I happen

Re: Trouble with writing TC 7.0.x unit tests

2010-11-03 Thread Mark Thomas
On 03/11/2010 09:08, Christopher Schultz wrote: > All, > > I'm having trouble understanding the behavior of a unit test I'm writing > against TC 7.0.x trunk to prepare for testing a patch. I happen to be > working in org/apache/catalina/connector/TestRequest.java and my test > method contains the

Trouble with writing TC 7.0.x unit tests

2010-11-03 Thread Christopher Schultz
;, "foo=bar,bar=baz", client.getResponseBody()); System.out.println("Looking good so far!"); I get this output when running the test: [lots of output from other tests, setup messages, etc] [junit] = INFO == [junit] Response:

having trouble using Tomcat API in my JUnit SOAP tests

2007-09-11 Thread Charlie Hitselberger
How do I get rid of the Thread and ContainerBackgroundProcessor objects associated with a StandardEngine after finishing a JUnit test, so several of them don't accumulate and hog all my machine's resources? I'm testing out a SOAP service on several different platforms, so it seemed natural to a

Tests...

2006-06-06 Thread Christian Jean
In regards to my original problem sent a few hours ago, if someone could test the following, it would be greatly appreciated... 1. If you have a version of Tomcat 5.0.28 running on ports 8080 and 8443 using a valid (signed) certificate and NOT running as root. 2. Make sure that the above both res