/** * Test that calling FlexClientManager.getFlexClient(id) with a new id, returns a new FlexClient * instance with the correct id. */ public void testGetFlexClientNewId() { String id = "def"; FlexClient client = manager.getFlexClient(id); Assert.assertNotNull(client); Assert.assertEquals(id, client.getId()); }
/** * Test that calling FlexClientManager.getFlexClient(id) with an id for an existing FlexClient, * returns the FlexClient instance with the correct id. */ public void testGetFlexClientExistingId() { String id = "ghi"; manager.createFlexClient(id); FlexClient client = manager.getFlexClient(id); Assert.assertEquals(id, client.getId()); }
/** * Test that FlexClientManager.createFlexClient(id) returns a FlexClient instance with the correct * id. */ public void testCreateFlexClientWithId() { String id = "abc"; FlexClient client = manager.createFlexClient(id); Assert.assertEquals(id, client.getId()); }