Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for assertThat (0.42 sec)

  1. maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformerTest.java

    import org.eclipse.aether.SessionData;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mockito;
    import org.xmlunit.assertj.XmlAssert;
    
    import static org.assertj.core.api.Assertions.assertThat;
    import static org.mockito.ArgumentMatchers.any;
    import static org.mockito.Mockito.when;
    
    class ConsumerPomArtifactTransformerTest {
    
        @Test
        void transform() throws Exception {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Dec 05 09:23:26 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  2. maven-core/src/test/java/org/apache/maven/execution/DefaultBuildResumptionAnalyzerTest.java

            executionResult.setTopologicallySortedProjects(asList(projectA, projectB));
    
            Optional<BuildResumptionData> result = analyzer.determineBuildResumptionData(executionResult);
    
            assertThat(result.isPresent(), is(true));
            assertThat(result.get().getRemainingProjects(), is(asList("test:B")));
        }
    
        @Test
        void resumeFromIsIgnoredWhenFirstProjectFails() {
            MavenProject projectA = createFailedMavenProject("A");
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  3. maven-core/src/test/java/org/apache/maven/project/ProjectModelResolverTest.java

    import org.eclipse.aether.repository.RemoteRepository;
    import org.junit.jupiter.api.Test;
    
    import static org.codehaus.plexus.testing.PlexusExtension.getBasedir;
    import static org.hamcrest.MatcherAssert.assertThat;
    import static org.hamcrest.Matchers.containsString;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Apr 03 17:49:40 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  4. maven-core/src/test/resources/apiv4-repo/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar

    tests * to be slightly more expressive. * <p/> * For example: * <pre>assertThat(cheese, is(equalTo(smelly)))</pre> * instead of: * <pre>assertThat(cheese, equalTo(smelly))</pre> * */ @Factory public static <T> Matcher<T> is(Matcher<T> matcher) { return new Is<T>(matcher); } /** * A shortcut to the frequently used <code>is(equalTo(x))</code>. * <p/> * For example: * <pre>assertThat(cheese, is(smelly))</pre> * instead of: * <pre>assertThat(cheese, is(equalTo(smelly)))</pre> * */ @Factory public static <T>...
    Archive
    - Registered: Sun Apr 14 03:35:08 GMT 2024
    - Last Modified: Sun Oct 02 08:41:25 GMT 2022
    - 31.9K bytes
    - Viewed (0)
  5. maven-core/src/test/java/org/apache/maven/project/ProjectSorterTest.java

            assertEquals(parentProject, projects.get(0));
    
            // the order of these two is non-deterministic, based on when they're added to the reactor.
            assertThat(projects, hasItem(pluginProject));
            assertThat(projects, hasItem(pluginLevelDepProject));
    
            // the declaring project MUST be listed after the plugin and its plugin-level dep, though.
            assertEquals(declaringProject, projects.get(3));
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  6. maven-api-impl/src/test/java/org/apache/maven/internal/impl/resolver/DefaultModelResolverTest.java

    import org.apache.maven.internal.impl.standalone.ApiRunner;
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    import static org.hamcrest.MatcherAssert.assertThat;
    import static org.hamcrest.Matchers.containsString;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/graph/DefaultGraphBuilderTest.java

            } else {
                assertThat(result.hasErrors())
                        .withFailMessage("Expected result to have errors")
                        .isTrue();
                Class<? extends Throwable> expectedException = ((ExceptionThrown) parameterExpectedResult).expected;
                String partOfMessage = ((ExceptionThrown) parameterExpectedResult).partOfMessage;
    
                assertThat(result.getProblems()).hasSize(1);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Dec 05 09:23:26 GMT 2023
    - 27.8K bytes
    - Viewed (0)
  8. maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java

            assertEquals(7, ((List<?>) pom.getValue("build/filters")).size());
            assertThat(pom.getValue("build/filters[1]").toString(), endsWith("child-a.properties"));
            assertThat(pom.getValue("build/filters[2]").toString(), endsWith("child-c.properties"));
            assertThat(pom.getValue("build/filters[3]").toString(), endsWith("child-b.properties"));
            assertThat(pom.getValue("build/filters[4]").toString(), endsWith("child-d.properties"));
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 93.2K bytes
    - Viewed (0)
  9. maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java

                    new DefaultLookup(mockedPlexusContainer));
    
            assertThat(dl.getLifeCycles().get(0).getId(), is("clean"));
            assertThat(dl.getLifeCycles().get(1).getId(), is("default"));
            assertThat(dl.getLifeCycles().get(2).getId(), is("site"));
            assertThat(dl.getLifeCycles().get(3).getId(), is("wrapper"));
            assertThat(dl.getLifeCycles().get(4).getId(), is("etl"));
        }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  10. maven-core/src/test/java/org/apache/maven/graph/ProjectSelectorTest.java

            assertThat(baseDirectoryFromRequest, nullValue());
        }
    
        @Test
        void getBaseDirectoryFromRequestWhenDirectoryIsValidReturnFile() {
            when(mavenExecutionRequest.getBaseDirectory()).thenReturn("path/to/file");
    
            final File baseDirectoryFromRequest = sut.getBaseDirectoryFromRequest(mavenExecutionRequest);
    
            assertThat(baseDirectoryFromRequest, notNullValue());
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 8.6K bytes
    - Viewed (0)
Back to top