Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion temporal-opentracing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
plugins {
id 'java-library'
id 'net.ltgt.errorprone' version '2.0.1'
id 'org.cadixdev.licenser' version '0.5.1'
id 'org.cadixdev.licenser' version '0.6.0'
id 'com.palantir.git-version' version '0.12.2'
id 'maven-publish'
id 'signing'
Expand Down
2 changes: 1 addition & 1 deletion temporal-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
plugins {
id 'java-library'
id 'net.ltgt.errorprone' version '2.0.1'
id 'org.cadixdev.licenser' version '0.5.1'
id 'org.cadixdev.licenser' version '0.6.0'
id 'com.palantir.git-version' version '0.12.2'
id 'maven-publish'
id 'signing'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
import io.temporal.common.interceptors.WorkflowClientCallsInterceptorBase;
import io.temporal.common.interceptors.WorkflowClientInterceptorBase;
import io.temporal.workflow.shared.SDKTestWorkflowRule;
import io.temporal.workflow.shared.TestOptions;
import io.temporal.workflow.shared.TestWorkflows;
import io.temporal.workflow.shared.TestWorkflows.NoArgsWorkflow;
import org.junit.Rule;
import org.junit.Test;

Expand All @@ -42,17 +41,12 @@ public class InterceptorsExceptionsTests {
WorkflowClientOptions.newBuilder()
.setInterceptors(new ExceptionOnStartThrowingClientInterceptor())
.validateAndBuildWithDefaults())
.setTestTimeoutSeconds(15)
.build();

@Test
public void testExceptionOnStart() {
TestWorkflows.NoArgsWorkflow workflowStub =
testWorkflowRule
.getWorkflowClient()
.newWorkflowStub(
TestWorkflows.NoArgsWorkflow.class,
TestOptions.newWorkflowOptionsWithTimeouts(testWorkflowRule.getTaskQueue()));
NoArgsWorkflow workflowStub =
testWorkflowRule.newWorkflowStubTimeoutOptions(NoArgsWorkflow.class);
try {
workflowStub.execute();
fail("Workflow call is expected to fail with an exception");
Expand All @@ -63,7 +57,7 @@ public void testExceptionOnStart() {
}
}

public static class WorkflowImpl implements TestWorkflows.NoArgsWorkflow {
public static class WorkflowImpl implements NoArgsWorkflow {
@Override
public void execute() {}
}
Expand Down
2 changes: 1 addition & 1 deletion temporal-serviceclient/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
id 'com.google.protobuf' version '0.8.16'
id 'java-library'
id 'net.ltgt.errorprone' version '2.0.1'
id 'org.cadixdev.licenser' version '0.5.1'
id 'org.cadixdev.licenser' version '0.6.0'
id 'maven-publish'
id 'signing'
id 'de.marcphilipp.nexus-publish' version '0.4.0'
Expand Down
2 changes: 1 addition & 1 deletion temporal-testing-junit4/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
plugins {
id 'java-library'
id 'net.ltgt.errorprone' version '2.0.1'
id 'org.cadixdev.licenser' version '0.5.1'
id 'org.cadixdev.licenser' version '0.6.0'
id 'com.palantir.git-version' version '0.12.2'
id 'maven-publish'
id 'signing'
Expand Down
2 changes: 1 addition & 1 deletion temporal-testing-junit5/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
plugins {
id 'java-library'
id 'net.ltgt.errorprone' version '2.0.1'
id 'org.cadixdev.licenser' version '0.5.1'
id 'org.cadixdev.licenser' version '0.6.0'
id 'com.palantir.git-version' version '0.12.2'
id 'maven-publish'
id 'signing'
Expand Down
2 changes: 1 addition & 1 deletion temporal-testing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
plugins {
id 'java-library'
id 'net.ltgt.errorprone' version '2.0.1'
id 'org.cadixdev.licenser' version '0.5.1'
id 'org.cadixdev.licenser' version '0.6.0'
id 'com.palantir.git-version' version '0.12.2'
id 'maven-publish'
id 'signing'
Expand Down