- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 52 for fail (0.12 sec)
-
maven-builder-support/src/test/java/org/apache/maven/building/FileSourceTest.java
@Test void testFileSource() { NullPointerException e = assertThrows( NullPointerException.class, () -> new FileSource((File) null), "Should fail, since you must specify a file"); assertEquals("file cannot be null", e.getMessage()); } @Test void testGetInputStream() throws Exception {
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Mon Feb 26 17:04:44 GMT 2024 - 2.2K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/artifact/MavenArtifactProperties.java
* verify the path and resolve the artifact if the path actually denotes an existing file. If the path isn't valid, * resolution will fail and no attempts to search local/remote repositories are made. */ public static final String LOCAL_PATH = "localPath"; private MavenArtifactProperties() { // hide constructor }
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 2.5K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/plugin/annotations/Parameter.java
* @return the default value */ @Nonnull String defaultValue() default ""; /** * is the parameter required? * @return <code>true</code> if the Mojo should fail when the parameter cannot be injected */ boolean required() default false; /** * Specifies that this parameter cannot be configured directly by the user (as in the case of POM-specified
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Mon Feb 05 09:45:47 GMT 2024 - 3.8K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/execution/ProfileActivation.java
import java.util.Set; import java.util.function.Predicate; import static java.util.stream.Collectors.toSet; /** * Container for storing the request from the user to activate or de-activate certain profiles and optionally fail the * build if those profiles do not exist. */ public class ProfileActivation { private final Map<String, ActivationSettings> activations = new HashMap<>(); /**
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Mon Dec 26 15:12:32 GMT 2022 - 5.6K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/project/artifact/AttachedArtifact.java
public boolean isSnapshot() { return parent.isSnapshot(); } public void addMetadata(ArtifactMetadata metadata) { // ignore. The parent artifact will handle metadata. // we must fail silently here to avoid problems with the artifact transformers. } public Collection<ArtifactMetadata> getMetadataList() { return Collections.emptyList(); }
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Mon Dec 26 15:12:32 GMT 2022 - 6.1K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/project/ProjectSorterTest.java
projects.add(project2); assertThrows( DuplicateProjectException.class, () -> new ProjectSorter(projects).getSortedProjects(), "Duplicate projects should fail"); } @Test void testMatchingIdsAndDifferentVersions() throws Exception { List<MavenProject> projects = new ArrayList<>();
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Wed Sep 06 08:39:32 GMT 2023 - 12.4K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java
legacySupport.setSession(session); } protected abstract String component(); /** * Return an existing file, not a directory - causes creation to fail. * * @throws Exception */ protected ArtifactRepository badLocalRepository() throws Exception { String path = "target/test-repositories/" + component() + "/bad-local-repository";
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Apr 25 05:46:50 GMT 2024 - 13.8K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/artifact/repository/MavenArtifactRepository.java
return sb.toString(); } public Artifact find(Artifact artifact) { File artifactFile = new File(getBasedir(), pathOf(artifact)); // We need to set the file here or the resolver will fail with an NPE, not fully equipped to deal // with multiple local repository implementations yet. artifact.setFile(artifactFile); return artifact; }
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Mon Dec 26 15:12:32 GMT 2022 - 11K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/ArtifactDescriptorUtils.java
} public static String toRepositoryChecksumPolicy(final String artifactRepositoryPolicy) { switch (artifactRepositoryPolicy) { case RepositoryPolicy.CHECKSUM_POLICY_FAIL: return RepositoryPolicy.CHECKSUM_POLICY_FAIL; case RepositoryPolicy.CHECKSUM_POLICY_IGNORE: return RepositoryPolicy.CHECKSUM_POLICY_IGNORE; case RepositoryPolicy.CHECKSUM_POLICY_WARN:
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 4K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java
void testChecksumVerification() throws Exception { ArtifactRepositoryPolicy policy = new ArtifactRepositoryPolicy( true, ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS, ArtifactRepositoryPolicy.CHECKSUM_POLICY_FAIL); ArtifactRepository repo = artifactRepositoryFactory.createArtifactRepository( "id", "string://url", new ArtifactRepositoryLayoutStub(), policy, policy);
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Apr 25 05:46:50 GMT 2024 - 13.4K bytes - Viewed (0)