Testing Java Libraries from ScalaCheck
Testing Java Libraries from ScalaCheck In this article I would like to show you how to integrate ScalaCheck into a Maven project in order to test your Java classes. I will use as an example the PhoneNumber class as seen on Item 9 on the book Effective Java. The idea will be to test that the equals method implementation on that class conforms to the equals contract according to the Java Specification (more on that later). Also we will be testing a couple of Netty handlers that could be used to Encode/Decode
评论
?
参与讨论