Skip to content
Snippets Groups Projects

Resolve "Allow collection and circular attributes as endpoint targets"

Merged René Schöne requested to merge feature/#53-collection-circular-attributes into dev
2 files
+ 3
8
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -22,7 +22,6 @@ import static org.junit.jupiter.api.Assertions.*;
* @author rschoene - Initial contribution
*/
@Tag("Incremental")
@Tag("New")
public class AttributeTest extends AbstractMqttTest {
private static final String TOPIC_WILDCARD = "attr/#";
@@ -180,7 +179,6 @@ public class AttributeTest extends AbstractMqttTest {
senderString.setInput("test-01");
checker.check();
// TODO check checks for (circular and) collection
senderString.addA(new A().setValue("test-02").setInner(new Inner().setInnerValue("inner")));
checker.addToNumberOfValues(2) // collection(2)
.put(CHECK_COLLECTION, "[test-01, test-02]")
@@ -289,7 +287,6 @@ public class AttributeTest extends AbstractMqttTest {
private void checkCollection(String name, String expected) {
if (expected != null) {
// TODO probably need to tokenize actual and expected, and compare their elements without order
assertThat(receiverRoot.getFromCollectionWithMapping()).hasSizeGreaterThan(4).endsWith("post");
checkCollectionContent(name, expected, receiverRoot.getFromCollectionNoMapping());
checkCollectionContent(name + " mapped", expected, receiverRoot.getFromCollectionWithMapping().substring(0, receiverRoot.getFromCollectionWithMapping().length() - 4));
Loading