@Test public void shouldReturnNotFound() throws Exception { mockMvc.perform(MockMvcRequestBuilders .get("/api/v1/blueprint/abc") .accept(MediaType.APPLICATION_JSON_VALUE) .contentType(MediaType.APPLICATION_JSON_VALUE)) .andDo(MockMvcResultHandlers.print()) .andExpect(MockMvcResultMatchers.status().isNotFound()); }
@Override public ResponseEntity<BlueprintResponse> get(String key) { return ResponseEntity.ok(blueprintService.get(key)); }
BlueprintController implements BlueprintApi { @Override public ResponseEntity<BlueprintResponse> get(String key) { return ResponseEntity.ok(blueprintService.get(key)); } }
BlueprintController implements BlueprintApi { @Override public ResponseEntity<BlueprintResponse> get(String key) { return ResponseEntity.ok(blueprintService.get(key)); }  }
BlueprintController implements BlueprintApi { @Override public ResponseEntity<BlueprintResponse> get(String key) { return ResponseEntity.ok(blueprintService.get(key)); }  @Override ResponseEntity<BlueprintResponse> create(BlueprintRequest request); @Override ResponseEntity<BlueprintResponse> get(String key); }
BlueprintController implements BlueprintApi { @Override public ResponseEntity<BlueprintResponse> get(String key) { return ResponseEntity.ok(blueprintService.get(key)); }  @Override ResponseEntity<BlueprintResponse> create(BlueprintRequest request); @Override ResponseEntity<BlueprintResponse> get(String key);  }