Search in sources :

Example 6 with PollingParameters

use of com.axway.ats.rbv.PollingParameters in project ats-framework by Axway.

the class Test_PollingParameters method testGetters.

@Test
public void testGetters() {
    PollingParameters params = new PollingParameters(100, 200, 5);
    assertTrue(params.getInitialDelay() == 100);
    assertTrue(params.getPollInterval() == 200);
    assertTrue(params.getPollAttempts() == 5);
}
Also used : PollingParameters(com.axway.ats.rbv.PollingParameters) Test(org.junit.Test)

Example 7 with PollingParameters

use of com.axway.ats.rbv.PollingParameters in project ats-framework by Axway.

the class Test_PollingParameters method testSetters.

@Test
public void testSetters() {
    PollingParameters params = new PollingParameters(10, 20, 1);
    params.setInitialDelay(100);
    params.setPollInterval(200);
    params.setPollAttempts(5);
    assertTrue(params.getInitialDelay() == 100);
    assertTrue(params.getPollInterval() == 200);
    assertTrue(params.getPollAttempts() == 5);
}
Also used : PollingParameters(com.axway.ats.rbv.PollingParameters) Test(org.junit.Test)

Aggregations

PollingParameters (com.axway.ats.rbv.PollingParameters)7 Test (org.junit.Test)5 Monitor (com.axway.ats.rbv.Monitor)4 SimpleMonitorListener (com.axway.ats.rbv.SimpleMonitorListener)4 DbSearchTerm (com.axway.ats.rbv.db.DbSearchTerm)4 DbStorage (com.axway.ats.rbv.db.DbStorage)4 MockDbProvider (com.axway.ats.rbv.db.MockDbProvider)4 ArrayList (java.util.ArrayList)4 DbFieldsRule (com.axway.ats.rbv.db.rules.DbFieldsRule)3 DbStringFieldRule (com.axway.ats.rbv.db.rules.DbStringFieldRule)3 Matchable (com.axway.ats.rbv.storage.Matchable)3 ConfigurationException (com.axway.ats.config.exceptions.ConfigurationException)1 RbvException (com.axway.ats.rbv.model.RbvException)1 RbvVerificationException (com.axway.ats.rbv.model.RbvVerificationException)1 Before (org.junit.Before)1