Search in sources :

Example 1 with JsonSocketService

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));
}
Also used : JsonSocketService(jmri.server.json.JsonSocketService) JsonMockConnection(jmri.server.json.JsonMockConnection) JsonConnection(jmri.server.json.JsonConnection) Test(org.junit.Test)

Aggregations

JsonConnection (jmri.server.json.JsonConnection)1 JsonMockConnection (jmri.server.json.JsonMockConnection)1 JsonSocketService (jmri.server.json.JsonSocketService)1 Test (org.junit.Test)1