Special Client implementation for Tabris. Can be obtained using RWT.getClient(). Current services are:
3435363738394041424344
@Rule public TabrisEnvironment environment = new TabrisEnvironment(); @Test public void testHasAppLauncherService() { TabrisClient client = new TabrisClientImpl(); AppLauncher launcher = client.getService( AppLauncher.class ); assertNotNull( launcher ); }
4344454647484950515253
assertNotNull( launcher ); } @Test public void testHasAppService() { TabrisClient client = new TabrisClientImpl(); App app = client.getService( App.class ); assertNotNull( app ); }
5253545556575859606162
assertNotNull( app ); } @Test public void testHasClientDeviceService() { TabrisClient client = new TabrisClientImpl(); ClientDevice device = client.getService( ClientDevice.class ); assertNotNull( device ); }
6162636465666768697071
assertNotNull( device ); } @Test public void testHasClientInfoService() { TabrisClient client = new TabrisClientImpl(); ClientInfo info = client.getService( ClientInfo.class ); assertNotNull( info ); }
7071727374757677787980
assertNotNull( info ); } @Test public void testHasClientStoreService() { TabrisClient client = new TabrisClientImpl(); ClientStore store = client.getService( ClientStore.class ); assertNotNull( store ); }
7980818283848586878889
assertNotNull( store ); } @Test public void testHasCameraService() { TabrisClient client = new TabrisClientImpl(); Camera camera = client.getService( Camera.class ); assertNotNull( camera ); }
8889909192939495969798
assertNotNull( camera ); } @Test public void testHasCloudPushService() { TabrisClient client = new TabrisClientImpl(); CloudPush cloudPush = client.getService( CloudPush.class ); assertNotNull( cloudPush ); }
979899100101102103104105106107
assertNotNull( cloudPush ); } @Test public void testHasGeolocationService() { TabrisClient client = new TabrisClientImpl(); Geolocation geolocation = client.getService( Geolocation.class ); assertNotNull( geolocation ); }
106107108109110111112113114115116
assertNotNull( geolocation ); } @Test public void testAppLauncherIsSingleton() { TabrisClient client = new TabrisClientImpl(); AppLauncher launcher = client.getService( AppLauncher.class ); assertSame( launcher, client.getService( AppLauncher.class ) ); }
115116117118119120121122123124125
assertSame( launcher, client.getService( AppLauncher.class ) ); } @Test public void testAppIsSingleton() { TabrisClient client = new TabrisClientImpl(); App app = client.getService( App.class ); assertSame( app, client.getService( App.class ) ); }