assertEquals(7, app.getAcceptedMessageTypes().length);
config.removeDevice("Test-Device-1");
}
private static Device createDevice(String name, String appName) throws Exception {
Device device = new Device(name);
HL7DeviceExtension hl7Ext = new HL7DeviceExtension();
device.addDeviceExtension(hl7Ext);
Connection conn = createConn("host.dcm4che.org", 2575);
device.addConnection(conn);
HL7Application app = createHL7App(appName, conn);
hl7Ext.addHL7Application(app);
return device ;
}