Search in sources :

Example 11 with Protocol

use of org.opensmartgridplatform.adapter.protocol.dlms.domain.entities.Protocol in project open-smart-grid-platform by OSGP.

the class ProtocolServiceLookupTest method lookupGetService.

@Test
public void lookupGetService() throws ProtocolAdapterException {
    // SETUP
    final Protocol protocol = Protocol.DSMR_4_2_2;
    // CALL
    final GetConfigurationObjectService result = this.instance.lookupGetService(protocol);
    // VERIFY
    assertThat(result).isSameAs(this.getService);
}
Also used : Protocol(org.opensmartgridplatform.adapter.protocol.dlms.domain.entities.Protocol) Test(org.junit.jupiter.api.Test)

Aggregations

Protocol (org.opensmartgridplatform.adapter.protocol.dlms.domain.entities.Protocol)11 Test (org.junit.jupiter.api.Test)6 DlmsDevice (org.opensmartgridplatform.adapter.protocol.dlms.domain.entities.DlmsDevice)5 AttributeAddress (org.openmuc.jdlms.AttributeAddress)4 ObisCode (org.openmuc.jdlms.ObisCode)4 DataObject (org.openmuc.jdlms.datatypes.DataObject)4 MessageMetadata (org.opensmartgridplatform.shared.infra.jms.MessageMetadata)4 ArrayList (java.util.ArrayList)3 Arrays (java.util.Arrays)3 List (java.util.List)3 DateTime (org.joda.time.DateTime)3 BeforeEach (org.junit.jupiter.api.BeforeEach)3 SelectiveAccessDescription (org.openmuc.jdlms.SelectiveAccessDescription)3 DlmsHelper (org.opensmartgridplatform.adapter.protocol.dlms.domain.commands.utils.DlmsHelper)3 ConfigurationObjectDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.ConfigurationObjectDto)3 Calendar (java.util.Calendar)2 Collections (java.util.Collections)2 Date (java.util.Date)2 GregorianCalendar (java.util.GregorianCalendar)2 TimeZone (java.util.TimeZone)2