Package com.eclipsesource.tabris

Examples of com.eclipsesource.tabris.TabrisClient


    assertSame( app, client.getService( App.class ) );
  }

  @Test
  public void testClientDeviceIsSingleton() {
    TabrisClient client = new TabrisClientImpl();

    ClientDevice device = client.getService( ClientDevice.class );

    assertSame( device, client.getService( ClientDevice.class ) );
  }
View Full Code Here


    assertSame( device, client.getService( ClientDevice.class ) );
  }

  @Test
  public void testCloudPushIsSingleton() {
    TabrisClient client = new TabrisClientImpl();

    CloudPush cloudPush = client.getService( CloudPush.class );

    assertSame( cloudPush, client.getService( CloudPush.class ) );
  }
View Full Code Here

    assertSame( cloudPush, client.getService( CloudPush.class ) );
  }

  @Test
  public void testClientInfoIsSingleton() {
    TabrisClient client = new TabrisClientImpl();

    ClientInfo info = client.getService( ClientInfo.class );

    assertSame( info, client.getService( ClientInfo.class ) );
  }
View Full Code Here

    assertSame( info, client.getService( ClientInfo.class ) );
  }

  @Test
  public void testClientStoreIsSingleton() {
    TabrisClient client = new TabrisClientImpl();

    ClientStore store = client.getService( ClientStore.class );

    assertSame( store, client.getService( ClientStore.class ) );
  }
View Full Code Here

    assertSame( store, client.getService( ClientStore.class ) );
  }

  @Test
  public void testCameraIsSingleton() {
    TabrisClient client = new TabrisClientImpl();

    Camera camera = client.getService( Camera.class );
    Camera camera2 = client.getService( Camera.class );

    assertSame( camera, camera2 );
  }
View Full Code Here

    assertSame( camera, camera2 );
  }

  @Test
  public void testGeolocationIsSingleton() {
    TabrisClient client = new TabrisClientImpl();

    Geolocation geolocation = client.getService( Geolocation.class );
    Geolocation geolocation2 = client.getService( Geolocation.class );

    assertSame( geolocation, geolocation2 );
  }
View Full Code Here

    assertSame( geolocation, geolocation2 );
  }

  @Test
  public void testHasPrintService() {
    TabrisClient client = new TabrisClientImpl();

    Printer print = client.getService( Printer.class );

    assertNotNull( print );
  }
View Full Code Here

    assertNotNull( print );
  }

  @Test
  public void testPrintServiceIsSingleton() {
    TabrisClient client = new TabrisClientImpl();

    Printer print1 = client.getService( Printer.class );
    Printer print2 = client.getService( Printer.class );

    assertSame( print1, print2 );
  }
View Full Code Here

    }
  }

  @Override
  public Client getClient() {
    return new TabrisClient();
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.TabrisClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.