final pt pt2

Posted on 2006-05-25
Last Modified: 2010-03-31

. You should also develop your own test programs for class AuditedCard. You should use the same
naming convention as above, i.e. 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?
Question by:basgen
    LVL 6

    Expert Comment

    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, the test class is named
    Phuoc H. Nguyen
    LVL 23

    Expert Comment

    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 , , 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.
    LVL 30

    Expert Comment

    Use a testing tool lke JUnit which generates these test classes and methods for you automatically:
    LVL 3

    Accepted Solution

    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 = != -1)

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




    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    This video teaches viewers about errors in exception handling.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now