@Test public void createSerializableAddPartitionEvent() { AddPartitionEvent event = mockEvent(AddPartitionEvent.class); when(event.getPartitionIterator()).thenReturn(partitionIterator); ApiaryListenerEvent serializableEvent = factory.create(event); assertCommon(serializableEvent); assertThat(serializableEvent.getEventType()).isSameAs(EventType.ON_ADD_PARTITION); }
public ApiaryCreateTableEvent create(CreateTableEvent event) { return new ApiaryCreateTableEvent(addParams(event)); }
ApiaryListenerEventFactory { public ApiaryCreateTableEvent create(CreateTableEvent event) { return new ApiaryCreateTableEvent(addParams(event)); } }
ApiaryListenerEventFactory { public ApiaryCreateTableEvent create(CreateTableEvent event) { return new ApiaryCreateTableEvent(addParams(event)); }  }
ApiaryListenerEventFactory { public ApiaryCreateTableEvent create(CreateTableEvent event) { return new ApiaryCreateTableEvent(addParams(event)); }  ApiaryCreateTableEvent create(CreateTableEvent event); ApiaryAlterTableEvent create(AlterTableEvent event); ApiaryDropTableEvent create(DropTableEvent event); ApiaryAddPartitionEvent create(AddPartitionEvent event); ApiaryAlterPartitionEvent create(AlterPartitionEvent event); ApiaryDropPartitionEvent create(DropPartitionEvent event); ApiaryInsertEvent create(InsertEvent event); }
ApiaryListenerEventFactory { public ApiaryCreateTableEvent create(CreateTableEvent event) { return new ApiaryCreateTableEvent(addParams(event)); }  ApiaryCreateTableEvent create(CreateTableEvent event); ApiaryAlterTableEvent create(AlterTableEvent event); ApiaryDropTableEvent create(DropTableEvent event); ApiaryAddPartitionEvent create(AddPartitionEvent event); ApiaryAlterPartitionEvent create(AlterPartitionEvent event); ApiaryDropPartitionEvent create(DropPartitionEvent event); ApiaryInsertEvent create(InsertEvent event);  }