Пример #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[] {}));
 }