Search in sources :

Example 1 with StatisticSubType

use of com.epam.ta.reportportal.database.entity.statistics.StatisticSubType in project commons-dao by reportportal.

the class ProjectSettingsTest method toInvestigate.

@Test
public void toInvestigate() {
    final Project.Configuration projectSettings = new Project.Configuration();
    final StatisticSubType subType = projectSettings.getByLocator("Ti001");
    Assert.assertNotNull(subType);
    Assert.assertEquals("TO_INVESTIGATE", subType.getTypeRef());
}
Also used : StatisticSubType(com.epam.ta.reportportal.database.entity.statistics.StatisticSubType) Test(org.junit.Test)

Example 2 with StatisticSubType

use of com.epam.ta.reportportal.database.entity.statistics.StatisticSubType in project commons-dao by reportportal.

the class ProjectSettingsTest method incorrectLocator.

@Test
public void incorrectLocator() {
    final Project.Configuration projectSettings = new Project.Configuration();
    final StatisticSubType incorrect = projectSettings.getByLocator("incorrect");
    Assert.assertNull(incorrect);
}
Also used : StatisticSubType(com.epam.ta.reportportal.database.entity.statistics.StatisticSubType) Test(org.junit.Test)

Example 3 with StatisticSubType

use of com.epam.ta.reportportal.database.entity.statistics.StatisticSubType in project commons-dao by reportportal.

the class ProjectSettingsTest method notIssue.

@Test
public void notIssue() {
    final Project.Configuration projectSettings = new Project.Configuration();
    final StatisticSubType not_issue = projectSettings.getByLocator("NOT_IsSUE");
    Assert.assertNull(not_issue);
}
Also used : StatisticSubType(com.epam.ta.reportportal.database.entity.statistics.StatisticSubType) Test(org.junit.Test)

Aggregations

StatisticSubType (com.epam.ta.reportportal.database.entity.statistics.StatisticSubType)3 Test (org.junit.Test)3