kawigi.problem
Class Test

java.lang.Object
  extended by kawigi.problem.Test
All Implemented Interfaces:
java.lang.Cloneable

public class Test
extends java.lang.Object
implements java.lang.Cloneable

Represents a test case. Normally when one writes a class called "Test", it's not meant to be in the final code base, but this case is an exception :-)


Constructor Summary
Test(java.lang.String[] parameters)
          Constructs a new Test with the given parameters without answer checking.
Test(java.lang.String answer, java.lang.String[] parameters)
          Constructs a new Test with the given answer and parameters.
 
Method Summary
 java.lang.Object clone()
          Copies this object into another one.
 boolean equals(java.lang.Object other)
          Checks if this test case is the same as another test case.
 java.lang.String getAnswer()
          Returns the intended output for this test.
 java.lang.String[] getParameters()
          Returns the input parameters for this test.
 boolean isWithAnswer()
          Checks the necessarity of the answer.
 void setAnswer(java.lang.String answer)
          Changes the intended output for this test.
 void setWithAnswer(boolean needAnswer)
          Changes the necessarity of the answer.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Test

public Test(java.lang.String[] parameters)
Constructs a new Test with the given parameters without answer checking.


Test

public Test(java.lang.String answer,
            java.lang.String[] parameters)
Constructs a new Test with the given answer and parameters.

Method Detail

getAnswer

public java.lang.String getAnswer()
Returns the intended output for this test.


setAnswer

public void setAnswer(java.lang.String answer)
Changes the intended output for this test.


isWithAnswer

public boolean isWithAnswer()
Checks the necessarity of the answer.


setWithAnswer

public void setWithAnswer(boolean needAnswer)
Changes the necessarity of the answer.


getParameters

public java.lang.String[] getParameters()
Returns the input parameters for this test.


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Copies this object into another one.

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

equals

public boolean equals(java.lang.Object other)
Checks if this test case is the same as another test case.

Overrides:
equals in class java.lang.Object