Package ru.yandex.qatools.allure.events

Examples of ru.yandex.qatools.allure.events.ClearStepStorageEvent


        when(description.getMethodName()).thenReturn("some.method.name");

        doReturn("some.uid").when(runListener).getSuiteUid(description);
        runListener.testStarted(description);

        inOrder(allure).verify(allure).fire(eq(new ClearStepStorageEvent()));
        inOrder(allure).verify(allure).fire(eq(
                withExecutorInfo(new TestCaseStartedEvent("some.uid", "some.method.name"))
        ));
    }
View Full Code Here


    private void fireClearTestStorage() {
        Allure.LIFECYCLE.fire(new ClearTestStorageEvent());
    }

    private void fireClearStepStorage() {
        Allure.LIFECYCLE.fire(new ClearStepStorageEvent());
    }
View Full Code Here

        assertThat(listener.get(SimpleListener.EventType.TESTSUITE_FINISHED_EVENT), is(1));
    }

    @Test
    public void clearStepContextTest() throws Exception {
        allure.fire(new ClearStepStorageEvent());
        assertThat(listener.get(SimpleListener.EventType.CLEAR_STEP_STORAGE_EVENT), is(1));
    }
View Full Code Here

            getLifecycle().fire(new TestCaseFailureEvent().withThrowable(throwable));
        }
    }

    public void fireClearStepStorage() {
        getLifecycle().fire(new ClearStepStorageEvent());
    }
View Full Code Here

TOP

Related Classes of ru.yandex.qatools.allure.events.ClearStepStorageEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.