I am in school and about to learn how to use Junit test.
my question is:
If i have a method and i want to know wether or not this method returns an Integer or not how will do this? is there an Assert that allows me to check the data type of the output?
Hope someone is able to help me
Best regards
Marc Rasmussen
You can check anything using the:
In a case a methode returns an object which you need to check its type you can use something like: