Skip to content

Commit

Permalink
#303 dataset dirs seen false
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Jun 27, 2023
1 parent b5de1f6 commit 9bd7cd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/main/java/io/github/eocqrs/kafka/fake/DatasetDirs.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ public Directives value() throws Exception {
.set(this.key)
.up()
.addIf("value")
.set(this.data.dataized().dataize());
.set(this.data.dataized().dataize())
.up()
.addIf("seen")
.set("false");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ final class DatasetDirsTest {
void dirsInRightFormat() throws Exception {
final String directives = "XPATH \"broker/topics/topic[name = '']\";ADDIF "
+ "\"datasets\";ADD \"dataset\";ADD \"partition\";\n"
+ "4:SET \"0\";UP;ADDIF \"key\";SET \"test\";UP;ADDIF \"value\";SET \"\";";
+ "4:SET \"0\";UP;ADDIF \"key\";SET \"test\";UP;ADDIF \"value\";SET \"\";"
+ "UP;ADDIF \"seen\";SET \"false\";";
MatcherAssert.assertThat(
"Directives in the right format",
new DatasetDirs<>(
Expand Down

0 comments on commit 9bd7cd3

Please sign in to comment.