Saturday, February 1, 2014

Chapter 3 - JUnit, Mocking, Unit Testing

Reading Materials
·         JUnit TutorialGettingStarted
o    JUnit Usage and Idioms – Read all of the listed items under the JUnit Wiki
·         MockitoDocumentationsand Examples
·         TDD Wiki Value
·         Unit Testing Wiki Value

Excercise:

1.     Write unit testing planning for your previously written code and review it with our mentor before starting to implement it.
2.     Write all of your tests via the framework of JUnit (We’re talking about unit testing) that performs the coverage to all of your specifications in the previous section.
a.     Use Maven to add the dependencies to JUnit 4 and Mockito (You should use the most current versions available).
b.    Write unit tests to all of the implementations of EncryptionAlgorithm interface.
(Make sure that the tests run each time you make a build with maven)
c.      Try writing your tests without code duplication, think how you can reuse your code to the different encryption algorithms.

No comments:

Post a Comment