コード例 #1
0
 @Test
 public void encodingTest() {
   Assert.assertEquals("UTF-8", dao.getEncoding());
   dao.setEncoding("ENCODING");
   Assert.assertEquals("ENCODING", dao.getEncoding());
 }
コード例 #2
0
  @Test(expected = RuntimeException.class)
  public void readUnsupportedEncodingTest() throws Exception {
    dao.setEncoding("JIBBERISH");

    dao.read("TITLE");
  }