How to write a Unit Test?
Define the expected and desired output for a normal case, with correct input. Now, implement the test by declaring a class, name it anything (Usually something like TestAddingModule), and add the testAdd method to it (i.e. like the one below) : Write a method, and above it add the @Test annotation. In the method, run … Read more