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
ServerWatch.com Article: Virtualization Enters the SMB World
ITChannelPlanet.com Article: Emerging E-Discovery Market Grows More Vital for VARs
StoreVault Whitepaper: Introduction to Networked Storage
Oracle eBook: Implementing Business Intelligence in Your Organization
Hoovers Sales Tip: Building Credibility with New Clients
SAP Whitepaper: A Corporate Guide to Better Decisions Through IT
Microsoft Article: Flexibility, Agility the Keys to Dynamic IT
Microsoft Article: Improving Infrastructure Management for Mid-Size Companies
IBM Whitepaper: CIO Insights--Ignite Innovation by Fusing Business and IT
IBM Whitepaper: Transforming Legacy Apps into SOA
Internet.com eBook: All About Botnets
Intel Article: 8 Simple Rules for Designing Threaded Applications
Symantec Whitepaper: E-Mail Discovery--Worst-Case Scenarios Versus Best Practices
Ipswitch Whitepaper: Secure File Transfer In the Era of Regulatory Compliance
Symantec Whitepaper: A Unified, Proactive Approach to Endpoint Security
APC eBook: Putting the Green in IT
Intel Whitepaper: Best Practices for Developing and Optimizing Threaded Applications
Symantec Whitepaper: Emerging Trends in Fighting Spam
Oracle eBook: Guide to Oracle 11g and Database Migration
Symantec Whitepaper: Best Practices for IM Archiving & Compliance
Intel Article: The Challenges of Developing Multithreaded Processing Pipelines
Avaya Whitepaper: SIP--Creating Next-Generation Telecom Applications
Avaya Article: Event Processing Demands Real-Time Response for Communications-Enabled Business Apps
MessageLabs Whitepaper: Spam Spikes--A Real Risk to Your Business
Symantec Article: Guarding the Corporate Gateway
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Epicor Webcast: Requirements to Consider When Looking at ITSM Tools
Intel Video: Three Must-Knows for Parallelism
Microsoft: NXT Web Seminar Series
Microsoft Partner Program Video: The Secrets to Partner Success
Rational Asset Manager: Succeed with Asset-based Development
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
NXPowerLite: Desktop Edition Software Trial
IBM Rational Systems Development Solution e-Kit
IBM SOA Development Survival Guide eKit
Evaluate IBM Rational Build Forge Online
IBM Enterprise Architect eKit for SOA
Evaluate Rational Application Developer Online
Iron Speed Designer Application Generator
Symantec IM Detection Utility
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM Overview Video: Next Generation Data Warehousing
IBM Tutorial: Intro to XML User Interface Language (XUL) Development
Microsoft How-to Article: Get Going with Silverlight and Windows Live
IBM Tutorial: The Ajax Transport Method
IBM Tutorial: Learning PHP
IBM Tutorial: Validating XML
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES