Content Creators

Externalizing the testdata used by testcases to a properties file

Could someone help me how to externalize the testdata used by the testcases...

Or could you direct me to some sample format to do so......

Thankyou

Testing private methods

Hey Guys,

I have recently started using TDD and I faced the problem of testing private methods. I did some research and I came up with a pretty interesting solution. I wrote an article about this solution, so I thought that I'd share it with you.

Here is the link:
http://www.khussein.com/wordpress/?p=38

Please, share your thoughts!

Thanks,
Khaled

small doubt in junit - HttpUnit

i write a testcase for my jsp file using HttpUnit
that show the following errors:
com.meterware.httpunit.HttpInternalErrorException: Error on HTTP request: 500 Internal Error [http://localhost:8080/jsp/main.jsp

How can i get the response from the server using getResponse()

How to test abstract methods & interfaces using JUNIT?

Experts,

I need some pointers on the testing abstract methods & interfaces using JUNIT.

Thanks in advance,
Raj

Base class for tests not being found by junit 4.4 via surefire plugin

I have a maven project where I have, under the src/test/java tree, a class called server.common.ServerTestBase that serves as a base classfor other test classes.

For some reason this class is not found during test execution using "mvn test". Any idea what could cause this? The compiled class is under the target/test/classes.

TIA for your help

java.lang.NoClassDefFoundError: server.common.ServerTestBase
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)

junit testing for method taking class object as argument

i have a method by name as
generateResponseDocs(fileLocationVO) where fileLocationVO is the instance of class FileLocationVO class used in the same package.
if i want to test this method with junit .

pls guide me as to what value should i pass it as hardcoded value for that object.

Thanks,
kachabi

FEST-Swing

FEST-Swing is a Java library that provides a DSL-oriented, fluent interface for functional Swing GUI testing. This library provides an easy-to-use API that makes creation and maintenance of GUI tests simple and easy.

Feature overview:

  1. Simulation of user interaction with a GUI (e.g. mouse and keyboard input)
  2. Reliable GUI component lookup (by type, by name or custom search criteria)
  3. Support for all Swing components included in the JDK

Rules for Posting Content

Will always be available here. Please review these before asking a question in the forum.

Syndicate content