Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down