Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for newInstance (0.07 sec)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java

                + "  </dependencyManagement>\n"
                + "</project>\n";
    
        @Test
        void testCycleInImports() throws Exception {
            ModelBuilder builder = new DefaultModelBuilderFactory().newInstance();
            assertNotNull(builder);
    
            DefaultModelBuildingRequest request = new DefaultModelBuildingRequest();
            request.setModelSource(new StringModelSource(BASE1));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/ToolchainsBuildingExceptionTest.java

        }
    
        @Test
        void testOneProblem() {
            ProblemCollector problemCollector = ProblemCollectorFactory.newInstance(null);
            problemCollector.add(Problem.Severity.ERROR, "MESSAGE", 3, 5, new Exception());
            ToolchainsBuildingException e = new ToolchainsBuildingException(problemCollector.getProblems());
            assertEquals(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. compat/maven-model/src/test/java/org/apache/maven/model/v4/MavenModelVersionTest.java

        }
    
        @Test
        void testV4ModelPriority() {
            Model m = model.withBuild(Build.newInstance()
                    .withPlugins(Collections.singleton(Plugin.newInstance()
                            .withExecutions(Collections.singleton(
                                    PluginExecution.newInstance().withPriority(5))))));
            assertEquals("4.0.0", new MavenModelVersion().getModelVersion(m));
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. compat/maven-builder-support/src/test/java/org/apache/maven/building/ProblemCollectorFactoryTest.java

    class ProblemCollectorFactoryTest {
    
        @Test
        void testNewInstance() {
            ProblemCollector collector1 = ProblemCollectorFactory.newInstance(null);
    
            Problem problem = new DefaultProblem("MESSAGE1", null, null, -1, -1, null);
            ProblemCollector collector2 = ProblemCollectorFactory.newInstance(Collections.singletonList(problem));
    
            assertNotSame(collector1, collector2);
            assertEquals(0, collector1.getProblems().size());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/PluginsMetadataGeneratorFactory.java

        public static final String NAME = "plugins";
    
        @Override
        public MetadataGenerator newInstance(RepositorySystemSession session, InstallRequest request) {
            return new PluginsMetadataGenerator(session, request);
        }
    
        @Override
        public MetadataGenerator newInstance(RepositorySystemSession session, DeployRequest request) {
            return new PluginsMetadataGenerator(session, request);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/SnapshotMetadataGeneratorFactory.java

        public static final String NAME = "snapshot";
    
        @Override
        public MetadataGenerator newInstance(RepositorySystemSession session, InstallRequest request) {
            return new LocalSnapshotMetadataGenerator(session, request);
        }
    
        @Override
        public MetadataGenerator newInstance(RepositorySystemSession session, DeployRequest request) {
            return new RemoteSnapshotMetadataGenerator(session, request);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/VersionsMetadataGeneratorFactory.java

        public static final String NAME = "versions";
    
        @Override
        public MetadataGenerator newInstance(RepositorySystemSession session, InstallRequest request) {
            return new VersionsMetadataGenerator(session, request);
        }
    
        @Override
        public MetadataGenerator newInstance(RepositorySystemSession session, DeployRequest request) {
            return new VersionsMetadataGenerator(session, request);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderFactoryTest.java

            return new File(Paths.get(BASE_DIR, name + ".xml").toString()).getAbsoluteFile();
        }
    
        @Test
        void testCompleteWiring() throws Exception {
            ModelBuilder builder = new DefaultModelBuilderFactory().newInstance();
            assertNotNull(builder);
    
            DefaultModelBuildingRequest request = new DefaultModelBuildingRequest();
            request.setProcessPlugins(true);
            request.setPomFile(getPom("simple"));
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

      private ReentrantLock lock02;
      private ReentrantLock lock03;
    
      @Override
      protected void setUp() throws Exception {
        super.setUp();
        CycleDetectingLockFactory factory = CycleDetectingLockFactory.newInstance(Policies.THROW);
        lockA = factory.newReentrantLock("LockA");
        lockB = factory.newReentrantLock("LockB");
        lockC = factory.newReentrantLock("LockC");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

      private ReentrantLock lock02;
      private ReentrantLock lock03;
    
      @Override
      protected void setUp() throws Exception {
        super.setUp();
        CycleDetectingLockFactory factory = CycleDetectingLockFactory.newInstance(Policies.THROW);
        lockA = factory.newReentrantLock("LockA");
        lockB = factory.newReentrantLock("LockB");
        lockC = factory.newReentrantLock("LockC");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.1K bytes
    - Viewed (0)
Back to top