vmassol (51) [Avatar] Offline
#1
Erratum #1: Dynabean creation typo

In chapter 9, listing 9.5, there a mistake in the createCommandResult method:

DynaBean request1 = dynaClass.newInstance();
request1.set("id", "12345");
[...]
DynaBean request2 = dynaClass.newInstance();
request1.set("id", "56789");
request1.set("responsetime", new Long(430));
results.add(request2);
[...]

It must be replaced by:

DynaBean request1 = dynaClass.newInstance();
request1.set("id", "12345");
[...]
DynaBean request2 = dynaClass.newInstance();
request2.set("id", "56789");
request2.set("responsetime", new Long(430));
results.add(request2);
[...]

Explanation: In the creation of the second dynabean, there is a typo and request1 must be changed to request2.


Message was edited by: vmassol


Message was edited by: vmassol
vmassol (51) [Avatar] Offline
#2
Erratum #2
Erratum #2: Typo in table 2.3 page 30

Table 2.3 (page 30) has a typo for the explanation of the assertFalse method. It says:

"Asserts that a condition is true. If it isn’t, the method throws an AssertionFailedError with the given message (if any)."

It should be

"Asserts that a condition is false. If it isn’t, the method throws an AssertionFailedError with the given message (if any)."


Message was edited by: vmassol
vmassol (51) [Avatar] Offline
#3
Erratum #3
Erratum #3: Typo in listing 2.3 page 24

// suite.addTestSuite(...
should read
// suite.addTest(...
peterv (5) [Avatar] Offline
#4
Re: Erratum #3
In page 1, line 6, "unit test are" should be "unit tests are" instead
peterv (5) [Avatar] Offline
#5
Re: Erratum #3
In page 22, section 2.3., 2nd para, 3rd sentence, "is passed as the TestCase constructor" should be "is passed to the TestCase constructor" instead.

Hope this helps...
peterv (5) [Avatar] Offline
#6
Re: Erratum #3
Minor typo: In p. 33, "More about UML..." box, line 7 "et al" should be "et al." instead (i.e. with a dot after al). "et al." is an abbreviation of "et alii" and the dot after al is necessary.

Hope this helps...