本文整理了Java中org.guvnor.common.services.project.model.Package.<init>()
方法的一些代码示例,展示了Package.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Package.<init>()
方法的具体详情如下:
包路径:org.guvnor.common.services.project.model.Package
类名称:Package
方法名:<init>
暂无
代码示例来源:origin: kiegroup/drools-wb
@Test
public void checkRightResourceType() throws Exception {
handler.create(new Package(),
"newfile.scesim",
mock(NewResourcePresenter.class));
verify(busyIndicatorViewMock).showBusyIndicator("Saving");
verify(busyIndicatorViewMock).hideBusyIndicator();
verify(notificationEventMock).fire(any(NotificationEvent.class));
verify(newResourceSuccessEventMock).fire(any(NewResourcePresenter.class));
verify(placeManagerMock).goTo(any(Path.class));
}
代码示例来源:origin: kiegroup/drools-wb
@Before
public void setup() throws Exception {
Set<Package> packages = new HashSet<>();
packages.add(new Package(path, path, path, path, path, "Test", "", ""));
when(kieModuleService.resolveModule(any())).thenReturn(module);
when(kieModuleService.resolvePackages(any(KieModule.class))).thenReturn(packages);
when(ioService.exists(activatorPath)).thenReturn(false);
when(kieModuleService.resolveModule(any())).thenReturn(module);
when(module.getPom()).thenReturn(projectPom);
when(projectPom.getGav()).thenReturn(gav);
when(gav.getGroupId()).thenReturn("Test");
when(projectPom.getDependencies()).thenReturn(dependencies);
when(ioService.exists(any(org.uberfire.java.nio.file.Path.class))).thenReturn(false);
when(mockedPackage.getPackageTestSrcPath()).thenReturn(path);
when(scenarioSimulationBuilderMock.createSimulation(any(), any(), any())).thenReturn(new Simulation());
service.scenarioSimulationBuilder = scenarioSimulationBuilderMock;
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-project-explorer-backend
when(moduleService.resolveDefaultPackage(any(Module.class))).thenReturn(new Package());
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-project-explorer-backend
projectArgumentCaptor.getValue().getBranch().getName(),
moduleArgumentCaptor.getValue(),
new Package());
代码示例来源:origin: kiegroup/appformer
final Package pkg = new Package(module.getRootPath(),
mainSrcPath,
testSrcPath,
代码示例来源:origin: org.guvnor/guvnor-project-backend
final Package pkg = new Package(project.getRootPath(),
mainSrcPath,
testSrcPath,
代码示例来源:origin: org.uberfire/uberfire-project-client
final Package oldPackage = new Package();
final Module oldModule = new Module();
代码示例来源:origin: org.uberfire/uberfire-project-backend
final Package pkg = new Package(module.getRootPath(),
mainSrcPath,
testSrcPath,
代码示例来源:origin: kiegroup/appformer
final Package oldPackage = new Package();
final Module oldModule = new Module();
代码示例来源:origin: org.uberfire/uberfire-project-client
final OrganizationalUnit oldOrganizationalUnit = mock(OrganizationalUnit.class);
final Repository oldRepository = mock(Repository.class);
final Package oldPackage = new Package();
final Module oldModule = new Module();
final Branch newBranch = new Branch("master",
mock(Path.class));
final Package newPackage = new Package();
final Module newModule = new Module();
代码示例来源:origin: kiegroup/appformer
final OrganizationalUnit oldOrganizationalUnit = mock(OrganizationalUnit.class);
final Repository oldRepository = mock(Repository.class);
final Package oldPackage = new Package();
final Module oldModule = new Module();
final Branch newBranch = new Branch("master",
mock(Path.class));
final Package newPackage = new Package();
final Module newModule = new Module();
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-project-explorer-backend
private Package createPackage(final String branch,
final String moduleName) {
return new Package(createMockPath(branch,
moduleName),
createMockPath(branch,
moduleName),
createMockPath(branch,
moduleName),
createMockPath(branch,
moduleName),
createMockPath(branch,
moduleName),
"default",
"default",
"default");
}
内容来源于网络,如有侵权,请联系作者删除!