use of io.temporal.workflow.shared.TestWorkflows.NoArgsWorkflow in project sdk-java by temporalio.
the class GetVersionAddNewBeforeTest method testGetVersionAddNewBefore.
@Test
public void testGetVersionAddNewBefore() {
assumeFalse("skipping for docker tests", SDKTestWorkflowRule.useExternalService);
NoArgsWorkflow workflowStub = testWorkflowRule.newWorkflowStubTimeoutOptions(NoArgsWorkflow.class);
workflowStub.execute();
assertEquals(1, versionFoo);
assertEquals(Workflow.DEFAULT_VERSION, versionBar);
}
use of io.temporal.workflow.shared.TestWorkflows.NoArgsWorkflow in project sdk-java by temporalio.
the class GetVersionSameIdTest method testGetVersionSameId.
@Test
public void testGetVersionSameId() {
assumeFalse("skipping for docker tests", SDKTestWorkflowRule.useExternalService);
NoArgsWorkflow workflowStub = testWorkflowRule.newWorkflowStubTimeoutOptions(NoArgsWorkflow.class);
workflowStub.execute();
assertTrue(hasReplayed);
}
use of io.temporal.workflow.shared.TestWorkflows.NoArgsWorkflow in project sdk-java by temporalio.
the class GetVersionWorkflowReplaceCompletelyTest method testGetVersionWorkflowReplaceCompletely.
@Test
public void testGetVersionWorkflowReplaceCompletely() {
assumeFalse("skipping for docker tests", SDKTestWorkflowRule.useExternalService);
NoArgsWorkflow workflowStub = testWorkflowRule.newWorkflowStubTimeoutOptions(NoArgsWorkflow.class);
workflowStub.execute();
assertTrue(hasReplayed);
}
use of io.temporal.workflow.shared.TestWorkflows.NoArgsWorkflow in project sdk-java by temporalio.
the class GetVersionWorkflowReplaceGetVersionIdTest method testGetVersionWorkflowReplaceGetVersionId.
@Test
public void testGetVersionWorkflowReplaceGetVersionId() {
assumeFalse("skipping for docker tests", SDKTestWorkflowRule.useExternalService);
NoArgsWorkflow workflowStub = testWorkflowRule.newWorkflowStubTimeoutOptions(NoArgsWorkflow.class);
workflowStub.execute();
assertTrue(hasReplayed);
}
use of io.temporal.workflow.shared.TestWorkflows.NoArgsWorkflow in project sdk-java by temporalio.
the class ProhibitedCallsFromWorkflowTest method testWorkflowClientCallFromWorkflow.
@Test
public void testWorkflowClientCallFromWorkflow() {
NoArgsWorkflow client = testWorkflowRule.newWorkflowStubTimeoutOptions(NoArgsWorkflow.class);
client.execute();
}
Aggregations