Currently, Jtest has deprecated the use of the repository. Instead, Jtest allows you to directly write classes that will construct the argument values you wish to use. To define values through a class, you define a static method that returns the proper value, import it, and insert the method name as the parameter argument. Looking at Figure 4 you can see that I pass the get method values created by Inputs.numbersTable , Inputs.emptyTable , and Inputs.colorsTable . By allowing you to write your own classes for constructing the parameter values, Jtest gives you more flexibility than by just adding a simple method to the repository.
Test case classes Simple method manipulation is an important way to test a class.
However, there are times when your tests need to be more complex. For example, when testing a stack class, you'll want to see whether elements pop off in the proper order. To test the pop functionality, you will need to load some data onto the stack using the push method. Simple method manipulation won't allow you to perform such a complex test since you can only call one method. When you need to call multiple methods to properly test a class, you'll need to write a test class.