May 2019
Intermediate to advanced
546 pages
12h 41m
English
Now, here comes the most important question in testing: Is the result of my test what I expect?
We can provide an answer to this question with the following functions. For each of these methods, you are able to define an error message during the tests. These methods are as follows:
In our test, we need to verify whether the private variable in our class is the same as movieId that we provided in our constructor. We should write a line of code like this:
System.assertEquals(theMovie.Id, ext.movieId);
Add the preceding line of code and save your ...
Read now
Unlock full access