[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

final pt pt2

. You should also develop your own test programs for class AuditedCard. You should use the same
naming convention as above, i.e. xyzTest.java for the test program xyzTest.out for the expected output.
These files should be documented in the README file.

im stuck in this bit too...anyway can suggest smth?
1 Solution
I guess you have to code the test for a class. If you use junit to develop the test class, the name convention is:
If class is named ABC.java, the test class is named ABCTest.java.
Phuoc H. Nguyen
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
The Statement above says you need to write your own test programs for testing the class AuditedCard. And the programs which you write must be named like xyzTest.java , myTest.java , complexTest.java etc.

And the Output which you are expecting for applied input must be saved in a file  like xyzTest.out , myTest.out , complexTest.out etc.

Finally you need to decscribe how to give the input and and how to check the out put (also how to run the program) in the readme File.
Mayank SAssociate Director - Product EngineeringCommented:
Use a testing tool lke JUnit which generates these test classes and methods for you automatically:

This might help to test your AuditedCard class

public class xyzTest {

      public static void main(String[] args) {
            AuditedCard  testauditcls = new AuditedCard ();

For your file output this might help

public void save () throws IOException {

File outputFile = new File("xyzTest.out ");

StringReader in = new StringReader(articleText);
FileWriter out = new FileWriter(outputFile, true); //append to file

int c;
while ((c = in.read()) != -1)

System.out.println("xyzTest.out  File" );




Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now