Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 340 for Empty (0.02 seconds)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeResultTest.java

            @Test
            @DisplayName("should create empty result")
            void shouldCreateEmptyResult() {
                UpgradeResult result = UpgradeResult.empty();
    
                assertTrue(result.success(), "Empty result should be successful");
                assertEquals(0, result.processedCount(), "Empty result should have no processed POMs");
                assertEquals(0, result.modifiedCount(), "Empty result should have no modified POMs");
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Jun 07 06:22:47 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  2. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvn/MavenOptions.java

         */
        @Nonnull
        Optional<String> alternatePomFile();
    
        /**
         * Indicates whether Maven should operate in non-recursive mode (i.e., not build child modules).
         *
         * @return an {@link Optional} containing true if non-recursive mode is enabled, false if disabled, or empty if not specified
         */
        @Nonnull
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 8K bytes
    - Click Count (0)
  3. impl/maven-core/src/test/java/org/apache/maven/plugin/internal/MavenPluginValidatorTest.java

            descriptor.setVersion("0.1");
            List<String> errors = new ArrayList<>();
            mavenPluginValidator.validate(plugin, descriptor, errors);
            assertFalse(errors.isEmpty(), "Expected collection to not be empty but was empty");
        }
    
        @Test
        void testInvalidArtifactId() {
            Artifact plugin = new DefaultArtifact(
                    "org.apache.maven.its.plugins",
                    "maven-it-plugin",
                    "0.1",
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  4. src/bytes/buffer_test.go

    }
    
    // Empty buf through repeated reads into fub.
    // The initial contents of buf corresponds to the string s.
    func empty(t *testing.T, testname string, buf *Buffer, s string, fub []byte) {
    	check(t, testname+" (empty 1)", buf, s)
    
    	for {
    		n, err := buf.Read(fub)
    		if n == 0 {
    			break
    		}
    		if err != nil {
    			t.Errorf(testname+" (empty 2): err should always be nil, found err == %s", err)
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Nov 14 19:01:17 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java

            }
            return Optional.empty();
        }
    
        @Override
        public Optional<Boolean> showVersionAndExit() {
            if (commandLine.hasOption(CLIManager.SHOW_VERSION_AND_EXIT)) {
                return Optional.of(Boolean.TRUE);
            }
            return Optional.empty();
        }
    
        @Override
        public Optional<Boolean> showVersion() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Oct 08 07:36:42 GMT 2025
    - 21.3K bytes
    - Click Count (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/CommonsCliMavenOptions.java

            }
            return Optional.empty();
        }
    
        @Override
        public Optional<Boolean> nonRecursive() {
            if (commandLine.hasOption(CLIManager.NON_RECURSIVE)) {
                return Optional.of(Boolean.TRUE);
            }
            return Optional.empty();
        }
    
        @Override
        public Optional<Boolean> updateSnapshots() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Sep 25 17:39:57 GMT 2025
    - 14.8K bytes
    - Click Count (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java

         * The default value is empty.
         */
        default Optional<String> module() {
            return Optional.empty();
        }
    
        /**
         * {@return the version of the platform where the code will be executed}
         * In a Java environment, this is the value of the {@code --release} compiler option.
         * The default value is empty.
         */
        default Optional<Version> targetVersion() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Nov 07 13:11:07 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  8. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/mvnenc/EncryptOptions.java

         *
         * @return an {@link Optional} containing the boolean value {@code true} if specified, or empty
         */
        Optional<Boolean> force();
    
        /**
         * Should imply "yes" to all questions.
         *
         * @return an {@link Optional} containing the boolean value {@code true} if specified, or empty
         */
        Optional<Boolean> yes();
    
        /**
         * Returns the list of encryption goals to be executed.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 2K bytes
    - Click Count (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderResult.java

         *
         * @param modelId The identifier of the model (groupId:artifactId:version) or empty string for the super POM.
         * @return The active profiles for the specified model or an empty list if the model has no active profiles.
         * @since 4.0.0
         */
        @Nonnull
        List<Profile> getActivePomProfiles(String modelId);
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 17:20:31 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  10. cmd/os-readdir_test.go

    type result struct {
    	dir     string
    	entries []string
    }
    
    // Test to read empty directory.
    func setupTestReadDirEmpty(t *testing.T) (testResults []result) {
    	// Add empty entry slice for this test directory.
    	testResults = append(testResults, result{t.TempDir(), []string{}})
    	return testResults
    }
    
    // Test to read non-empty directory with only files.
    func setupTestReadDirFiles(t *testing.T) (testResults []result) {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue May 27 15:19:03 GMT 2025
    - 7.5K bytes
    - Click Count (0)
Back to Top