@Test public void shouldConvertSchemaToInternalCorrectly() { final tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock internalBlock = dataStructureUtil.randomSignedBeaconBlock(1); final SignedBeaconBlock apiBlock = new SignedBeaconBlock(internalBlock); assertThat(apiBlock.asInternalSignedBeaconBlock()) .usingRecursiveComparison() .isEqualTo(internalBlock); }
public tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock asInternalSignedBeaconBlock() { return new tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock( message.asInternalBeaconBlock(), signature.asInternalBLSSignature()); }
SignedBeaconBlock { public tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock asInternalSignedBeaconBlock() { return new tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock( message.asInternalBeaconBlock(), signature.asInternalBLSSignature()); } }
SignedBeaconBlock { public tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock asInternalSignedBeaconBlock() { return new tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock( message.asInternalBeaconBlock(), signature.asInternalBLSSignature()); } SignedBeaconBlock(
      tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock internalBlock); @JsonCreator  SignedBeaconBlock(
      @JsonProperty("message") final BeaconBlock message,
      @JsonProperty("signature") final BLSSignature signature); }
SignedBeaconBlock { public tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock asInternalSignedBeaconBlock() { return new tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock( message.asInternalBeaconBlock(), signature.asInternalBLSSignature()); } SignedBeaconBlock(
      tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock internalBlock); @JsonCreator  SignedBeaconBlock(
      @JsonProperty("message") final BeaconBlock message,
      @JsonProperty("signature") final BLSSignature signature); tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock asInternalSignedBeaconBlock(); }
SignedBeaconBlock { public tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock asInternalSignedBeaconBlock() { return new tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock( message.asInternalBeaconBlock(), signature.asInternalBLSSignature()); } SignedBeaconBlock(
      tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock internalBlock); @JsonCreator  SignedBeaconBlock(
      @JsonProperty("message") final BeaconBlock message,
      @JsonProperty("signature") final BLSSignature signature); tech.pegasys.teku.datastructures.blocks.SignedBeaconBlock asInternalSignedBeaconBlock(); final BeaconBlock message; @Schema(type = "string", format = "byte", description = DESCRIPTION_BYTES96)
  final BLSSignature signature; }