@Test void testUpcasterBuilderFailsForNullUpcastedPayloadType() { EventTypeUpcaster.Builder testSubject = EventTypeUpcaster.from(EXPECTED_PAYLOAD_TYPE, EXPECTED_REVISION); assertThrows( AxonConfigurationException.class, () -> testSubject.to((String) null, UPCASTED_REVISION) ); }
public static Builder from(Class<?> payloadType, String revision) { assertNonNull(payloadType, "The payloadType may not be null"); return from(payloadType.getName(), revision); }
EventTypeUpcaster extends SingleEventUpcaster { public static Builder from(Class<?> payloadType, String revision) { assertNonNull(payloadType, "The payloadType may not be null"); return from(payloadType.getName(), revision); } }
EventTypeUpcaster extends SingleEventUpcaster { public static Builder from(Class<?> payloadType, String revision) { assertNonNull(payloadType, "The payloadType may not be null"); return from(payloadType.getName(), revision); } EventTypeUpcaster(String expectedPayloadType,
                             String expectedRevision,
                             String upcastedPayloadType,
                             String upcastedRevision); }
EventTypeUpcaster extends SingleEventUpcaster { public static Builder from(Class<?> payloadType, String revision) { assertNonNull(payloadType, "The payloadType may not be null"); return from(payloadType.getName(), revision); } EventTypeUpcaster(String expectedPayloadType,
                             String expectedRevision,
                             String upcastedPayloadType,
                             String upcastedRevision); static Builder from(Class<?> payloadType, String revision); static Builder from(String payloadType, String revision); }
EventTypeUpcaster extends SingleEventUpcaster { public static Builder from(Class<?> payloadType, String revision) { assertNonNull(payloadType, "The payloadType may not be null"); return from(payloadType.getName(), revision); } EventTypeUpcaster(String expectedPayloadType,
                             String expectedRevision,
                             String upcastedPayloadType,
                             String upcastedRevision); static Builder from(Class<?> payloadType, String revision); static Builder from(String payloadType, String revision);  }