Skip to content

Commit dcdfb56

Browse files
committed
extend test for codecov
Signed-off-by: salaboy <[email protected]>
1 parent 11731ae commit dcdfb56

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

testcontainers-dapr/src/main/java/io/dapr/testcontainers/WorkflowDashboardContainer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ public WorkflowDashboardContainer withStateStoreComponent(Component stateStoreCo
5050
return this;
5151
}
5252

53+
public Component getStateStoreComponent() {
54+
return stateStoreComponent;
55+
}
56+
5357
/**
5458
* Creates a new workflow dashboard container.
5559
* @param image Docker image name.

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ public void dashboardTest() {
3030
"state.in-memory", "v1", Collections.singletonMap("actorStateStore", "true"));
3131
try (WorkflowDashboardContainer dashboard =
3232
new WorkflowDashboardContainer(WorkflowDashboardContainer.DEFAULT_IMAGE_NAME)
33-
.withStateStoreComponent(stateStoreComponent)) {
33+
.withStateStoreComponent(stateStoreComponent).withPort(8080)) {
3434
dashboard.configure();
3535
assertNotNull(dashboard.getEnvMap().get("COMPONENT_FILE"));
3636
assertFalse(dashboard.getEnvMap().get("COMPONENT_FILE").isEmpty());
3737
assertEquals(8080, dashboard.getPort());
38-
38+
assertEquals(WorkflowDashboardContainer.DEFAULT_IMAGE_NAME, dashboard.getDefaultImageName());
39+
assertEquals(8080, dashboard.getExposedPorts().get(0));
40+
assertEquals(stateStoreComponent, dashboard.getStateStoreComponent());
3941
}
4042
}
4143
}

0 commit comments

Comments
 (0)