Search in sources :

Example 1 with Mode

use of com.epam.ta.reportportal.ws.model.launch.Mode in project commons-dao by reportportal.

the class PreconditionsTest method hasModePositive.

@Test
void hasModePositive() {
    Mode mode = Mode.DEFAULT;
    Assertions.assertTrue(Preconditions.hasMode(mode).test(filterConditionWithMode(mode)));
}
Also used : Mode(com.epam.ta.reportportal.ws.model.launch.Mode) Test(org.junit.jupiter.api.Test)

Example 2 with Mode

use of com.epam.ta.reportportal.ws.model.launch.Mode in project commons-dao by reportportal.

the class PreconditionsTest method hasModeNegative.

@Test
void hasModeNegative() {
    Mode mode = Mode.DEFAULT;
    Mode anotherMode = Mode.DEBUG;
    Assertions.assertFalse(Preconditions.hasMode(mode).test(filterConditionWithMode(anotherMode)));
}
Also used : Mode(com.epam.ta.reportportal.ws.model.launch.Mode) Test(org.junit.jupiter.api.Test)

Aggregations

Mode (com.epam.ta.reportportal.ws.model.launch.Mode)2 Test (org.junit.jupiter.api.Test)2