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 Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Internet.com eBook: The Pros and Cons of Outsourcing
Go Parallel Article: Scalable Parallelism with Intel(R) Threading Building Blocks
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES