@Test public void onCreateTableWithEmptyTableParams() throws MetaException { table.setParameters(Maps.newHashMap()); CreateTableEvent event = mock(CreateTableEvent.class); when(event.getStatus()).thenReturn(true); when(event.getTable()).thenReturn(table); snsListener.onCreateTable(event); verify(snsClient).publish(requestCaptor.capture()); PublishRequest publishRequest = requestCaptor.getValue(); assertThat(publishRequest.getMessage(), is("{\"protocolVersion\":\"" + PROTOCOL_VERSION + "\",\"eventType\":\"" + EventType.CREATE_TABLE.toString() + "\",\"dbName\":\"some_db\",\"tableName\":\"some_table\",\"tableLocation\":\"s3: }
@Override public void onCreateTable(CreateTableEvent event) throws MetaException { if (event.getStatus() == false) { return; } publishEvent(EventType.CREATE_TABLE, event.getTable(), null, null, null); }
ApiarySnsListener extends MetaStoreEventListener { @Override public void onCreateTable(CreateTableEvent event) throws MetaException { if (event.getStatus() == false) { return; } publishEvent(EventType.CREATE_TABLE, event.getTable(), null, null, null); } }
ApiarySnsListener extends MetaStoreEventListener { @Override public void onCreateTable(CreateTableEvent event) throws MetaException { if (event.getStatus() == false) { return; } publishEvent(EventType.CREATE_TABLE, event.getTable(), null, null, null); } ApiarySnsListener(Configuration config);   ApiarySnsListener(Configuration config, AmazonSNS snsClient); }
ApiarySnsListener extends MetaStoreEventListener { @Override public void onCreateTable(CreateTableEvent event) throws MetaException { if (event.getStatus() == false) { return; } publishEvent(EventType.CREATE_TABLE, event.getTable(), null, null, null); } ApiarySnsListener(Configuration config);   ApiarySnsListener(Configuration config, AmazonSNS snsClient); @Override void onCreateTable(CreateTableEvent event); @Override void onDropTable(DropTableEvent event); @Override void onAlterTable(AlterTableEvent event); @Override void onAddPartition(AddPartitionEvent event); @Override void onDropPartition(DropPartitionEvent event); @Override void onInsert(InsertEvent event); @Override void onAlterPartition(AlterPartitionEvent event); }
ApiarySnsListener extends MetaStoreEventListener { @Override public void onCreateTable(CreateTableEvent event) throws MetaException { if (event.getStatus() == false) { return; } publishEvent(EventType.CREATE_TABLE, event.getTable(), null, null, null); } ApiarySnsListener(Configuration config);   ApiarySnsListener(Configuration config, AmazonSNS snsClient); @Override void onCreateTable(CreateTableEvent event); @Override void onDropTable(DropTableEvent event); @Override void onAlterTable(AlterTableEvent event); @Override void onAddPartition(AddPartitionEvent event); @Override void onDropPartition(DropPartitionEvent event); @Override void onInsert(InsertEvent event); @Override void onAlterPartition(AlterPartitionEvent event);  }