예제 #1
0
        private void createDeploymentMock()
        {
            Deployment mockDeployment = MockProvider.createMockDeployment();

            DeploymentQuery deploymentQueryMock = mock(typeof(DeploymentQuery));

            when(deploymentQueryMock.deploymentId(anyString())).thenReturn(deploymentQueryMock);
            when(deploymentQueryMock.singleResult()).thenReturn(mockDeployment);

            when(mockRepoService.createDeploymentQuery()).thenReturn(deploymentQueryMock);
        }