Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for scope_test_ (0.07 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/filter/ScopeArtifactFilterTest.java

            assertTrue(filter.include(newArtifact(Artifact.SCOPE_RUNTIME)));
            assertFalse(filter.include(newArtifact(Artifact.SCOPE_TEST)));
        }
    
        @Test
        void testInclude_Test() {
            ScopeArtifactFilter filter = new ScopeArtifactFilter(Artifact.SCOPE_TEST);
    
            assertTrue(filter.include(newArtifact(Artifact.SCOPE_COMPILE)));
            assertTrue(filter.include(newArtifact(Artifact.SCOPE_SYSTEM)));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java

            checkScopeUpdate(Artifact.SCOPE_SYSTEM, Artifact.SCOPE_TEST, Artifact.SCOPE_TEST);
    
            /* farthest = test */
            checkScopeUpdate(Artifact.SCOPE_TEST, Artifact.SCOPE_COMPILE, Artifact.SCOPE_COMPILE);
            checkScopeUpdate(Artifact.SCOPE_TEST, Artifact.SCOPE_PROVIDED, Artifact.SCOPE_PROVIDED);
            checkScopeUpdate(Artifact.SCOPE_TEST, Artifact.SCOPE_RUNTIME, Artifact.SCOPE_RUNTIME);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/project/artifact/MavenMetadataSourceTest.java

            assertEquals( "dependency artifact has wrong scope.", Artifact.SCOPE_TEST, artifact.getScope() );
    
            //check for back-propagation of default scope.
            assertEquals( "default scope NOT back-propagated to dependency.", Artifact.SCOPE_TEST, dep.getScope() );
            */
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/AbstractScopeArtifactFilter.java

            } else if (Artifact.SCOPE_RUNTIME_PLUS_SYSTEM.equals(scope)) {
                systemScope = true;
                compileScope = true;
                runtimeScope = true;
            } else if (Artifact.SCOPE_TEST.equals(scope)) {
                systemScope = true;
                providedScope = true;
                compileScope = true;
                runtimeScope = true;
                testScope = true;
            }
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/artifact/factory/DefaultArtifactFactory.java

                desiredScope = Artifact.SCOPE_COMPILE;
            }
    
            if (Artifact.SCOPE_TEST.equals(inheritedScope)) {
                desiredScope = Artifact.SCOPE_TEST;
            }
    
            if (Artifact.SCOPE_PROVIDED.equals(inheritedScope)) {
                desiredScope = Artifact.SCOPE_PROVIDED;
            }
    
            if (Artifact.SCOPE_SYSTEM.equals(scope)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java

                desiredScope = Artifact.SCOPE_COMPILE;
            }
    
            if (Artifact.SCOPE_TEST.equals(inheritedScope)) {
                desiredScope = Artifact.SCOPE_TEST;
            }
    
            if (Artifact.SCOPE_PROVIDED.equals(inheritedScope)) {
                desiredScope = Artifact.SCOPE_PROVIDED;
            }
    
            if (Artifact.SCOPE_SYSTEM.equals(scope)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/artifact/ArtifactScopeEnum.java

         */
        public String getScope() {
            if (id == 1) {
                return Artifact.SCOPE_COMPILE;
            } else if (id == 2) {
                return Artifact.SCOPE_TEST;
    
            } else if (id == 3) {
                return Artifact.SCOPE_RUNTIME;
    
            } else if (id == 4) {
                return Artifact.SCOPE_PROVIDED;
            } else if (id == 5) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

                // added to retain compile scope. Remove if you want compile inherited as runtime
                effectiveScope = Artifact.SCOPE_COMPILE;
            } else if (Artifact.SCOPE_TEST.equals(inheritedScope)) {
                effectiveScope = Artifact.SCOPE_TEST;
            } else if (Artifact.SCOPE_PROVIDED.equals(inheritedScope)) {
                effectiveScope = Artifact.SCOPE_PROVIDED;
            }
    
            return effectiveScope;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. compat/maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java

        // TODO into artifactScope handler
    
        String SCOPE_COMPILE = "compile";
    
        String SCOPE_COMPILE_PLUS_RUNTIME = "compile+runtime";
    
        String SCOPE_TEST = "test";
    
        String SCOPE_RUNTIME = "runtime";
    
        String SCOPE_RUNTIME_PLUS_SYSTEM = "runtime+system";
    
        String SCOPE_PROVIDED = "provided";
    
        String SCOPE_SYSTEM = "system";
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java

            /* farthest is runtime and nearest has lower priority, change to runtime */
            if (Artifact.SCOPE_RUNTIME.equals(farthestArtifact.getScope())
                    && (Artifact.SCOPE_TEST.equals(nearestArtifact.getScope())
                            || Artifact.SCOPE_PROVIDED.equals(nearestArtifact.getScope()))) {
                updateScope = true;
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 36.7K bytes
    - Viewed (0)
Back to top