开发者

Spring 3 replacement for isDisabledInThisEnvironment

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜