Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for NullPointerException (0.2 sec)

  1. maven-builder-support/src/test/java/org/apache/maven/building/FileSourceTest.java

    import static org.junit.jupiter.api.Assertions.assertThrows;
    
    class FileSourceTest {
    
        @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());
        }
    
    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)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

         * @return the derived session
         * @throws NullPointerException if {@code repositories} is null
         */
        @Nonnull
        Session withRemoteRepositories(@Nonnull List<RemoteRepository> repositories);
    
        /**
         * Register the given listener which will receive all events.
         *
         * @param listener the listener to register
         * @throws NullPointerException if {@code listener} is null
         */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 30.2K bytes
    - Viewed (0)
  3. maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

            this.baseFilename = baseFilename;
            this.fileSuffix = fileSuffix;
    
            initializeCleanupMonitoring();
        }
    
        private void initializeCleanupMonitoring() {
            callerInfo = new NullPointerException().getStackTrace()[2];
    
            Runnable warning = this::maybeWarnAboutCleanUp;
    
            cleanupWarning = new Thread(warning);
    
            Runtime.getRuntime().addShutdownHook(cleanupWarning);
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  4. maven-core/src/test/java/org/apache/maven/rtinfo/internal/DefaultRuntimeInformationTest.java

            assertThrows(
                    IllegalArgumentException.class, () -> rtInfo.isMavenVersion(""), "Bad version range wasn't rejected");
    
            assertThrows(
                    NullPointerException.class, () -> rtInfo.isMavenVersion(null), "Bad version range wasn't rejected");
        }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  5. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

         *         obtained, the returned version range's recommended version is set to <code>null</code>.
         *         </p>
         * @throws NullPointerException if the specified <code>VersionRange</code> is
         *                              <code>null</code>.
         */
        public VersionRange restrict(VersionRange restriction) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

            final ModelResolver modelResolver = getModelResolver(request);
            if (workspaceResolver == null && modelResolver == null) {
                throw new NullPointerException(String.format(
                        "request.workspaceModelResolver and request.modelResolver cannot be null (parent POM %s and POM %s)",
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri May 03 08:48:38 GMT 2024
    - 61.5K bytes
    - Viewed (0)
Back to top