use of org.opensmartgridplatform.adapter.domain.publiclighting.application.valueobjects.CdmaMastSegment in project open-smart-grid-platform by OSGP.
the class CdmaMastSegmentTest method newCdmaMastSegment.
@Test
public void newCdmaMastSegment() {
final CdmaMastSegment mastSegment = new CdmaMastSegment("200/1");
final CdmaBatchDevice cd1 = new CdmaBatchDevice("cd1", this.loopbackAddress);
mastSegment.addCdmaBatchDevice((short) 1, cd1);
assertThat(mastSegment.getMastSegment()).isEqualTo("200/1");
assertThat(mastSegment.empty()).withFailMessage("MastSegment should contain 1 device").isFalse();
}
use of org.opensmartgridplatform.adapter.domain.publiclighting.application.valueobjects.CdmaMastSegment in project open-smart-grid-platform by OSGP.
the class CdmaMastSegmentTest method equalsWhenSegmentNameMatch.
@Test
public void equalsWhenSegmentNameMatch() {
final CdmaMastSegment mastSegment1 = new CdmaMastSegment("200/1");
final CdmaMastSegment mastSegment2 = new CdmaMastSegment("200/1");
assertThat(mastSegment1).withFailMessage("Mast segments with the same name should be equal").isEqualTo(mastSegment2);
}
Aggregations