Skip to content

3. Classes

Anindya Bandopadhyay edited this page Jan 18, 2018 · 8 revisions

There are two ways to use this framework based on the developer's requirement.

Case 1

If the majority of the classes need to be tested in this package then the developer should use below mention object creator.

AssertObjectCreator assertObject = new AssertObjectCreator();

OR

AssertObjectCreator assertObject = new AssertObjectCreator(false);

In this scenario, all the class will be loaded for unit testing and if the developer wants to ignore any class from this package then it could be done using @IgnoreClass annotation at class level.


Case 2

If the selected class needed to be unit tested in a package then the developer should use below mention object creator.

AssertObjectCreator assertObject = new AssertObjectCreator(true);

In this scenario, only classes which are marked as @TestThisClass annotation at class level will be loaded for unit testing.

Clone this wiki locally