Skip to content

Commit 16a1630

Browse files
Updated integration test for code coverage
1 parent 8c95189 commit 16a1630

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

pubsubplus-connector-spark_3.x/src/test/java/com/solacecoe/connectors/spark/SolaceSparkStreamingSourceIT.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,7 @@ public void handleErrorEx(Object o, JCSMPException e, long l) {
8787
for (int i = 0; i < 100; i++) {
8888
TextMessage textMessage = JCSMPFactory.onlyInstance().createMessage(TextMessage.class);
8989
textMessage.setText("Hello Spark!");
90-
textMessage.setPriority(1);
91-
// textMessage.setCorrelationId("test-correlation-id");
92-
textMessage.setDMQEligible(true);
93-
SDTMap sdtMap = JCSMPFactory.onlyInstance().createMap();
94-
sdtMap.putString("custom-string", "custom-value");
95-
sdtMap.putBoolean("custom-boolean", true);
96-
sdtMap.putString("null-custom-property", null);
97-
sdtMap.putString("empty-custom-property", "");
98-
sdtMap.putInteger("custom-sequence", i);
99-
textMessage.setProperties(sdtMap);
90+
textMessage.setSenderTimestamp(System.currentTimeMillis());
10091
Topic topic = JCSMPFactory.onlyInstance().createTopic("solace/spark/streaming");
10192
messageProducer.send(textMessage, topic);
10293
}

0 commit comments

Comments
 (0)