Search in sources :

Example 1 with Service

use of com.ibm.streamsx.health.vines.model.Service in project streamsx.health by IBMStreams.

the class Tests method serviceIdTest.

@Test
public void serviceIdTest() {
    Vines vines = VinesMessageParser.fromJson(simpleMessage);
    ServiceId serviceId = vines.getData().getBody().getServiceId();
    Assert.assertTrue(serviceId.containsKey("Dopamine 475"));
    Service service = serviceId.get("Dopamine 475");
    Assert.assertEquals("2222", service.getCode());
}
Also used : Vines(com.ibm.streamsx.health.vines.model.Vines) Service(com.ibm.streamsx.health.vines.model.Service) ServiceId(com.ibm.streamsx.health.vines.model.ServiceId) Test(org.junit.Test)

Aggregations

Service (com.ibm.streamsx.health.vines.model.Service)1 ServiceId (com.ibm.streamsx.health.vines.model.ServiceId)1 Vines (com.ibm.streamsx.health.vines.model.Vines)1 Test (org.junit.Test)1