use of jmri.server.json.JsonSocketService in project JMRI by JMRI.
the class JsonThrottleServiceFactoryTest method testGetSocketService.
/**
* Test of getSocketService method, of class JsonThrottleServiceFactory.
*/
@Test
public void testGetSocketService() {
JsonConnection connection = new JsonMockConnection((DataOutputStream) null);
JsonThrottleServiceFactory instance = new JsonThrottleServiceFactory();
JsonSocketService result = instance.getSocketService(connection);
Assert.assertNotNull(result);
Assert.assertTrue(JsonSocketService.class.isInstance(result));
}
Aggregations