File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Using test components/classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Using test components/classes" Watch "Using test components/classes" New topic

Using test components/classes

Kevin Knowles
Ranch Hand

Joined: Dec 29, 2002
Posts: 45
If you are given as part of a project assignment, test components (or classes?) say as an example "" and others, how would you incorporate these components into the design?
[ June 25, 2003: Message edited by: Kevin Knowles ]
[ June 25, 2003: Message edited by: Kevin Knowles ]
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
hi kevin
i'd probably create a package "testModule" and then relate with other packages as "performs test on/for" relationship.
is that what u were asking (the design in sort of class relationship or something)?
Kevin Knowles
Ranch Hand

Joined: Dec 29, 2002
Posts: 45
Thanks Maulin,
Could you provide some sample code showing how you would do that?
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
You were given complete test classes? Do they mention JUnit in imports and extends? That's a very widely used framework to build test stuff, and many people make an AllTests thingie to run all their tests. If so, see for an overview and let us know if you need help getting installed and going.
If you're not dealing with JUnit, fill us in a bit more on what you have been given and what you have to do.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link:
subject: Using test components/classes
It's not a secret anymore!