Class GenerateTest.SingleTestRule

  • All Implemented Interfaces:
    org.junit.rules.MethodRule
    Enclosing class:
    GenerateTest

    public class GenerateTest.SingleTestRule
    extends Object
    implements org.junit.rules.MethodRule
    Custom rule to allow for performing one unit test at a time. Helpful when a test is failing.
    Author:
    jpadams
    • Constructor Detail

      • SingleTestRule

        public SingleTestRule​(String applyMethod)
    • Method Detail

      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement statement,
                                                       org.junit.runners.model.FrameworkMethod method,
                                                       Object target)
        Specified by:
        apply in interface org.junit.rules.MethodRule