@Test
@Transactional
public void getPhotoLocationBeacon() throws Exception {
// Initialize the database
photoLocationBeaconRepository.saveAndFlush(photoLocationBeacon);
// Get the photoLocationBeacon
restPhotoLocationBeaconMockMvc.perform(get("/api/photoLocationBeacons/{id}", photoLocationBeacon.getId()))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON))
.andExpect(jsonPath("$.id").value(photoLocationBeacon.getId().intValue()))
.andExpect(jsonPath("$.x").value(DEFAULT_X))
.andExpect(jsonPath("$.y").value(DEFAULT_Y))
.andExpect(jsonPath("$.tolerance").value(DEFAULT_TOLERANCE));
}
PhotoLocationBeaconResourceTest.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:buenojo
作者:
评论列表
文章目录