@Test public void should_be_able_to_read_mail_text() throws IOException { String mailText = mailController.readMailText(); assertThat(mailText, containsString("Das Ferienpass-Team Weimar")); }
protected String readMailText() throws IOException { return StreamUtils.copyToString(mailtext.getInputStream(), Charset.defaultCharset()); }
MailController { protected String readMailText() throws IOException { return StreamUtils.copyToString(mailtext.getInputStream(), Charset.defaultCharset()); } }
MailController { protected String readMailText() throws IOException { return StreamUtils.copyToString(mailtext.getInputStream(), Charset.defaultCharset()); }  }
MailController { protected String readMailText() throws IOException { return StreamUtils.copyToString(mailtext.getInputStream(), Charset.defaultCharset()); }  @RequestMapping(method = RequestMethod.POST) @ResponseStatus(HttpStatus.CREATED) @ResponseBody void sendMail(@RequestBody Teilnehmer teilnehmer); }
MailController { protected String readMailText() throws IOException { return StreamUtils.copyToString(mailtext.getInputStream(), Charset.defaultCharset()); }  @RequestMapping(method = RequestMethod.POST) @ResponseStatus(HttpStatus.CREATED) @ResponseBody void sendMail(@RequestBody Teilnehmer teilnehmer);  }