@Test public void testBuildAndDeployNonSnapshotNotDeployed() { final GAV gav = new GAV(GROUP_ID, ARTIFACT_ID, VERSION); prepareBuildAndDeploy(rootPath, gav, false); buildHelper.buildAndDeploy(module); verify(buildHelper, times(1)).buildAndDeploy(eq(module), eq(DeploymentMode.VALIDATED)); verifyBuildAndDeploy(module, gav); }
public BuildResults buildAndDeploy(final Module module) { return buildAndDeploy(module, DeploymentMode.VALIDATED); }
BuildHelper { public BuildResults buildAndDeploy(final Module module) { return buildAndDeploy(module, DeploymentMode.VALIDATED); } }
BuildHelper { public BuildResults buildAndDeploy(final Module module) { return buildAndDeploy(module, DeploymentMode.VALIDATED); } BuildHelper(); @Inject  BuildHelper(final POMService pomService,
                       final ExtendedM2RepoService m2RepoService,
                       final KieModuleService moduleService,
                       final DeploymentVerifier deploymentVerifier,
                       final LRUBuilderCache cache,
                       final Instance<PostBuildHandler> handlers,
                       final Instance<User> identity); }
BuildHelper { public BuildResults buildAndDeploy(final Module module) { return buildAndDeploy(module, DeploymentMode.VALIDATED); } BuildHelper(); @Inject  BuildHelper(final POMService pomService,
                       final ExtendedM2RepoService m2RepoService,
                       final KieModuleService moduleService,
                       final DeploymentVerifier deploymentVerifier,
                       final LRUBuilderCache cache,
                       final Instance<PostBuildHandler> handlers,
                       final Instance<User> identity); BuildResult build(final Module module); IncrementalBuildResults addPackageResource(final Path resource); IncrementalBuildResults deletePackageResource(final Path resource); IncrementalBuildResults updatePackageResource(final Path resource); IncrementalBuildResults applyBatchResourceChanges(final Module module,
                                                             final Map<Path, Collection<ResourceChange>> changes); BuildResults buildExceptionResults(Exception e,
                                              GAV gav); BuildResults buildAndDeploy(final Module module); BuildResults buildAndDeploy(final Module module,
                                       final DeploymentMode mode); BuildResults buildAndDeploy(final Module module,
                                       final boolean suppressHandlers); BuildResults buildAndDeploy(final Module module,
                                       final boolean suppressHandlers,
                                       final DeploymentMode mode); }
BuildHelper { public BuildResults buildAndDeploy(final Module module) { return buildAndDeploy(module, DeploymentMode.VALIDATED); } BuildHelper(); @Inject  BuildHelper(final POMService pomService,
                       final ExtendedM2RepoService m2RepoService,
                       final KieModuleService moduleService,
                       final DeploymentVerifier deploymentVerifier,
                       final LRUBuilderCache cache,
                       final Instance<PostBuildHandler> handlers,
                       final Instance<User> identity); BuildResult build(final Module module); IncrementalBuildResults addPackageResource(final Path resource); IncrementalBuildResults deletePackageResource(final Path resource); IncrementalBuildResults updatePackageResource(final Path resource); IncrementalBuildResults applyBatchResourceChanges(final Module module,
                                                             final Map<Path, Collection<ResourceChange>> changes); BuildResults buildExceptionResults(Exception e,
                                              GAV gav); BuildResults buildAndDeploy(final Module module); BuildResults buildAndDeploy(final Module module,
                                       final DeploymentMode mode); BuildResults buildAndDeploy(final Module module,
                                       final boolean suppressHandlers); BuildResults buildAndDeploy(final Module module,
                                       final boolean suppressHandlers,
                                       final DeploymentMode mode);  }