when I am doing Junit testing for my service file I am having null point exception, I don’t understand why, I even tried mocking the repository service
I was writing my first test cases so I don’t know much.
@Test
public void startProcess_whenGetDeploymentId_Deployment(){
when(flowableRule.getRepositoryService()).thenReturn(repositoryService);
when(repositoryService.createDeployment().addInputStream(resource,inputstream).deploy()).thenReturn(deployment);