Search in sources :

Example 16 with Expiration

use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration in project kie-wb-common by kiegroup.

the class ExpirationTypeOracleTest method testMonthRepeatableUntilStateChangesNotification.

@Test
public void testMonthRepeatableUntilStateChangesNotification() {
    Expiration result = oracle.guess("R/P33M");
    assertEquals(Expiration.TIME_PERIOD, result);
}
Also used : Expiration(org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration) Test(org.junit.Test)

Example 17 with Expiration

use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration in project kie-wb-common by kiegroup.

the class ExpirationTypeOracleTest method testNotificationAndTZ0245.

@Test
public void testNotificationAndTZ0245() {
    Expiration result = oracle.guess("2019-07-14T13:34-02:45");
    assertEquals(Expiration.DATETIME, result);
}
Also used : Expiration(org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration) Test(org.junit.Test)

Example 18 with Expiration

use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration in project kie-wb-common by kiegroup.

the class ExpirationTypeOracleTest method testDurations.

@Test
public void testDurations() {
    Expiration result = oracle.guess("P1Y2M5DT4H5M8S6MS");
    assertEquals(Expiration.EXPRESSION, result);
}
Also used : Expiration(org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration) Test(org.junit.Test)

Example 19 with Expiration

use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration in project kie-wb-common by kiegroup.

the class ExpirationTypeOracleTest method test1DigExpiresAtNotificationRow.

@Test
public void test1DigExpiresAtNotificationRow() {
    Expiration result = oracle.guess("1d");
    assertEquals(Expiration.EXPRESSION, result);
}
Also used : Expiration(org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration) Test(org.junit.Test)

Example 20 with Expiration

use of org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration in project kie-wb-common by kiegroup.

the class ExpirationTypeOracleTest method testRepeatingIntervalsY.

@Test
public void testRepeatingIntervalsY() {
    Expiration result = oracle.guess("R2/P1YT20H13M");
    assertEquals(Expiration.EXPRESSION, result);
}
Also used : Expiration(org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration) Test(org.junit.Test)

Aggregations

Expiration (org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration)31 Test (org.junit.Test)29 Option (org.gwtbootstrap3.extras.select.client.ui.Option)1