TrackRecordingServiceTest.java 文件源码

java
阅读 16 收藏 0 点赞 0 评论 0

项目:mytracks 作者:
@MediumTest
public void testInsertWaypointMarker_validWaypoint() throws Exception {
  createDummyTrack(123L, -1L, true);

  ITrackRecordingService service = bindAndGetService(createStartIntent());
  assertTrue(service.isRecording());
  insertLocation(service);

  assertEquals(1, service.insertWaypoint(WaypointCreationRequest.DEFAULT_WAYPOINT));
  Waypoint wpt = providerUtils.getWaypoint(1);
  assertEquals(getContext().getString(R.string.marker_waypoint_icon_url), wpt.getIcon());
  assertEquals(getContext().getString(R.string.marker_name_format, 1), wpt.getName());
  assertEquals(WaypointType.WAYPOINT, wpt.getType());
  assertEquals(123L, wpt.getTrackId());
  assertEquals(0.0, wpt.getLength());
  assertNotNull(wpt.getLocation());
  assertNull(wpt.getTripStatistics());
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号