@Test(expected = MetaStoreException.class) public void dropPartition_shouldWrapTException() throws Exception { doThrow(TException.class).when(metaStoreClient).dropPartition(DATABASE, TABLE, PARTITION_VALUES, false); underTest.dropPartition(TABLE, PARTITION_VALUES); }
public void dropPartition(String tableName, List<String> partitionValues) { try { metaStoreClient.dropPartition(databaseName, tableName, partitionValues, false); } catch (TException e) { throw new MetaStoreException(e); } }
HivePartitionManager { public void dropPartition(String tableName, List<String> partitionValues) { try { metaStoreClient.dropPartition(databaseName, tableName, partitionValues, false); } catch (TException e) { throw new MetaStoreException(e); } } }
HivePartitionManager { public void dropPartition(String tableName, List<String> partitionValues) { try { metaStoreClient.dropPartition(databaseName, tableName, partitionValues, false); } catch (TException e) { throw new MetaStoreException(e); } }  }
HivePartitionManager { public void dropPartition(String tableName, List<String> partitionValues) { try { metaStoreClient.dropPartition(databaseName, tableName, partitionValues, false); } catch (TException e) { throw new MetaStoreException(e); } }  Optional<Partition> addPartition(
      String tableName,
      List<String> partitionValues,
      String location,
      Map<String, String> parameters); Optional<Partition> addPartition(String tableName, List<String> partitionValues, String location); void dropPartition(String tableName, List<String> partitionValues); }
HivePartitionManager { public void dropPartition(String tableName, List<String> partitionValues) { try { metaStoreClient.dropPartition(databaseName, tableName, partitionValues, false); } catch (TException e) { throw new MetaStoreException(e); } }  Optional<Partition> addPartition(
      String tableName,
      List<String> partitionValues,
      String location,
      Map<String, String> parameters); Optional<Partition> addPartition(String tableName, List<String> partitionValues, String location); void dropPartition(String tableName, List<String> partitionValues);  }