Search in sources :

Example 6 with CdmaDevice

use of org.opensmartgridplatform.domain.core.valueobjects.CdmaDevice in project open-smart-grid-platform by OSGP.

the class CdmaRunTest method twoBatches.

@Test
public void twoBatches() {
    // The CDMA run will contain two batches for mast segment 200/1.
    // Within the timeout of 1000 milliseconds, only the send for device cd1
    // should take place.
    final CdmaRun run = new CdmaRun();
    run.add(new CdmaDevice("cd1", this.loopbackAddress, "200/1", (short) 1));
    run.add(new CdmaDevice("cd2", this.loopbackAddress, "200/1", (short) 2));
    this.service.setTransitionForCdmaRun(run, "LianderNetManagement", "two-batches-cdma-run-test", TransitionType.NIGHT_DAY);
    this.verifySentMessages(1);
}
Also used : CdmaRun(org.opensmartgridplatform.adapter.domain.publiclighting.application.valueobjects.CdmaRun) CdmaDevice(org.opensmartgridplatform.domain.core.valueobjects.CdmaDevice) Test(org.junit.jupiter.api.Test)

Aggregations

CdmaRun (org.opensmartgridplatform.adapter.domain.publiclighting.application.valueobjects.CdmaRun)6 CdmaDevice (org.opensmartgridplatform.domain.core.valueobjects.CdmaDevice)6 Test (org.junit.jupiter.api.Test)5 CdmaMastSegment (org.opensmartgridplatform.adapter.domain.publiclighting.application.valueobjects.CdmaMastSegment)1