Package com.eclipsesource.tabris.device.ClientDevice

Examples of com.eclipsesource.tabris.device.ClientDevice.ConnectionType


    ClientDeviceImpl deviceImpl = new ClientDeviceImpl();
    JsonObject properties = new JsonObject();
    properties.add( "connectionType", "WIFI" );

    environment.dispatchSetOnServiceObject( properties );
    ConnectionType connectionType = deviceImpl.getConnectionType();

    assertSame( ConnectionType.WIFI, connectionType );
  }
View Full Code Here


    ClientDeviceImpl deviceImpl = new ClientDeviceImpl();
    JsonObject properties = new JsonObject();
    properties.add( "connectionType", "CELLULAR" );

    environment.dispatchSetOnServiceObject( properties );
    ConnectionType connectionType = deviceImpl.getConnectionType();

    assertSame( ConnectionType.CELLULAR, connectionType );
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.device.ClientDevice.ConnectionType

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.