I'm currently converting a test class which extended the Spring class AbstractTransactionalSpringContextTests to Spring 3. This abstract class is now deprecated and I should use AbstractJUnit38SpringContextTests.
The test class had this method in it:
@Override
protected boolean isDisabledInThisEnvironment(String testMethodName)
{
// Test is only needed for bugfixing and development.开发者_高级运维 Do not check in with this flag on false.
return true;
}
What is the replacement for this isDisabledInThisEnvironment method?
This concept is implemented with @IfProfileValue
. Works with both JUnit and TestNG.
精彩评论