Skip to content

Commit 9de2450

Browse files
committed
chore: Clean up not used files
Signed-off-by: Javier Aliaga <javier@diagrid.io>
1 parent cc21312 commit 9de2450

File tree

4 files changed

+13
-96
lines changed

4 files changed

+13
-96
lines changed

sdk-tests/src/test/java/io/dapr/it/testcontainers/KeyStore.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/*
2+
* Copyright 2025 The Dapr Authors
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
* Unless required by applicable law or agreed to in writing, software
8+
* distributed under the License is distributed on an "AS IS" BASIS,
9+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
* See the License for the specific language governing permissions and
11+
limitations under the License.
12+
*/
113
package io.dapr.it.testcontainers;
214

315
import java.util.HashMap;

sdk-tests/src/test/java/io/dapr/it/testcontainers/TaskExecutionKeyActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 The Dapr Authors
2+
* Copyright 2025 The Dapr Authors
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at

sdk-tests/src/test/java/io/dapr/it/testcontainers/WorkflowSingleton.java

Lines changed: 0 additions & 45 deletions
This file was deleted.

sdk-workflows/src/test/java/io/dapr/workflows/DefaultWorkflowContextTest.java

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ public void callChildWorkflowWithOptions() {
285285
WorkflowTaskRetryPolicy retryPolicy = WorkflowTaskRetryPolicy.newBuilder()
286286
.setMaxNumberOfAttempts(1)
287287
.setFirstRetryInterval(Duration.ofSeconds(10))
288-
.setRetryTimeout(Duration.ofSeconds(10))
289288
.build();
290289
WorkflowTaskOptions executionOptions = new WorkflowTaskOptions(retryPolicy);
291290
ArgumentCaptor<TaskOptions> captor = ArgumentCaptor.forClass(TaskOptions.class);
@@ -305,7 +304,6 @@ public void callChildWorkflowWithOptions() {
305304

306305
assertEquals(retryPolicy.getMaxNumberOfAttempts(), taskOptions.getRetryPolicy().getMaxNumberOfAttempts());
307306
assertEquals(retryPolicy.getFirstRetryInterval(), taskOptions.getRetryPolicy().getFirstRetryInterval());
308-
assertEquals(Duration.ZERO, taskOptions.getRetryPolicy().getRetryTimeout());
309307
}
310308

311309
@Test
@@ -329,52 +327,4 @@ public void newUuidTestNoImplementationExceptionTest() {
329327
String expectedMessage = "No implementation found.";
330328
assertEquals(expectedMessage, runtimeException.getMessage());
331329
}
332-
333-
@Test
334-
public void workflowRetryPolicyRetryTimeoutValueShouldHaveRightValueWhenBeingSet() {
335-
String expectedName = "TestActivity";
336-
String expectedInput = "TestInput";
337-
String expectedInstanceId = "TestInstanceId";
338-
WorkflowTaskRetryPolicy retryPolicy = WorkflowTaskRetryPolicy.newBuilder()
339-
.setMaxNumberOfAttempts(1)
340-
.setFirstRetryInterval(Duration.ofSeconds(10))
341-
.setRetryTimeout(Duration.ofSeconds(10))
342-
.build();
343-
WorkflowTaskOptions executionOptions = new WorkflowTaskOptions(retryPolicy);
344-
ArgumentCaptor<TaskOptions> captor = ArgumentCaptor.forClass(TaskOptions.class);
345-
346-
context.callChildWorkflow(expectedName, expectedInput, expectedInstanceId, executionOptions, String.class);
347-
348-
verify(mockInnerContext, times(1))
349-
.callSubOrchestrator(
350-
eq(expectedName),
351-
eq(expectedInput),
352-
eq(expectedInstanceId),
353-
captor.capture(),
354-
eq(String.class)
355-
);
356-
357-
TaskOptions taskOptions = captor.getValue();
358-
359-
assertEquals(Duration.ofSeconds(10), taskOptions.getRetryPolicy().getRetryTimeout());
360-
}
361-
362-
@Test
363-
public void workflowRetryPolicyRetryThrowIllegalArgumentWhenNullRetryTimeoutIsSet() {
364-
assertThrows(IllegalArgumentException.class, () ->
365-
WorkflowTaskRetryPolicy.newBuilder()
366-
.setMaxNumberOfAttempts(1)
367-
.setFirstRetryInterval(Duration.ofSeconds(10))
368-
.setRetryTimeout(null)
369-
.build());
370-
}
371-
372-
@Test
373-
public void workflowRetryPolicyRetryThrowIllegalArgumentWhenRetryTimeoutIsLessThanMaxRetryInterval() {
374-
assertThrows(IllegalArgumentException.class, () -> WorkflowTaskRetryPolicy.newBuilder()
375-
.setMaxNumberOfAttempts(1)
376-
.setFirstRetryInterval(Duration.ofSeconds(10))
377-
.setRetryTimeout(Duration.ofSeconds(9))
378-
.build());
379-
}
380330
}

0 commit comments

Comments
 (0)