File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
sdk-tests/src/test/java/io/dapr/it/testcontainers/workflows
sdk-workflows/src/test/java/io/dapr/workflows/client Expand file tree Collapse file tree 2 files changed +9
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1717import io .dapr .durabletask .OrchestrationMetadata ;
1818import io .dapr .durabletask .OrchestrationRuntimeStatus ;
1919import io .dapr .workflows .runtime .DefaultWorkflowState ;
20+ import org .junit .jupiter .api .Assertions ;
2021import org .junit .jupiter .api .BeforeEach ;
2122import org .junit .jupiter .api .Test ;
2223
@@ -201,4 +202,12 @@ public void testToString() {
201202 assertEquals (expected , result );
202203 }
203204
205+ @ Test
206+ public void testWithNoMetadata () {
207+ String message = Assertions .assertThrows (IllegalArgumentException .class , () -> {
208+ DefaultWorkflowState workflowState = new DefaultWorkflowState (null );
209+ }).getMessage ();
210+
211+ Assertions .assertTrue (message .contains ("OrchestrationMetadata cannot be null" ));
212+ }
204213}
You can’t perform that action at this time.
0 commit comments