reswqa commented on code in PR #32:
URL:
https://github.com/apache/flink-connector-pulsar/pull/32#discussion_r1108491837
##########
flink-connector-pulsar/src/test/java/org/apache/flink/connector/pulsar/common/config/PulsarConfigBuilderTest.java:
##########
@@ -65,12 +68,14 @@ void
setPropertiesCanNotOverrideExistedKeysWithNewValueAndSupportTypeConversion(
Properties properties = new Properties();
properties.put("int.type", "6");
- assertDoesNotThrow(() -> builder.set(properties));
+
+ assertThatCode(() ->
builder.set(properties)).doesNotThrowAnyException();
properties.put("int.type", "1");
- assertThrows(IllegalArgumentException.class, () ->
builder.set(properties));
+ assertThatThrownBy(() -> builder.set(properties))
+ .isInstanceOf(IllegalArgumentException.class);
Integer value = builder.get(option);
- assertEquals(value, 6);
+ assertThat(builder.get(option)).isEqualTo(6);
Review Comment:
```suggestion
assertThat(value).isEqualTo(6);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]