diff --git a/dbeam-core/src/test/java/com/spotify/dbeam/avro/AvroSchemaMetadataProviderTest.java b/dbeam-core/src/test/java/com/spotify/dbeam/avro/AvroSchemaMetadataProviderTest.java index 993d1b1f..8855d257 100644 --- a/dbeam-core/src/test/java/com/spotify/dbeam/avro/AvroSchemaMetadataProviderTest.java +++ b/dbeam-core/src/test/java/com/spotify/dbeam/avro/AvroSchemaMetadataProviderTest.java @@ -73,13 +73,13 @@ public void verifyProviderWithSchema() { Schema providedSchema = createProvidedSchema(); AvroSchemaMetadataProvider provider = - new AvroSchemaMetadataProvider(providedSchema,null, "schemaNamespace", null); + new AvroSchemaMetadataProvider(providedSchema, null, "schemaNamespace", null); Assert.assertEquals("providedSchemaName", provider.avroSchemaName("temp1")); Assert.assertEquals("providedSchemaNamespace", provider.avroSchemaNamespace()); Assert.assertEquals("providedSchemaDoc", provider.avroDoc("temp2")); - Assert.assertEquals("Doc for field1", provider.getFieldDoc("field1","dummy")); - Assert.assertEquals("Doc for field2", provider.getFieldDoc("field2","dummy")); - Assert.assertEquals("default", provider.getFieldDoc("field3","default")); + Assert.assertEquals("Doc for field1", provider.getFieldDoc("field1", "dummy")); + Assert.assertEquals("Doc for field2", provider.getFieldDoc("field2", "dummy")); + Assert.assertEquals("default", provider.getFieldDoc("field3", "default")); } } diff --git a/docs/provided_schema.md b/docs/provided_schema.md index f3d72325..861a238c 100644 --- a/docs/provided_schema.md +++ b/docs/provided_schema.md @@ -24,7 +24,7 @@ The main purpose of using this approach is to supply own values for Avro record Avro record fields in the provided schema are looked up using field `name`, so it is important that the fields' names are the same as in the generated schema. Thus, it is recommended to copy the generated schema, update `doc` fields and use it as `--avroSchemaFilePath` input. -### A generated Avro schema +### A generated Avro schema example ``` { "type" : "record", @@ -52,7 +52,7 @@ Thus, it is recommended to copy the generated schema, update `doc` fields and us "tableName" : "table_numbers" } ``` -### A User-provided schema example +### A user-provided schema example ``` { "type" : "record", @@ -72,6 +72,6 @@ Thus, it is recommended to copy the generated schema, update `doc` fields and us "default" : null, "doc" : "Your own field description here. #DATA_LEVEL8" } - ], + ] } ```