@Test public void should_3_use_default_wiremock_stubs() { assertEquals("REST maturity model", noteService.getNote(UUID.randomUUID().toString()).getTitle()); }
public Note getNote(String id) { URI resolvedUri = configuration.baseUri().resolve("/notes/").resolve(id); log.info("Retrieving note from {}", resolvedUri); return restTemplate.getForObject(resolvedUri, Note.class); }
NoteService { public Note getNote(String id) { URI resolvedUri = configuration.baseUri().resolve("/notes/").resolve(id); log.info("Retrieving note from {}", resolvedUri); return restTemplate.getForObject(resolvedUri, Note.class); } }
NoteService { public Note getNote(String id) { URI resolvedUri = configuration.baseUri().resolve("/notes/").resolve(id); log.info("Retrieving note from {}", resolvedUri); return restTemplate.getForObject(resolvedUri, Note.class); } @Autowired  NoteService(NoteServiceConfiguration configuration); }
NoteService { public Note getNote(String id) { URI resolvedUri = configuration.baseUri().resolve("/notes/").resolve(id); log.info("Retrieving note from {}", resolvedUri); return restTemplate.getForObject(resolvedUri, Note.class); } @Autowired  NoteService(NoteServiceConfiguration configuration); Note getNote(String id); }
NoteService { public Note getNote(String id) { URI resolvedUri = configuration.baseUri().resolve("/notes/").resolve(id); log.info("Retrieving note from {}", resolvedUri); return restTemplate.getForObject(resolvedUri, Note.class); } @Autowired  NoteService(NoteServiceConfiguration configuration); Note getNote(String id);  }