I know using JUnit that it is possible to ignore a test using the @Ignore annotation but is it possible to ignore a method call from all JUnit tests if the method is called from another method?
In the example below i want to be able to test the createPerson(...)
method but i want my test to ignore the createAddress(...)
method
Quick Example : Person.java
public void createPerson(...){
createAddress(...);
createBankAccount(...);
...
}
@IgnoreByTests
public void createAddress(...){
... creates address ...
}
public void createBankAccount(...)[
... creates bank account ...
}