.. (לתיקייה המכילה) | ||
Which version of java shall we use? | |
Java 7. |
What is the order of running test methods? | |
You should run the test methods of each class, starting from the highest defining parent and down to the current class. In each class, test methods should be ordered according to the annotation OOPTest. |
What shall I do if a test that is supposed to throw an exception doesnt throw any exception? | |
The result is FAILURE, and the message must be "The test must throw". |
what are the files I need to submit? | |
OOPTestClass.java, OOPSetup.java, OOPBefore.java, OOPAfter.java, OOPTest.java, OOPTestSummary.java, OOPUnitCore.java. Only these files must be submitted. . |
Where should I implement the class that implements the intefrace OOPResult? | |
This class can be placed in OOPTestSummary.java since it is not required for this class to be public, |
When saving the object state, what to do if one way throws an exception? | |
Try the next way. For example, if clone throws an exception, then you should try copy constructor. If all of them throw an exception, this must be handled the same way as if the test has thrown that exception. |
In which order shall I run the test methods in each class? | |
Accoring to the attribute order in OOPTest, starting from tests with smaller value. |
Shall we run overriden methods of the parent class? | |
No. And using reflection to run the overriden method will end up running the new method. |