Search in sources :

Example 1 with TestItemTree

use of com.epam.reportportal.service.tree.TestItemTree in project agent-java-junit5 by reportportal.

the class ItemTreeUtilsTest method init.

@BeforeEach
void init() {
    MockitoAnnotations.initMocks(this);
    when(testInfo.getDisplayName()).thenReturn(NAME);
    when(extensionContext.getDisplayName()).thenReturn(NAME);
    testItemTree = new TestItemTree();
}
Also used : TestItemTree(com.epam.reportportal.service.tree.TestItemTree) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with TestItemTree

use of com.epam.reportportal.service.tree.TestItemTree in project examples-java by reportportal.

the class CallbackTest method afterClass.

@AfterClass
public static void afterClass() {
    ReportPortalClient client = ReportPortalListener.getReportPortal().getClient();
    TestItemTree itemTree = ParallelRunningContext.getCurrent().getItemTree();
    attachLog(client, itemTree);
    changeStatus(client, itemTree);
}
Also used : TestItemTree(com.epam.reportportal.service.tree.TestItemTree) ReportPortalClient(com.epam.reportportal.service.ReportPortalClient) AfterClass(org.junit.AfterClass)

Aggregations

TestItemTree (com.epam.reportportal.service.tree.TestItemTree)2 ReportPortalClient (com.epam.reportportal.service.ReportPortalClient)1 AfterClass (org.junit.AfterClass)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1