@Before public void setUp() throws Exception { testFileSystem = new TestFileSystem(); validator = testFileSystem.getReference(DefaultGenericKieValidator.class); }
@Before public void setUp() throws Exception { testFileSystem = new TestFileSystem(); solverValidator = testFileSystem.getReference(SolverValidator.class); }
@Before public void setUp() throws Exception { testFileSystem = new TestFileSystem(); moduleService = testFileSystem.getReference(KieModuleService.class); pomService = testFileSystem.getReference(POMService.class); cache = testFileSystem.getReference(LRUBuilderCache.class); deploymentVerifier = new DeploymentVerifier(repositoryResolver, moduleRepositoriesService); buildHelper = spy(new BuildHelper(pomService, m2RepoService, moduleService, deploymentVerifier, cache, handlers, identity)); when(identity.get()).thenReturn(user); when(user.getIdentifier()).thenReturn("test-user"); URL rootUrl = this.getClass().getResource("/BuildHelperTest"); rootPath = Paths.convert(testFileSystem.fileSystemProvider.getPath(rootUrl.toURI())); rootUrl = this.getClass().getResource("/BuildHelperTestSnapshot"); snapshotRootPath = Paths.convert(testFileSystem.fileSystemProvider.getPath(rootUrl.toURI())); Iterator<PostBuildHandler> mockIterator = mock(Iterator.class); when(handlers.iterator()).thenReturn(mockIterator); when(mockIterator.hasNext()).thenReturn(false); }
@Before public void setUp() throws Exception { disableGitDaemonAndSsh(); fileSystemTestingUtils.setup(); testFileSystem = new TestFileSystem(); validatorBuildService = testFileSystem.getReference(ValidatorBuildService.class); validator = new DefaultGenericKieValidator(validatorBuildService); }