Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
student:junit:v3 [2018/08/14 13:30] – bernstdh | student:junit:v3 [2018/08/14 13:32] – bernstdh |
---|
and must include a class declaration of the following form: | and must include a class declaration of the following form: |
| |
| |
| public class //ClassName//Test extends TestCase | | | public class //ClassName//Test extends TestCase | |
| |
| Assert.assertEquals(//Description//, //ExpectedValue//, //ActualValue//); | | | Assert.assertEquals(//Description//, //ExpectedValue//, //ActualValue//); | |
| |
| | Assert.assertEquals(//Description//, //ExpectedValue//, //ActualValue//); | |
| |
The //Description// is a human-readable ''%%String%%'' that provides information that enables the tester to understand the test in the event that the code fails the test. The //ExpectedValue// contains the correct value (i.e., the value that the tester expects if the method named //MethodName// in //ClassName// is working correctly. The //ActualValue// contains the value that was actually generated by the method named //MethodName// in //ClassName//. | The //Description// is a human-readable ''%%String%%'' that provides information that enables the tester to understand the test in the event that the code fails the test. The //ExpectedValue// contains the correct value (i.e., the value that the tester expects if the method named //MethodName// in //ClassName// is working correctly. The //ActualValue// contains the value that was actually generated by the method named //MethodName// in //ClassName//. |
| |