Search in sources :

Example 6 with TestFileSystem

use of org.guvnor.test.TestFileSystem in project kie-wb-common by kiegroup.

the class ValidatorTest method setUp.

@Before
public void setUp() throws Exception {
    disableGitDaemonAndSsh();
    fileSystemTestingUtils.setup();
    testFileSystem = new TestFileSystem();
    validatorBuildService = testFileSystem.getReference(ValidatorBuildService.class);
    validator = new DefaultGenericKieValidator(validatorBuildService);
}
Also used : TestFileSystem(org.guvnor.test.TestFileSystem) Before(org.junit.Before)

Example 7 with TestFileSystem

use of org.guvnor.test.TestFileSystem in project kie-wb-common by kiegroup.

the class ProjectScreenModelSaverTest method setUp.

@Before
public void setUp() throws Exception {
    testFileSystem = new TestFileSystem();
    saver = new ProjectScreenModelSaver(pomService, kModuleService, importsService, repositoriesService, allowListService, ioService, moduleService, repositoryResolver, commentedOptionFactory, pomModelCache);
    pathToPom = testFileSystem.createTempFile("testproject/pom.xml");
}
Also used : TestFileSystem(org.guvnor.test.TestFileSystem) Before(org.junit.Before)

Aggregations

TestFileSystem (org.guvnor.test.TestFileSystem)7 Before (org.junit.Before)7 URL (java.net.URL)1 ArrayList (java.util.ArrayList)1 PostBuildHandler (org.guvnor.common.services.project.builder.service.PostBuildHandler)1 GAV (org.guvnor.common.services.project.model.GAV)1 Module (org.guvnor.common.services.project.model.Module)1 POM (org.guvnor.common.services.project.model.POM)1 POMService (org.guvnor.common.services.project.service.POMService)1 InternalKieBuilder (org.kie.internal.builder.InternalKieBuilder)1 KieModuleService (org.kie.workbench.common.services.shared.project.KieModuleService)1 Path (org.uberfire.backend.vfs.Path)1