You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/12/09 07:41:54 UTC
[camel-kafka-connector] 14/17: Fixed build
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-master
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git
commit cc5fb83ce5186480314143184d48b8188ec496bd
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Dec 9 08:10:09 2020 +0100
Fixed build
---
.../transforms/SourcePojoToSchemaAndStructTransformTest.java | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/core/src/test/java/org/apache/camel/kafkaconnector/transforms/SourcePojoToSchemaAndStructTransformTest.java b/core/src/test/java/org/apache/camel/kafkaconnector/transforms/SourcePojoToSchemaAndStructTransformTest.java
index dfe1ed6..fbd5144 100644
--- a/core/src/test/java/org/apache/camel/kafkaconnector/transforms/SourcePojoToSchemaAndStructTransformTest.java
+++ b/core/src/test/java/org/apache/camel/kafkaconnector/transforms/SourcePojoToSchemaAndStructTransformTest.java
@@ -22,6 +22,8 @@ import java.util.List;
import java.util.Map;
import org.apache.camel.component.slack.helper.SlackMessage;
+import org.apache.camel.component.slack.helper.SlackMessage.Attachment;
+import org.apache.camel.component.slack.helper.SlackMessage.Attachment.Field;
import org.apache.kafka.connect.connector.ConnectRecord;
import org.apache.kafka.connect.data.Schema;
import org.apache.kafka.connect.data.Struct;
@@ -42,14 +44,14 @@ public class SourcePojoToSchemaAndStructTransformTest {
SlackMessage sm = new SlackMessage();
- SlackMessage.Attachment at1 = sm.new Attachment();
- SlackMessage.Attachment.Field at1f1 = at1.new Field();
+ SlackMessage.Attachment at1 = new Attachment();
+ SlackMessage.Attachment.Field at1f1 = new Field();
at1f1.setTitle("ciao");
at1f1.setShortValue(true);
at1.setFields(new ArrayList<SlackMessage.Attachment.Field>(Collections.singleton(at1f1)));
at1.setAuthorName("Andrea");
- SlackMessage.Attachment at2 = sm.new Attachment();
+ SlackMessage.Attachment at2 = new Attachment();
at2.setColor("green");
ArrayList<SlackMessage.Attachment> attachments = new ArrayList<>();