예제 #1
0
 @Test
 public void bool() {
   Definitions d = newDefinitions();
   new Sample(
           d,
           "xsdtypes.Bool",
           ProtoMessage.Bool.newBuilder().setValue(true).build().toByteArray(),
           ".value",
           "true")
       .check();
 }
예제 #2
0
 private ProtoMessage.Bool toBool(boolean yesno) {
   return ProtoMessage.Bool.newBuilder().setValue(yesno).build();
 }