<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
    <channel>
        <title>JavaRanch: Testing</title>
        <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forum&amp;f=68</link>
        <description>A Friendly Place for Java Greenhorns</description>
        <image>
            <url>http://saloon.javaranch.com/ubb/moosefly.gif</url>
            <title>JavaRanch Big Moose Saloon</title>
            <link>http://saloon.javaranch.com/</link>
        </image>
        <language>en-us</language>
        <generator>JavaRanch RSS</generator>
        <copyright>Copyright 2007 Paul Wheaton. All Rights Reserved.</copyright>
        <item uniqueID="68-001822">
            <title>How to use httpclient by apache to test my application</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001822</link>
            <description>Hello everyone,&lt;br /&gt;I developed an application using JSP's with Beans.i needed to check the load and performance limit for my application.&lt;br /&gt;In one of the earlier posts i read about httpclient being used to do so.can anyone please guide me as to how i test my software at low cost.&lt;br /&gt;thank you</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001822</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001822nick sharma</comments>
            <author/>
            <pubDate>Fri, 9 May 2008 04:28:58 MDT</pubDate>
        </item>
        <item uniqueID="68-001821">
            <title>Help please with complex JUNIT test cases across classes</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001821</link>
            <description>Hello,&lt;br /&gt; &lt;br /&gt;I have been thrown rather into the deep end and asked to debug and create test cases for an application. I'm completely new to JUNIT, and I'll be honest my Java is not that great beyond the basics. I know the methods I want to test, and the results I want to prove. However, it's the coding that is the problem for me. I learn best by example rather than by explanation, and I also suspect the fact I'm partially sighted is not helping issues when it comes to spotting errors. The application itself is at Index of /trending &lt;br /&gt; &lt;br /&gt;That folder also contains my checklist of things to test and an explanation of the classes in the application. I've looked for quite a while at JUNIT examples, and even had someone send me an a...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001821</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001821Hussein Patwa</comments>
            <author/>
            <pubDate>Fri, 9 May 2008 03:54:58 MDT</pubDate>
        </item>
        <item uniqueID="68-001820">
            <title>Web Application Code Coverage</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001820</link>
            <description>Hi &lt;br /&gt; &lt;br /&gt;I am new bee in web application development, I have set of test suites(junit) and i use junitee framework to execute those test suites/cases now i need to validate how much of test coverage or code is being exercised. can any one help me out finding the best code coverage tool and how to do the code coverage...&lt;br /&gt; &lt;br /&gt;-Srimaan</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001820</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001820srimaan yerram</comments>
            <author/>
            <pubDate>Thu, 8 May 2008 17:28:56 MDT</pubDate>
        </item>
        <item uniqueID="68-001819">
            <title>How to remove indents from xml?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001819</link>
            <description>I have a xml like this:&lt;br /&gt; &lt;br /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;&amp;lt;view&amp;gt;&lt;br /&gt;&amp;lt;help&amp;gt;&lt;br /&gt;&amp;lt;block&amp;gt;No.1&amp;lt;/block&amp;gt;&lt;br /&gt;&amp;lt;device&amp;gt;USB&amp;lt;/device&amp;gt;&lt;br /&gt;&amp;lt;/help&amp;gt;&lt;br /&gt;&amp;lt;/view&amp;gt;&lt;br /&gt; &lt;br /&gt;How could I output the xml to :&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;view&amp;gt;&amp;lt;help&amp;gt;&amp;lt;block&amp;gt;No.1&amp;lt;/block&amp;gt;&amp;lt;device&amp;gt;USB&amp;lt;/device&amp;gt;&amp;lt;/help&amp;gt;&amp;lt;/view&amp;gt;&lt;br /&gt; &lt;br /&gt;The reason to output like this is to make the xml comparison passed.&lt;br /&gt;I use org.custommonkey.xmlunit.XMLTestCase.compareXML to compare two xml string, one from Java code, the other from C# code. Now, since there are new line and whitespaces embedded in the Java generated XML, the comparison alway...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001819</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001819beachlife</comments>
            <author/>
            <pubDate>Sat, 3 May 2008 14:52:32 MDT</pubDate>
        </item>
        <item uniqueID="68-001818">
            <title>Automatic Test generation for Java</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001818</link>
            <description>Hi all,&lt;br /&gt; &lt;br /&gt; Say i have a huge applicaiton. The problem is as follows :-&lt;br /&gt;1) unfortunately there is no unit test cases ie junit written.&lt;br /&gt;2) Now if some part of the project is changed. developer gonna check the whole application to know if everything it working and none is broken.&lt;br /&gt;3) So i was wondering if there is any tool which can be used to generate the test cases so that when i run after some changes in the application i get to know that my code has broken or if entire application is working fine.&lt;br /&gt; &lt;br /&gt; The application i am talking about is not an web app or j2ee app. its an corba ,swing app, with use of some telnet and snmp as well.&lt;br /&gt; &lt;br /&gt;thank you&lt;br /&gt;-R</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001818</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001818Ranganath Junpal</comments>
            <author/>
            <pubDate>Fri, 2 May 2008 03:00:27 MDT</pubDate>
        </item>
        <item uniqueID="68-001817">
            <title>Sample application for jboss</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001817</link>
            <description>Hi &lt;br /&gt; I want to test a sample application on Jboss which will affect JVM utilization. i.e. the application must make best use of the JVM and underlying CPU cores. I am performing this on Linux setup with Jboss 4.0.2. &lt;br /&gt; &lt;br /&gt;So can anyone help me regarding this. I need an application like Trade6 used in case of Websphere for better performance.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001817</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001817shree harsh</comments>
            <author/>
            <pubDate>Thu, 1 May 2008 13:22:26 MDT</pubDate>
        </item>
        <item uniqueID="68-001816">
            <title>Use of interfaces for unit testing</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001816</link>
            <description>Hi. I'm thinking that any class of reasonable complexity should be 'interfaced out', so that it can be completely removed as a dependancy in unit tests, and then tested itself in as much isolation as possible.&lt;br /&gt; &lt;br /&gt;Eg, I have a session bean which does some stuff. It uses a validation class to do a load of validation. Would it make sense to make the validator implement an interface so that i can test it seperately, significantly simplifying the unit tests for the session bean?&lt;br /&gt; &lt;br /&gt;The reason I ask is that thinking like this could produce alot of interfaces, but I think that the extra overhead of maintaining these interfaces will be massively outweighed by the benefits to unit testing.&lt;br /&gt; &lt;br /&gt;I'd appreciate any comments </description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001816</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001816Aaron Shaw</comments>
            <author/>
            <pubDate>Wed, 30 Apr 2008 18:06:23 MDT</pubDate>
        </item>
        <item uniqueID="68-001815">
            <title>How to test a javabean</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001815</link>
            <description>I have a javabean class. I should add Junit test class for that. I am wondering how to add test cases for getter setter methods. Evenif I add, will that be a proper testing of Java? Or are we just testing the java compiler by doing this?&lt;br /&gt; &lt;br /&gt;Thanks</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001815</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001815patt rich</comments>
            <author/>
            <pubDate>Tue, 22 Apr 2008 11:31:46 MDT</pubDate>
        </item>
        <item uniqueID="68-001814">
            <title>Newbie question on JMock</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001814</link>
            <description>Hi,&lt;br /&gt; &lt;br /&gt;I have just come across JMock and haven't quite got the hang of it yet.&lt;br /&gt;I have a class called JabberAccountManager. It has a few methods that perform account management operations. Every method internally creates an object of type XMPPConnection (which is a part of an XMPP library)&lt;br /&gt; &lt;br /&gt;Now, I want to mock the Jabber server so I need to create a mock XMPPConnection object, but my problem is that the class I need to test and the class I need to mock are tightly coupled. I cannot de-couple these since there are a lot of issues involved.&lt;br /&gt; &lt;br /&gt;Could someone please explain to me how to go about using JMock in a case like this?&lt;br /&gt; &lt;br /&gt;Thanks,&lt;br /&gt;Neha.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001814</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001814Neha Gap</comments>
            <author/>
            <pubDate>Tue, 22 Apr 2008 05:11:45 MDT</pubDate>
        </item>
        <item uniqueID="68-001813">
            <title>JUnit Testing</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001813</link>
            <description>Hello folks,&lt;br /&gt;here i want to know what is This JUnit testing.&lt;br /&gt; &lt;br /&gt;I am now starting to learn some concept of testing as they can help to improve my programming skills. it is what i am said.&lt;br /&gt; &lt;br /&gt;So guys i wnat to know how should i start with this JUnit testing.&lt;br /&gt; &lt;br /&gt;Please help me with very basic working style for this testing&lt;br /&gt; &lt;br /&gt;cheers&lt;br /&gt;vijay.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001813</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001813vijay shanker</comments>
            <author/>
            <pubDate>Tue, 22 Apr 2008 03:56:23 MDT</pubDate>
        </item>
        <item uniqueID="68-001812">
            <title>wrong @BeforeClass behaviour</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001812</link>
            <description>Hi,&lt;br /&gt; &lt;br /&gt;According to the javadoc I found at http://api.dpml.net/junit/4.2/org/junit/BeforeClass.html, (http://api.dpml.net/junit/4.2/org/junit/BeforeClass.html,) "The @BeforeClass methods of superclasses will be run before those the current class."&lt;br /&gt; &lt;br /&gt;I've got a JUnit test called AdminFacadeBeanTest which extends AdminFacadeBeanTestBase, and both have a method with a @BeforeClass annotation.&lt;br /&gt; &lt;br /&gt;According to the javadoc I found at http://api.dpml.net/junit/4.2/org/junit/BeforeClass.html, (http://api.dpml.net/junit/4.2/org/junit/BeforeClass.html,) "The @BeforeClass methods of superclasses will be run before those the current class."&lt;br /&gt; &lt;br /&gt;However, when I run AdminFacadeBeanTest in Eclipse, AdminFacadeBeanTestBa...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001812</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001812Jan Van den bosch</comments>
            <author/>
            <pubDate>Tue, 22 Apr 2008 03:28:23 MDT</pubDate>
        </item>
        <item uniqueID="68-001811">
            <title>Conceptual questions concerning Unit tests</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001811</link>
            <description>Hello,&lt;br /&gt; &lt;br /&gt;Im just trying to setup an unit testing environment in the project im working atm.&lt;br /&gt; &lt;br /&gt;I just evaluated the different approaches of mock objects and the idea behind JUnit and the in-container approach of Cactus and i still have some questions about it...&lt;br /&gt; &lt;br /&gt;If i want to test my DAO classes which retrieve information from a persistent environment (in this case DB) i use a datasource that i lookup through JNDI. JNDI however is a naming service provided by the container. One thing i want to avoid is to create mock objects for all the services, as this would result in lots of mock objects to maintain.&lt;br /&gt; &lt;br /&gt;The in-container approach seems to be more logic to me. What do you guys think?&lt;br /&gt; &lt;br /&gt;And h...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001811</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001811chuan ito</comments>
            <author/>
            <pubDate>Tue, 22 Apr 2008 03:06:23 MDT</pubDate>
        </item>
        <item uniqueID="68-001810">
            <title>Distributed testing</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001810</link>
            <description>Hi,&lt;br /&gt;I have a test plan with 4 thread and I'm performing distributed testing with 3 pcs. When I run the test each PC execute the test plan entirely. Is there any way to assign each thread to a specific PC?&lt;br /&gt; &lt;br /&gt;thanks in advance</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001810</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001810Edward Herrera</comments>
            <author/>
            <pubDate>Mon, 21 Apr 2008 19:04:21 MDT</pubDate>
        </item>
        <item uniqueID="68-001809">
            <title>How do I write a Junit test for my main method in the class</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001809</link>
            <description>Hi,&lt;br /&gt;How do I write a Junit test for my main method in the class. It is the only method in the class and as usual returns void. I can't see any side effect also happenning here which will help me test the result.&lt;br /&gt; &lt;br /&gt;Thanks,&lt;br /&gt;Sandeep</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001809</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001809sandeep wagh</comments>
            <author/>
            <pubDate>Mon, 21 Apr 2008 01:30:15 MDT</pubDate>
        </item>
        <item uniqueID="68-001808">
            <title>Junit - inconsitant objects</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001808</link>
            <description>Hey guys! Have been doing some experimenting junit today but have hit a wee wall! I have the following code which I downloaded from a University website. I don't think you need to read any of the CoffeeMaker code to answer my question, but if you'd like to:&lt;br /&gt;http://open.ncsu.edu/se/tutorials/junit/ (http://open.ncsu.edu/se/tutorials/junit/)&lt;br /&gt; &lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt; package testcases;&lt;br /&gt; &lt;br /&gt;import static org.junit.Assert.*;&lt;br /&gt; &lt;br /&gt;import org.junit.Test;&lt;br /&gt; &lt;br /&gt;import edu.ncsu.csc326.coffeemaker.CoffeeMaker;&lt;br /&gt;import edu.ncsu.csc326.coffeemaker.Recipe;&lt;br /&gt; &lt;br /&gt;public class CoffeeMakerTest {&lt;br /&gt;private CoffeeMaker cm;&lt;br /&gt;private Recipe r1;&lt;br /&gt;&lt;br /&gt;public CoffeeMakerTest(){&lt;br /&gt;cm = new CoffeeMa...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001808</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001808dave hopkins</comments>
            <author/>
            <pubDate>Sun, 20 Apr 2008 15:28:12 MDT</pubDate>
        </item>
        <item uniqueID="68-001807">
            <title>not submiting a page using link.(httpunit)</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001807</link>
            <description>Hi friends,&lt;br /&gt; &lt;br /&gt;To help, Thanks in advance.&lt;br /&gt; &lt;br /&gt;I have a web page to select size using link, that has no href attribute. How will i click using httpunit? I am using this code But response showing size is not selected.&lt;br /&gt; &lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt; &lt;br /&gt; &lt;br /&gt;My code...&lt;br /&gt; WebLink[] linkn=response.getLinks();&lt;br /&gt; for(int i=0;i&amp;lt;linkn.length;i++){&lt;br /&gt; if(linkn[i].getID().equals("size38"))&lt;br /&gt;{&lt;br /&gt; response=linkn[i].click();&lt;br /&gt; break;&lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;hr&gt;&lt;/blockquote&gt;</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001807</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001807Kameshwar Prasad</comments>
            <author/>
            <pubDate>Fri, 18 Apr 2008 01:34:20 MDT</pubDate>
        </item>
        <item uniqueID="68-001806">
            <title>Junit4 References</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001806</link>
            <description>hi,&lt;br /&gt;i am looking for junit4 detailed document or pdf&lt;br /&gt;can any one please help me the same&lt;br /&gt; &lt;br /&gt;Thanks in advance</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001806</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001806Ravi Kiran</comments>
            <author/>
            <pubDate>Thu, 17 Apr 2008 04:26:17 MDT</pubDate>
        </item>
        <item uniqueID="68-001805">
            <title>performance debugger </title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001805</link>
            <description>i want to know about those performance testing tools that monitors servers and sites 24/7 , can you please help me in this topic...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001805</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001805Nilima vyas</comments>
            <author/>
            <pubDate>Thu, 17 Apr 2008 00:27:04 MDT</pubDate>
        </item>
        <item uniqueID="68-001800">
            <title>Testing with Database connections - help needed</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800</link>
            <description>Hi all,&lt;br /&gt; &lt;br /&gt;I have a application with struts framework which has a DAO class, a bussiness object class. i am using strutstestcase for testing the struts app. but when it gets connected to the DAO(which has lots of session objects getting connected to the DB), the tests donot run. It gives a nullpointerexception. i guess this should be a in-container testing. can anyone give me an idea of which would be the best tool for testing this type of application. Please reply soon.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800Betsy Camel</comments>
            <author/>
            <pubDate>Thu, 17 Apr 2008 00:21:03 MDT</pubDate>
        </item>
        <item uniqueID="68-001797">
            <title>New JavaRanch Journal article: &amp;quot;What It Means to Mock: Isolating Units for Testing&amp;quot;</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001797</link>
            <description>The latest issue of the JavaRanch Journal contains an article by Carrie Prebble on What It Means to Mock: Isolating Units for Testing (http://www.javaranch.com/journal/2008/04/Journal200804.jsp#a1). Go read it while it's fresh, and discuss it in this thread.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001797</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001797Ulf Dittmer</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 23:15:02 MDT</pubDate>
        </item>
        <item uniqueID="68-001768">
            <title>Canoo web testing </title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001768</link>
            <description>Hello ,&lt;br /&gt; &lt;br /&gt;I am experiencing the following error when I am trying to execute lenghty scripts. Could some body please help out .&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;org.apache.commons.httpclient.NoHttpResponseException&lt;br /&gt; &lt;br /&gt;at com.canoo.webtest.steps.StepUtil.handleException(StepUtil.java:111)&lt;br /&gt; &lt;br /&gt;at com.canoo.webtest.steps.Step.handleException(Step.java:372)&lt;br /&gt; &lt;br /&gt;at com.canoo.webtest.steps.Step.execute(Step.java:103)&lt;br /&gt; &lt;br /&gt;at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)&lt;br /&gt; &lt;br /&gt;at org.apache.tools.ant.Task.perform(Task.java:364)&lt;br /&gt; &lt;br /&gt;at com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)&lt;br /&gt; &lt;br /&gt;at com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSeq...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001768</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001768Dhanaraja Bheema Naik</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 19:33:02 MDT</pubDate>
        </item>
        <item uniqueID="68-001804">
            <title>Calling Junit from another java class ?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001804</link>
            <description>I'm using Rad 6. I have test cases written for some of the programs in the test package. I want to write a java program in some other package to trigger the JUnit test. Is it possible ? &lt;br /&gt; &lt;br /&gt;(what im trying is to have a jsp page that can select the exact test to run from a drop down, pass it to a java class in another package, and this java class has to trigger that exact JUnit test in the Test Package)&lt;br /&gt; &lt;br /&gt;I tried it and am getting the following error.&lt;br /&gt; &lt;br /&gt;&lt;i&gt;&lt;br /&gt;Error 500: Error while defining class: com.macys.ps.parms.comm.test.allMessagesTest This error indicates that the class: junit.framework.TestCase could not be located while defining the class: com.macys.ps.parms.comm.test.allMessagesTest This is often cau...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001804</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001804Ram kumar</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 19:23:02 MDT</pubDate>
        </item>
        <item uniqueID="68-001804">
            <title>Calling Junit from another java class ?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001804</link>
            <description>I'm using Rad 6. I have test cases written for some of the programs in the test package. I want to write a java program in some other package to trigger the JUnit test. Is it possible ? &lt;br /&gt; &lt;br /&gt;(what im trying is to have a jsp page that can select the exact test to run from a drop down, pass it to a java class in another package, and this java class has to trigger that exact JUnit test in the Test Package)&lt;br /&gt; &lt;br /&gt;I tried it and am getting the following error.&lt;br /&gt; &lt;br /&gt;&lt;i&gt;&lt;br /&gt;Error 500: Error while defining class: com.macys.ps.parms.comm.test.allMessagesTest This error indicates that the class: junit.framework.TestCase could not be located while defining the class: com.macys.ps.parms.comm.test.allMessagesTest This is often cau...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001804</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001804Ram kumar</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 19:21:02 MDT</pubDate>
        </item>
        <item uniqueID="68-001800">
            <title>Testing with Database connections - help needed</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800</link>
            <description>Hi all,&lt;br /&gt; &lt;br /&gt;I have a application with struts framework which has a DAO class, a bussiness object class. i am using strutstestcase for testing the struts app. but when it gets connected to the DAO(which has lots of session objects getting connected to the DB), the tests donot run. It gives a nullpointerexception. i guess this should be a in-container testing. can anyone give me an idea of which would be the best tool for testing this type of application. Please reply soon.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800Betsy Camel</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 19:17:02 MDT</pubDate>
        </item>
        <item uniqueID="68-001800">
            <title>Testing with Database connections - help needed</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800</link>
            <description>Hi all,&lt;br /&gt; &lt;br /&gt;I have a application with struts framework which has a DAO class, a bussiness object class. i am using strutstestcase for testing the struts app. but when it gets connected to the DAO(which has lots of session objects getting connected to the DB), the tests donot run. It gives a nullpointerexception. i guess this should be a in-container testing. can anyone give me an idea of which would be the best tool for testing this type of application. Please reply soon.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800Betsy Camel</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 19:15:02 MDT</pubDate>
        </item>
        <item uniqueID="68-001804">
            <title>Calling Junit from another java class ?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001804</link>
            <description>I'm using Rad 6. I have test cases written for some of the programs in the test package. I want to write a java program in some other package to trigger the JUnit test. Is it possible ? &lt;br /&gt; &lt;br /&gt;(what im trying is to have a jsp page that can select the exact test to run from a drop down, pass it to a java class in another package, and this java class has to trigger that exact JUnit test in the Test Package)&lt;br /&gt; &lt;br /&gt;I tried it and am getting the following error.&lt;br /&gt; &lt;br /&gt;&lt;i&gt;&lt;br /&gt;Error 500: Error while defining class: com.macys.ps.parms.comm.test.allMessagesTest This error indicates that the class: junit.framework.TestCase could not be located while defining the class: com.macys.ps.parms.comm.test.allMessagesTest This is often cau...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001804</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001804Ram kumar</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 19:13:02 MDT</pubDate>
        </item>
        <item uniqueID="68-001803">
            <title>Help with ECLEMMA &amp;amp; JBOSS</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001803</link>
            <description>I need to test my web application running on Application server JBoss.&lt;br /&gt;I have created test cases for the APIs and I want to do code coverage testing with eclemma tool.&lt;br /&gt;I see 0% coverage for the source folder which is not expected.&lt;br /&gt;Can anyone help?&lt;br /&gt;Should I switch to emma or cobertura?&lt;br /&gt; &lt;br /&gt;Any help is greatly appreciated.&lt;br /&gt; &lt;br /&gt;Sups</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001803</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001803Supriya Kaledhonkar</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 16:29:02 MDT</pubDate>
        </item>
        <item uniqueID="68-001804">
            <title>Calling Junit from another java class ?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001804</link>
            <description>I'm using Rad 6. I have test cases written for some of the programs in the test package. I want to write a java program in some other package to trigger the JUnit test. Is it possible ? &lt;br /&gt; &lt;br /&gt;(what im trying is to have a jsp page that can select the exact test to run from a drop down, pass it to a java class in another package, and this java class has to trigger that exact JUnit test in the Test Package)&lt;br /&gt; &lt;br /&gt;I tried it and am getting the following error.&lt;br /&gt; &lt;br /&gt;&lt;i&gt;&lt;br /&gt;Error 500: Error while defining class: com.macys.ps.parms.comm.test.allMessagesTest This error indicates that the class: junit.framework.TestCase could not be located while defining the class: com.macys.ps.parms.comm.test.allMessagesTest This is often cau...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001804</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001804Ram kumar</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 11:49:01 MDT</pubDate>
        </item>
        <item uniqueID="68-001803">
            <title>Help with ECLEMMA &amp;amp; JBOSS</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001803</link>
            <description>I need to test my web application running on Application server JBoss.&lt;br /&gt;I have created test cases for the APIs and I want to do code coverage testing with eclemma tool.&lt;br /&gt;I see 0% coverage for the source folder which is not expected.&lt;br /&gt;Can anyone help?&lt;br /&gt;Should I switch to emma or cobertura?&lt;br /&gt; &lt;br /&gt;Any help is greatly appreciated.&lt;br /&gt; &lt;br /&gt;Sups</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001803</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001803Supriya Kaledhonkar</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 11:37:01 MDT</pubDate>
        </item>
        <item uniqueID="68-001797">
            <title>New JavaRanch Journal article: &amp;quot;What It Means to Mock: Isolating Units for Testing&amp;quot;</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001797</link>
            <description>The latest issue of the JavaRanch Journal contains an article by Carrie Prebble on What It Means to Mock: Isolating Units for Testing (http://www.javaranch.com/journal/2008/04/Journal200804.jsp#a1). Go read it while it's fresh, and discuss it in this thread.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001797</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001797Ulf Dittmer</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 07:13:00 MDT</pubDate>
        </item>
        <item uniqueID="68-001800">
            <title>Testing with Database connections - help needed</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800</link>
            <description>Hi all,&lt;br /&gt; &lt;br /&gt;I have a application with struts framework which has a DAO class, a bussiness object class. i am using strutstestcase for testing the struts app. but when it gets connected to the DAO(which has lots of session objects getting connected to the DB), the tests donot run. It gives a nullpointerexception. i guess this should be a in-container testing. can anyone give me an idea of which would be the best tool for testing this type of application. Please reply soon.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800Betsy Camel</comments>
            <author/>
            <pubDate>Wed, 16 Apr 2008 06:09:00 MDT</pubDate>
        </item>
        <item uniqueID="68-001803">
            <title>Help with ECLEMMA &amp;amp; JBOSS</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001803</link>
            <description>I need to test my web application running on Application server JBoss.&lt;br /&gt;I have created test cases for the APIs and I want to do code coverage testing with eclemma tool.&lt;br /&gt;I see 0% coverage for the source folder which is not expected.&lt;br /&gt;Can anyone help?&lt;br /&gt;Should I switch to emma or cobertura?&lt;br /&gt; &lt;br /&gt;Any help is greatly appreciated.&lt;br /&gt; &lt;br /&gt;Sups</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001803</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001803Supriya Kaledhonkar</comments>
            <author/>
            <pubDate>Tue, 15 Apr 2008 18:46:59 MDT</pubDate>
        </item>
        <item uniqueID="68-001801">
            <title>Help with eclemma with JBOSS</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001801</link>
            <description>Does anyone know eclemma can be used to do code coverage testing for web application running on jboss?&lt;br /&gt; &lt;br /&gt;any help is appreciated.&lt;br /&gt; &lt;br /&gt;Thanks,&lt;br /&gt;Supriya</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001801</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001801Supriya Kaledhonkar</comments>
            <author/>
            <pubDate>Tue, 15 Apr 2008 18:46:59 MDT</pubDate>
        </item>
        <item uniqueID="68-001800">
            <title>Testing with Database connections - help needed</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800</link>
            <description>Hi all,&lt;br /&gt; &lt;br /&gt;I have a application with struts framework which has a DAO class, a bussiness object class. i am using strutstestcase for testing the struts app. but when it gets connected to the DAO(which has lots of session objects getting connected to the DB), the tests donot run. It gives a nullpointerexception. i guess this should be a in-container testing. can anyone give me an idea of which would be the best tool for testing this type of application. Please reply soon.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800Betsy Camel</comments>
            <author/>
            <pubDate>Tue, 15 Apr 2008 18:44:59 MDT</pubDate>
        </item>
        <item uniqueID="68-001798">
            <title>How to capture unix cpu and memory usage....</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001798</link>
            <description>I have been tasked with load testing an application on an Unix machine, let's refer to the application as BASE. I will be writing a load simulator class (in java 1.6) to load the application from a Windows XP machine, let's refer to this application as TESTER.&lt;br /&gt; &lt;br /&gt;Is there a straightforward way to get the memory usage and cpu % of BASE from within the TESTER code? This will allow me to capture data conveniently in terms of load units generated and the associated cpu usage and memory usage.&lt;br /&gt; &lt;br /&gt;I am totally new to testing but, as usual, have to have this finished quickly. Any pointers, suggestions, or links would be appreciated.&lt;br /&gt; &lt;br /&gt;From my initial research there doesn't seem to be a straightforward way to do this ...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001798</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001798J.D. Thompson</comments>
            <author/>
            <pubDate>Tue, 15 Apr 2008 13:12:58 MDT</pubDate>
        </item>
        <item uniqueID="68-001803">
            <title>Help with ECLEMMA &amp;amp; JBOSS</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001803</link>
            <description>I need to test my web application running on Application server JBoss.&lt;br /&gt;I have created test cases for the APIs and I want to do code coverage testing with eclemma tool.&lt;br /&gt;I see 0% coverage for the source folder which is not expected.&lt;br /&gt;Can anyone help?&lt;br /&gt;Should I switch to emma or cobertura?&lt;br /&gt; &lt;br /&gt;Any help is greatly appreciated.&lt;br /&gt; &lt;br /&gt;Sups</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001803</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001803Supriya Kaledhonkar</comments>
            <author/>
            <pubDate>Tue, 15 Apr 2008 12:48:58 MDT</pubDate>
        </item>
        <item uniqueID="68-001802">
            <title>What causes these two errors?</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001802</link>
            <description>The following clases display two errors when tested with junit3.8.1&lt;br /&gt; in the methods testCreate, testCourseSessionDates, testCourseDates&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;CLASS&amp;gt;&lt;br /&gt; &amp;lt;CourseSession.java class&amp;gt;&lt;br /&gt; package studentinfo;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;import java.util.*;&lt;br /&gt; &lt;br /&gt;//import java.util.Date;&lt;br /&gt;//import java.util.Calendar;&lt;br /&gt;//import java.util.GregorianCalendar;&lt;br /&gt; &lt;br /&gt;/* If import is not used , then the fully qualified name of the class&lt;br /&gt; * has to be used. eg:-java.util.ArrayList*/&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;class CourseSession{&lt;br /&gt; &lt;br /&gt;private String department;&lt;br /&gt;private String number;&lt;br /&gt;private ArrayList&amp;lt;Student&amp;gt; students = new ArrayList&amp;lt;Student&amp;gt;();&lt;br /&gt;priva...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001802</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001802</comments>
            <pubDate>Mon, 14 Apr 2008 23:57:19 MDT</pubDate>
        </item>
        <item uniqueID="68-001801">
            <title>Help with eclemma with JBOSS</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001801</link>
            <description>Does anyone know eclemma can be used to do code coverage testing for web application running on jboss?&lt;br /&gt; &lt;br /&gt;any help is appreciated.&lt;br /&gt; &lt;br /&gt;Thanks,&lt;br /&gt;Supriya</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001801</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001801</comments>
            <pubDate>Mon, 14 Apr 2008 18:09:18 MDT</pubDate>
        </item>
        <item uniqueID="68-001800">
            <title>Testing with Database connections - help needed</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800</link>
            <description>Hi all,&lt;br /&gt; &lt;br /&gt;I have a application with struts framework which has a DAO class, a bussiness object class. i am using strutstestcase for testing the struts app. but when it gets connected to the DAO(which has lots of session objects getting connected to the DB), the tests donot run. It gives a nullpointerexception. i guess this should be a in-container testing. can anyone give me an idea of which would be the best tool for testing this type of application. Please reply soon.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001800</comments>
            <pubDate>Mon, 14 Apr 2008 06:25:17 MDT</pubDate>
        </item>
        <item uniqueID="68-001799">
            <title>Unit tetsing (Junit) Spring Framework</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001799</link>
            <description>Hi I am very new to unit testing. I am using Spring framework + struts 2.0&lt;br /&gt;I am trying to test a serice. I have two Context files. When I run this class as a junit test, it gave me an error like could not find local.config.properties file. ApplicationContext.xml file has property configurer.&lt;br /&gt; &lt;br /&gt;I like to know if I am running in a proper way or should I create a build file so that applicationContext can find all the properties file or how should I load the properties file.&lt;br /&gt; &lt;br /&gt;Here is what I am trying to do--&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;package myproject.service;&lt;br /&gt;import java.util.List;&lt;br /&gt; &lt;br /&gt;import org.springframework.test.AbstractDependencyInjectionSpringContextTests;&lt;br /&gt; &lt;br /&gt;import myproject.model.Shipment;&lt;br /&gt;...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001799</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001799</comments>
            <pubDate>Thu, 10 Apr 2008 10:01:05 MDT</pubDate>
        </item>
        <item uniqueID="68-001798">
            <title>How to capture unix cpu and memory usage....</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001798</link>
            <description>I have been tasked with load testing an application on an Unix machine, let's refer to the application as BASE. I will be writing a load simulator class (in java 1.6) to load the application from a Windows XP machine, let's refer to this application as TESTER.&lt;br /&gt; &lt;br /&gt;Is there a straightforward way to get the memory usage and cpu % of BASE from within the TESTER code? This will allow me to capture data conveniently in terms of load units generated and the associated cpu usage and memory usage.&lt;br /&gt; &lt;br /&gt;I am totally new to testing but, as usual, have to have this finished quickly. Any pointers, suggestions, or links would be appreciated.&lt;br /&gt; &lt;br /&gt;From my initial research there doesn't seem to be a straightforward way to do this ...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001798</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001798</comments>
            <pubDate>Thu, 10 Apr 2008 09:01:05 MDT</pubDate>
        </item>
        <item uniqueID="68-001797">
            <title>New JavaRanch Journal article: &amp;quot;What It Means to Mock: Isolating Units for Testing&amp;quot;</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001797</link>
            <description>The latest issue of the JavaRanch Journal contains an article by Carrie Prebble on What It Means to Mock: Isolating Units for Testing (http://www.javaranch.com/journal/2008/04/Journal200804.jsp#a1). Go read it while it's fresh, and discuss it in this thread.</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001797</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001797</comments>
            <pubDate>Thu, 10 Apr 2008 03:03:04 MDT</pubDate>
        </item>
        <item uniqueID="68-001796">
            <title>Writing test case without database operations</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001796</link>
            <description>How to write test case for classes that calls database operations using entity beans and data of test case should be read from or write into some xml file? &lt;br /&gt;How to use mock objects here?&lt;br /&gt;The application is J2EE based uses EJBs and back end as db2.&lt;br /&gt;Any examples available?&lt;br /&gt; &lt;br /&gt;Thanks&lt;br /&gt;Deepa</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001796</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001796</comments>
            <pubDate>Wed, 9 Apr 2008 06:31:01 MDT</pubDate>
        </item>
        <item uniqueID="68-001795">
            <title>How to mock final class in unittest</title>
            <link>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001795</link>
            <description>I had a hard time to figure out how to do a unittest for a method. Need some help here..&lt;br /&gt; &lt;br /&gt;&lt;blockquote&gt;code:&lt;hr&gt;&lt;pre&gt;&lt;br /&gt;some other import...;&lt;br /&gt;import com.foo.bar.Cell;&lt;br /&gt;import com.foo.bar.SQLDatabase;&lt;br /&gt;import com.foo.bar.SQLDatabaseHelper;&lt;br /&gt;import com.foo.bar.util.Log;&lt;br /&gt; &lt;br /&gt;class DBHelper extends SQLDatabaseHelper {&lt;br /&gt; &lt;br /&gt; some other methods...&lt;br /&gt; &lt;br /&gt; @Override&lt;br /&gt; public ArrayList&amp;lt;Cell&amp;gt; fetchRows() {&lt;br /&gt; List&amp;lt;Cell&amp;gt; celllist = new ArrayList&amp;lt;Cell&amp;gt;();&lt;br /&gt; try {&lt;br /&gt; SQLDatabase db = openDatabase(name);&lt;br /&gt; } catch (SQLDatabaseException e) {&lt;br /&gt; Log.e("Open SQL database failed", e.toString());&lt;br /&gt; ...</description>
            <guid isPermaLink="true">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001795</guid>
            <comments>http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=68&amp;t=001795</comments>
            <pubDate>Wed, 9 Apr 2008 04:47:01 MDT</pubDate>
        </item>
    </channel>
</rss>
