@Test public void testMissingType() { TestHelpers.assertThrows("Should reject missing mapping type", ValidationException.class, new Runnable() { @Override public void run() { ColumnMappingParser.parse("[ {\"source\": \"banana\"} ]"); } } ); }
public static ColumnMapping parse(String mappingDescriptor) { return buildColumnMapping(JsonUtil.parse(mappingDescriptor)); }
ColumnMappingParser { public static ColumnMapping parse(String mappingDescriptor) { return buildColumnMapping(JsonUtil.parse(mappingDescriptor)); } }
ColumnMappingParser { public static ColumnMapping parse(String mappingDescriptor) { return buildColumnMapping(JsonUtil.parse(mappingDescriptor)); }  }
ColumnMappingParser { public static ColumnMapping parse(String mappingDescriptor) { return buildColumnMapping(JsonUtil.parse(mappingDescriptor)); }  static ColumnMapping parse(String mappingDescriptor); static ColumnMapping parse(File file); static ColumnMapping parse(InputStream in); static boolean hasEmbeddedColumnMapping(Schema schema); static Schema removeEmbeddedMapping(Schema schema); static ColumnMapping parseFromSchema(Schema schema); static boolean hasEmbeddedFieldMappings(Schema schema); static ColumnMapping parseFromSchemaFields(Schema schema); static Schema embedColumnMapping(Schema schema, ColumnMapping mapping); static Map<Integer, FieldMapping> parseKeyMappingsFromSchemaFields(
      Schema schema); static FieldMapping parseFieldMapping(JsonNode mappingNode); static FieldMapping parseFieldMapping(String source, JsonNode mappingNode); static String toString(FieldMapping mapping); static String toString(ColumnMapping mapping, boolean pretty); }
ColumnMappingParser { public static ColumnMapping parse(String mappingDescriptor) { return buildColumnMapping(JsonUtil.parse(mappingDescriptor)); }  static ColumnMapping parse(String mappingDescriptor); static ColumnMapping parse(File file); static ColumnMapping parse(InputStream in); static boolean hasEmbeddedColumnMapping(Schema schema); static Schema removeEmbeddedMapping(Schema schema); static ColumnMapping parseFromSchema(Schema schema); static boolean hasEmbeddedFieldMappings(Schema schema); static ColumnMapping parseFromSchemaFields(Schema schema); static Schema embedColumnMapping(Schema schema, ColumnMapping mapping); static Map<Integer, FieldMapping> parseKeyMappingsFromSchemaFields(
      Schema schema); static FieldMapping parseFieldMapping(JsonNode mappingNode); static FieldMapping parseFieldMapping(String source, JsonNode mappingNode); static String toString(FieldMapping mapping); static String toString(ColumnMapping mapping, boolean pretty);  }