From 0b838851d96c10ebab5589cb4784d56ee3005629 Mon Sep 17 00:00:00 2001 From: Meghajit Mazumdar Date: Mon, 30 May 2022 15:45:07 +0530 Subject: [PATCH] feat: fix checkstyle formatting issues [https://github.com/odpf/dagger/issues/150] --- .../core/source/config/StreamConfigTest.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/dagger-core/src/test/java/io/odpf/dagger/core/source/config/StreamConfigTest.java b/dagger-core/src/test/java/io/odpf/dagger/core/source/config/StreamConfigTest.java index 0d95bbdd1..bbc5ee7a0 100644 --- a/dagger-core/src/test/java/io/odpf/dagger/core/source/config/StreamConfigTest.java +++ b/dagger-core/src/test/java/io/odpf/dagger/core/source/config/StreamConfigTest.java @@ -302,8 +302,8 @@ public void shouldThrowRuntimeExceptionIfSourceDetailsArrayHasMissingSourceName( + "[{\"SOURCE_TYPE\": \"BOUNDED\"}]" + "}]"); IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> StreamConfig.parse(configuration)); - assertEquals("One or more elements inside SOURCE_DETAILS has null or invalid SourceName. " + - "Check if it is a valid SourceName and ensure no trailing/leading whitespaces are present", exception.getMessage()); + assertEquals("One or more elements inside SOURCE_DETAILS has null or invalid SourceName. " + + "Check if it is a valid SourceName and ensure no trailing/leading whitespaces are present", exception.getMessage()); } @Test @@ -317,8 +317,8 @@ public void shouldThrowRuntimeExceptionIfSourceDetailsArrayContainsInvalidSource + "[{\"SOURCE_TYPE\": \"BOUNDED\", \"SOURCE_NAME\": \" KAFKA_SOURCE\"}]" + "}]"); IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> StreamConfig.parse(configuration)); - assertEquals("One or more elements inside SOURCE_DETAILS has null or invalid SourceName. " + - "Check if it is a valid SourceName and ensure no trailing/leading whitespaces are present", exception.getMessage()); + assertEquals("One or more elements inside SOURCE_DETAILS has null or invalid SourceName. " + + "Check if it is a valid SourceName and ensure no trailing/leading whitespaces are present", exception.getMessage()); } @Test @@ -332,8 +332,8 @@ public void shouldThrowRuntimeExceptionIfSourceDetailsArrayHasMissingSourceType( + "[{\"SOURCE_NAME\": \"PARQUET_SOURCE\"}]" + "}]"); IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> StreamConfig.parse(configuration)); - assertEquals("One or more elements inside SOURCE_DETAILS has null or invalid SourceType. Check if it " + - "is a valid SourceType and ensure no trailing/leading whitespaces are present", exception.getMessage()); + assertEquals("One or more elements inside SOURCE_DETAILS has null or invalid SourceType. Check if it " + + "is a valid SourceType and ensure no trailing/leading whitespaces are present", exception.getMessage()); } @Test @@ -347,8 +347,8 @@ public void shouldThrowRuntimeExceptionIfSourceDetailsArrayContainsInvalidSource + "[{\"SOURCE_TYPE\": \" BOUNDED\", \"SOURCE_NAME\": \"KAFKA_SOURCE\"}]" + "}]"); IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> StreamConfig.parse(configuration)); - assertEquals("One or more elements inside SOURCE_DETAILS has null or invalid SourceType. Check if it " + - "is a valid SourceType and ensure no trailing/leading whitespaces are present", exception.getMessage()); + assertEquals("One or more elements inside SOURCE_DETAILS has null or invalid SourceType. Check if it " + + "is a valid SourceType and ensure no trailing/leading whitespaces are present", exception.getMessage()); } @Test @@ -375,8 +375,8 @@ public void shouldThrowRuntimeExceptionForParquetSourceIfSourceParquetFilePathsA + "[{\"SOURCE_TYPE\": \"BOUNDED\", \"SOURCE_NAME\": \"PARQUET_SOURCE\"}]" + "}]"); IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> StreamConfig.parse(configuration)); - assertEquals("SOURCE_PARQUET_FILE_PATHS is required for configuring a Parquet Data Source Stream, " + - "but is set to null.", exception.getMessage()); + assertEquals("SOURCE_PARQUET_FILE_PATHS is required for configuring a Parquet Data Source Stream, " + + "but is set to null.", exception.getMessage()); } @Test