352251 (1) [Avatar] Offline
#1
Hello,

No big deal but in chapter 2 I'm seeing things as:
assertEquals(items.size(), 2);
assertEquals(nameAttribute.getJavaType(),String.class);


Should not it be the opposite?

assertEquals(2, items.size());
assertEquals(String.class, nameAttribute.getJavaType());
Christian Bauer (56) [Avatar] Offline
#2
No, we are using TestNG, which reverses JUnit assertion arguments order.