示例#1
0
 @Test
 public void encodesTheConstantValueAsIs() throws IOException {
   it.encodeConstant(out);
   assertThat(bytesOut.toByteArray(), is(encoded));
 }
示例#2
0
 @Test
 public void encodesTheEmptyConstant() throws IOException {
   it = new ConstantType("");
   it.encodeConstant(out);
   assertThat(bytesOut.toByteArray(), is(new byte[] {}));
 }