コード例 #1
0
 @Test
 public void testUpdateLocationWithAttributes() {
   double lat = coordinates.getLatitude();
   double lon = coordinates.getLongitude();
   long nowInSeconds = System.currentTimeMillis() / 1000;
   try {
     client.location(feed).update(oid1, lat, lon, nowInSeconds).execute();
   } catch (LocomatixServiceException lse) {
     assertTrue(false);
   }
 }
コード例 #2
0
 @Test
 public void testUpdateLocation() {
   try {
     double lat = coordinates.getLatitude();
     double lon = coordinates.getLongitude();
     long nowInSeconds = System.currentTimeMillis() / 1000;
     client.location(feed).update(oid1, lat, lon, nowInSeconds).execute();
   } catch (LocomatixServiceException lse) {
     System.out.println(lse);
     lse.printStackTrace();
     assertTrue(false);
   }
 }