Class NoOpTestRunRegistrar

    • Constructor Detail

      • NoOpTestRunRegistrar

        public NoOpTestRunRegistrar()
    • Method Detail

      • getInstance

        public static NoOpTestRunRegistrar getInstance()
        Description copied from interface: TestRunRegistrar
        Factory method allowing to obtain Zebrunner test run registrar
        Returns:
        Zebrunner registrar instance
      • registerStart

        public void registerStart​(TestRunStartDescriptor testRunStartDescriptor)
        Description copied from interface: TestRunRegistrar
        Registers test run start
        Specified by:
        registerStart in interface TestRunRegistrar
        Parameters:
        testRunStartDescriptor - test run start descriptor capturing state at the beginning of the run
      • registerTestStart

        public void registerTestStart​(java.lang.String id,
                                      TestStartDescriptor testStartDescriptor)
        Description copied from interface: TestRunRegistrar
        Registers test start
        Specified by:
        registerTestStart in interface TestRunRegistrar
        Parameters:
        id - key that uniquely identifies specific test in scope of test run. This value will be used later for test finish registration
        testStartDescriptor - test start descriptor
      • isTestStarted

        public boolean isTestStarted()
        Description copied from interface: TestRunRegistrar
        Checks if there is a started test within current execution thread.
        Specified by:
        isTestStarted in interface TestRunRegistrar
        Returns:
        true - if there is a started test, otherwise - false
      • isTestStarted

        public boolean isTestStarted​(java.lang.String id)
        Description copied from interface: TestRunRegistrar
        Checks whether a test with specific id has been started or not
        Specified by:
        isTestStarted in interface TestRunRegistrar
        Parameters:
        id - key that uniquely identifies specific test in scope of test run.
        Returns:
        true - if the test has been started, otherwise - false
      • registerTestFinish

        public void registerTestFinish​(java.lang.String id,
                                       TestFinishDescriptor testFinishDescriptor)
        Description copied from interface: TestRunRegistrar
        Registers test finish
        Specified by:
        registerTestFinish in interface TestRunRegistrar
        Parameters:
        id - key that uniquely identifies specific test in scope of test run. Appropriate test start with matching id should be registered prior to test finish registration, otherwise test won't be properly registered
        testFinishDescriptor - test result descriptor