Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for assert (5.84 sec)

  1. maven-model/src/test/java/org/apache/maven/model/BuildTest.java

            assertNotNull(new Build().toString());
        }
    
        public void testToStringNotNonsense() {
            Build build = new Build();
    
            String s = build.toString();
    
            assert "Build {BuildBase {PluginConfiguration {PluginContainer {}}}}".equals(s) : s;
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            // Arrange
            CliRequest request = new CliRequest(new String[] {"-Dw=x=y", "validate"}, null);
    
            // Act
            cli.cli(request);
            cli.properties(request);
    
            // Assert
            assertThat(request.getUserProperties().getProperty("w"), is("x=y"));
        }
    
        @Test
        void populatePropertiesSpace() throws Exception {
            // Arrange
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 23:31:59 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  3. maven-model/src/test/java/org/apache/maven/model/IssueManagementTest.java

            IssueManagement im = new IssueManagement();
            im.setSystem("Velociraptor");
            im.setUrl("https://velo.localdomain");
    
            String s = im.toString();
    
            assert "IssueManagement {system=Velociraptor, url=https://velo.localdomain}".equals(s) : s;
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. maven-slf4j-provider/src/main/java/org/apache/maven/slf4j/MavenSimpleLogger.java

            }
            stream.println(builder);
    
            printStackTrace(t, stream, prefix);
        }
    
        protected String getLocation(final StackTraceElement e) {
            assert e != null;
    
            if (e.isNativeMethod()) {
                return "Native Method";
            } else if (e.getFileName() == null) {
                return "Unknown Source";
            } else if (e.getLineNumber() >= 0) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Apr 03 17:49:40 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. maven-model/src/test/java/org/apache/maven/model/LicenseTest.java

            License license = new License();
            license.setName("Unlicense");
            license.setUrl("http://lic.localdomain");
    
            String s = license.toString();
    
            assert "License {name=Unlicense, url=http://lic.localdomain}".equals(s) : s;
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. maven-compat/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java

            String myResourcePath = ExpressionDocumenter.class.getName().replace('.', '/') + ".class";
    
            URL myResource = ExpressionDocumenter.class.getClassLoader().getResource(myResourcePath);
    
            assert myResource != null : "The resource is this class itself loaded by its own classloader and must exist";
    
            String myClasspathEntry = myResource.getPath();
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 11:28:54 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/AboutTheStubs.html

    used to test the individual components in the lifecycle with data that has expected characteristics
    and can be asserted as desired.
    
    You can change/extend these stubs, and tests should not be breaking too much, since most tests
    assert using expected values from the stubs. Normally, when you try to use data from the stubs that
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Jul 02 16:47:10 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/Result.java

        }
    
        /**
         * Success with warnings
         *
         * @param model
         * @param problems
         */
        public static <T> Result<T> success(T model, Iterable<? extends ModelProblem> problems) {
            assert !hasErrors(problems);
            return new Result<>(false, model, problems);
        }
    
        /**
         * Success with warnings
         *
         * @param model
         * @param results
         */
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. maven-model-builder/src/test/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractorTest.java

        public void testIllegalIndexedType() throws Exception {
            try {
                ReflectionValueExtractor.evaluate("h.value[1]", new ValueHolder("string"));
            } catch (Exception e) {
                // TODO assert exception message
            }
        }
    
        /**
         * <p>testIllegalMappedType.</p>
         *
         * @throws Exception if any.
         */
        @Test
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Oct 17 17:55:08 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  10. maven-model-builder/src/main/java/org/apache/maven/model/building/Result.java

        }
    
        /**
         * Success with warnings
         *
         * @param model
         * @param problems
         */
        public static <T> Result<T> success(T model, Iterable<? extends ModelProblem> problems) {
            assert !hasErrors(problems);
            return new Result<>(false, model, problems);
        }
    
        /**
         * Success with warnings
         *
         * @param model
         * @param results
         */
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top