File tree 1 file changed +5
-2
lines changed
src/test/java/tutorial/buildon/aws/streaming/kafka
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 10
10
import static org .junit .jupiter .api .Assertions .assertEquals ;
11
11
import static org .junit .jupiter .api .Assertions .assertThrows ;
12
12
13
+ import static tutorial .buildon .aws .streaming .kafka .MyFirstKafkaConnectorConfig .*;
14
+
13
15
public class MyFirstConnectorTest {
14
16
15
17
@ Test
@@ -26,10 +28,11 @@ public void checkClassTask() {
26
28
27
29
@ Test
28
30
public void checkSpecialCircumstance () {
31
+ final String value = "sameValue" ;
29
32
assertThrows (ConnectException .class , () -> {
30
33
Map <String , String > props = new HashMap <>();
31
- props .put ("first.nonrequired.param" , "sameValue" );
32
- props .put ("second.nonrequired.param" , "sameValue" );
34
+ props .put (FIRST_NONREQUIRED_PARAM_CONFIG , value );
35
+ props .put (SECOND_NONREQUIRED_PARAM_CONFIG , value );
33
36
new MyFirstKafkaConnector ().validate (props );
34
37
});
35
38
}
You can’t perform that action at this time.
0 commit comments