My Sample Unit Test ( Just Started Writing)
package com.fyndna.approval.services.workflow;
import io.temporal.testing.TestWorkflowEnvironment;
import io.temporal.testing.TestWorkflowExtension;
import io.temporal.worker.Worker;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
/**
* @author krishna
*/
public class ApprovalWorkflowImplTest {
@RegisterExtension
public static final TestWorkflowExtension testWorkflowExtension =
TestWorkflowExtension.newBuilder()
.registerWorkflowImplementationTypes(ApprovalWorkflowImpl.class)
.setDoNotStart(true)
.build();
@Test
public void testCaseCheck(TestWorkflowEnvironment testEnv, Worker worker, ApprovalWorkflow workflow) {
worker.registerActivitiesImplementations(new ApprovalWorkflowImpl());
testEnv.start();
System.out.println("Something is better than nothing");
}
}
But When I am running this getting
How to Fix This …Please help me out