use of org.guvnor.test.TestFileSystem in project kie-wb-common by kiegroup.
the class PackageNameWhiteListSaverTest method setUp.
@Before
public void setUp() throws Exception {
testFileSystem = new TestFileSystem();
saver = new PackageNameWhiteListSaver(ioService, metadataService, commentedOptionFactory);
}
use of org.guvnor.test.TestFileSystem in project kie-wb-common by kiegroup.
the class DefaultGenericKieValidatorTest method setUp.
@Before
public void setUp() throws Exception {
testFileSystem = new TestFileSystem();
validator = testFileSystem.getReference(DefaultGenericKieValidator.class);
}
use of org.guvnor.test.TestFileSystem in project kie-wb-common by kiegroup.
the class BuildHelperTest method setUp.
@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);
}
use of org.guvnor.test.TestFileSystem in project kie-wb-common by kiegroup.
the class BuilderBatchResourceChangesTest method setUp.
@Before
public void setUp() throws Exception {
testFileSystem = new TestFileSystem();
final Path root = testFileSystem.createTempDirectory("root");
final Path pomFile = testFileSystem.createTempFile("root/pom.xml");
module = new Module(root, pomFile, new POM(new GAV()));
builder = new Builder(module, mock(IOService.class), mock(KieModuleService.class), mock(ProjectImportsService.class), new ArrayList<>(), mock(LRUModuleDependenciesClassLoaderCache.class), mock(LRUPomModelCache.class), mock(PackageNameAllowListService.class), mock(Predicate.class), kieBuilder, kieFileSystem);
}
use of org.guvnor.test.TestFileSystem in project kie-wb-common by kiegroup.
the class PackageNameAllowListSaverTest method setUp.
@Before
public void setUp() throws Exception {
testFileSystem = new TestFileSystem();
saver = new PackageNameAllowListSaver(ioService, metadataService, commentedOptionFactory);
}
Aggregations