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
-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
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
> 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
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]
>
> 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
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
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
/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
-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
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
;,
"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:
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
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
14 matches
Mail list logo