jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

View:
JUnit FAQ Home Page

FAQ Manager is guru Mike Clark.

JUnit is a regression testing framework written by Erich Gamma and Kent Beck.

What's New

How do I run setup and tear-down code once for all my tests?
Tools:Testing:JUnit
Mike Clark, Apr 30, 2002
Wrap the top level test suite in a subclass of TestSetup. The following is a sample AllTests.suite() method: public static Test suite() { ...
How do I test a method that returns void?
Tools:Testing:JUnit
Mike Clark, Apr 30, 2002
Test an expected side-effect of the method. This may involve querying an instance variable or passing in a mock object to collect the results of the...
How do I implement a test case for a thrown exception?
Tools:Testing:JUnit
Erik Meade, Mar 3, 2002
Catch the exception and if it isn't thrown call the fail method. Fail signals the failure of a test case. Here is an example: public void testIndexOu...

What is JUnitEE?
Tools:Testing:JUnit
Govind Seshadri PREMIUM, Oct 30, 2001
JUnitEE is a simple extension to JUnit which allows standard test cases to be run from within a J2EE application server. It is composed primarily of a...
How can I use JUnit to test J2EE/EJB applications?
Java:API:EJB, J2EE, J2EE:EJB, J2EE:Servlets, Tools, Tools:Testing:JUnit
John Mitchell PREMIUM, Dec 12, 2000
Check out Jeff Schnitzer's JUnitEE package and the Wiki EJB Unit Testing page.
What do all of these XP (eXtreme Programming) acronyms mean?
Tools:Testing:JUnit, Process:XP
John Mitchell PREMIUM, Oct 4, 2000
Check out the XP Glossary.
When I use HttpUnit, I get a runtime exception - HttpUnit is looking for something called org.w3c.xml.Tidy. Where is this?
Tools, Tools:Debugging, Tools:Testing:JUnit
Tom Copeland, Sep 11, 2000
HttpUnit uses Tidy to parse HTML. You can download Tidy here.
How can I use JUnit to test a method that takes a complex parameter - like an HttpServletRequest?
Tools, Tools:Debugging, Process:Patterns, Tools:Testing:JUnit
Tom Copeland, Jul 25, 2000
Say you want to test this method: public Vector getEmployeeList(HttpServletRequest req) { Vector list = new Vector(); String department = re...
How can I use JUnit to ensure that my servlets/JSP are producing valid HTML?
Java:API:Servlets, Java:API:JSP:Debugging, Tools, Tools:Debugging, Programming:Concepts:Parsing, Tools:Testing:JUnit, Languages:Markup:XML:DOM
Tom Copeland, Jul 25, 2000
There's the traditional, brute force way - write a JUnit test case that opens a HttpURLConnection to your servlet, reads the content, and does various...
What debugging tools exist for Java?
Java:Language, Java:Performance, Tools, Tools:Misc, Tools:Debugging, Programming:Style, Tools:Testing:JUnit
John Mitchell PREMIUM, Apr 14, 2000
Check out logging packages like log4j and unit testing frameworks like JUnit. Check out static analysis tools such as Metamata's Audit and Metrics ...
What's an example of a simple JUnit test case?
Tools, Programming:Style, Tools:Testing:JUnit
Tom Copeland, Mar 17, 2000
Say you've got a little method, getName(String path) that parses a file name from a file path. You can write a JUnit test class to feed it a path and...
What are the differences between the different versions of JUnit?
Tools, Tools:Testing:JUnit
John Mitchell PREMIUM, Mar 17, 2000
The Wiki site contains a summary of changes to JUnit page.
Where can I find unit testing frameworks similar to JUnit for other languages?
Tools, Tools:Testing:JUnit
John Mitchell PREMIUM, Mar 17, 2000
From the XP Software page.
Where can I get the latest version of JUnit?
Tools, Tools:Testing:JUnit
John Mitchell PREMIUM, Mar 17, 2000
From the XP Software page.
What is JUnit?
Tools, Tools:Debugging, Tools:Testing:JUnit
Tom Copeland, Mar 16, 2000
JUnit is a free, open source Java framework that makes unit testing easier and more effective. Complete details are available at JUnit. There's also...


Ask A Question



Related Links

JUnit Forum

JUnit Homepage

Wish List
Features
About jGuru
Contact Us

 




JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES