Skip to content

Commit bc3dd8a

Browse files
committed
testing string constructor
1 parent 6abcf4a commit bc3dd8a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

testcontainers-dapr/src/test/java/io/dapr/testcontainers/DaprWorkflowDashboardTest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,17 @@ public void dashboardNoStateStoreTest() {
5454
}
5555
assertNotNull(expectedException);
5656
}
57+
58+
@Test
59+
public void dashboardWithImageStringTest() {
60+
Component stateStoreComponent = new Component("kvstore",
61+
"state.in-memory", "v1", Collections.singletonMap("actorStateStore", "true"));
62+
WorkflowDashboardContainer dashboard =
63+
new WorkflowDashboardContainer(DaprContainerConstants.DAPR_WORKFLOWS_DASHBOARD)
64+
.withStateStoreComponent(stateStoreComponent);
65+
dashboard.configure();
66+
67+
assertEquals(WorkflowDashboardContainer.DEFAULT_IMAGE_NAME, dashboard.getDefaultImageName());
68+
69+
}
5770
}

0 commit comments

Comments
 (0)