Skip to content

Commit d9611b7

Browse files
author
itERRatOR
committed
Replace hardcode with declared constant
1 parent d107ec7 commit d9611b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/simplesteph/kafka/model/IssueTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.simplesteph.kafka.model;
22

3+
import com.simplesteph.kafka.GitHubSchemas;
34
import com.simplesteph.kafka.GitHubSourceTask;
45
import org.apache.kafka.connect.data.Struct;
56
import org.json.JSONObject;
@@ -93,7 +94,7 @@ public void convertsToStruct(){
9394
// issue
9495
Issue issue = Issue.fromJson(issueJson);
9596
Struct struct = new GitHubSourceTask().buildRecordValue(issue);
96-
assert struct.get("created_at").getClass() == Date.class;
97+
assert struct.get(GitHubSchemas.CREATED_AT_FIELD).getClass() == Date.class;
9798
}
9899

99100
}

0 commit comments

Comments
 (0)