@Test public void testChangeCharset() throws Exception { ChangeCharEncodingService srv = new ChangeCharEncodingService(); srv.setCharEncoding("iso-8859-1"); AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage("Hello"); assertNull(msg.getContentEncoding()); execute(srv, msg); assertEquals(Charset.forName("iso-8859-1"), Charset.forName(msg.getContentEncoding())); }
public void setCharEncoding(String s) { charEncoding = s; }
ChangeCharEncodingService extends ServiceImp { public void setCharEncoding(String s) { charEncoding = s; } }
ChangeCharEncodingService extends ServiceImp { public void setCharEncoding(String s) { charEncoding = s; } ChangeCharEncodingService();  ChangeCharEncodingService(String cs); }
ChangeCharEncodingService extends ServiceImp { public void setCharEncoding(String s) { charEncoding = s; } ChangeCharEncodingService();  ChangeCharEncodingService(String cs); @Override void doService(AdaptrisMessage msg); String getCharEncoding(); void setCharEncoding(String s); @Override void prepare(); }
ChangeCharEncodingService extends ServiceImp { public void setCharEncoding(String s) { charEncoding = s; } ChangeCharEncodingService();  ChangeCharEncodingService(String cs); @Override void doService(AdaptrisMessage msg); String getCharEncoding(); void setCharEncoding(String s); @Override void prepare();  }