@Test public void testInputStreamIOException() { TestHelpers.assertThrows("Should pass DatasetIOException", DatasetIOException.class, new Runnable() { @Override public void run() { PartitionStrategyParser.parse(new InputStream() { @Override public int read() throws IOException { throw new IOException("InputStream angry."); } }); } } ); }
public static PartitionStrategy parse(String json) { return buildPartitionStrategy(JsonUtil.parse(json)); }
PartitionStrategyParser { public static PartitionStrategy parse(String json) { return buildPartitionStrategy(JsonUtil.parse(json)); } }
PartitionStrategyParser { public static PartitionStrategy parse(String json) { return buildPartitionStrategy(JsonUtil.parse(json)); }  }
PartitionStrategyParser { public static PartitionStrategy parse(String json) { return buildPartitionStrategy(JsonUtil.parse(json)); }  static PartitionStrategy parse(String json); static PartitionStrategy parse(File file); static PartitionStrategy parse(InputStream in); static boolean hasEmbeddedStrategy(Schema schema); static PartitionStrategy parseFromSchema(Schema schema); static Schema removeEmbeddedStrategy(Schema schema); static Schema embedPartitionStrategy(Schema schema, PartitionStrategy strategy); static String toString(PartitionStrategy strategy, boolean pretty); }
PartitionStrategyParser { public static PartitionStrategy parse(String json) { return buildPartitionStrategy(JsonUtil.parse(json)); }  static PartitionStrategy parse(String json); static PartitionStrategy parse(File file); static PartitionStrategy parse(InputStream in); static boolean hasEmbeddedStrategy(Schema schema); static PartitionStrategy parseFromSchema(Schema schema); static Schema removeEmbeddedStrategy(Schema schema); static Schema embedPartitionStrategy(Schema schema, PartitionStrategy strategy); static String toString(PartitionStrategy strategy, boolean pretty);  }