@Test(expected = ValidationException.class) public void isDeployableMuleApplicationFromArtifact() throws ValidationException { projectInformationBuilder .withPackaging("fake-packaging") .withClassifier("fake-packaging") .isDeployment(true) .withDeployments(singletonList(deploymentConfigurationMock)); String artifactName = "my-project-" + MULE_APPLICATION + ".jar"; when(deploymentConfigurationMock.getArtifact()).thenReturn(new File(artifactName)); validator = new ProjectDeploymentValidator(projectInformationBuilder.build()); validator.isDeployable(); }
public void isDeployable() throws ValidationException { if (projectInformation.isDeployment()) { validateIsDeployable(); } }
ProjectDeploymentValidator { public void isDeployable() throws ValidationException { if (projectInformation.isDeployment()) { validateIsDeployable(); } } }
ProjectDeploymentValidator { public void isDeployable() throws ValidationException { if (projectInformation.isDeployment()) { validateIsDeployable(); } } ProjectDeploymentValidator(ProjectInformation projectInformation); }
ProjectDeploymentValidator { public void isDeployable() throws ValidationException { if (projectInformation.isDeployment()) { validateIsDeployable(); } } ProjectDeploymentValidator(ProjectInformation projectInformation); ProjectInformation getDefaultProjectInformation(); void isDeployable(); }
ProjectDeploymentValidator { public void isDeployable() throws ValidationException { if (projectInformation.isDeployment()) { validateIsDeployable(); } } ProjectDeploymentValidator(ProjectInformation projectInformation); ProjectInformation getDefaultProjectInformation(); void isDeployable();  }