use of org.zalando.nakadi.domain.EventTypeSchemaBase in project nakadi by zalando.
the class SchemaRepositoryTest method buildEventWithMultipleSchemas.
private void buildEventWithMultipleSchemas(final String name) throws Exception {
final EventTypeSchemaBase schemaBase = new EventTypeSchemaBase(EventTypeSchemaBase.Type.JSON_SCHEMA, "schema");
final EventType eventType = EventTypeTestBuilder.builder().name(name).build();
insertEventType(eventType);
eventType.setSchema(new EventTypeSchema(schemaBase, "1.0.2", DateTime.parse("2016-12-07T10:44:16.378+01:00")));
insertSchema(eventType);
eventType.setSchema(new EventTypeSchema(schemaBase, "2.10.3", DateTime.parse("2016-12-07T10:54:16.778+01:00")));
insertSchema(eventType);
eventType.setSchema(new EventTypeSchema(schemaBase, "10.0.0", DateTime.parse("2016-12-07T10:57:16.200+01:00")));
insertSchema(eventType);
}
Aggregations