Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 153 for equals (0.35 sec)

  1. platforms/software/dependency-management/src/crossVersionTest/groovy/org/gradle/integtests/resolve/artifactreuse/SameCacheUsageCrossVersionIntegrationTest.groovy

        }
    
        static boolean isIgnoredMilestone(DefaultGradleDistribution distribution) {
            def v = distribution.version
            v.snapshot && v.baseVersion.version.equals("5.0") && v < GradleVersion.version("5.0-20181004235847+0000") // 5.0-milestone-1 had a different cache layout version
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/AbstractTaskTest.groovy

        }
    
        def setup() {
            serviceRegistry.add(ObjectFactory.class, objectFactory)
        }
    
        def "test Task"() {
            expect:
            getTask().isEnabled()
            TEST_TASK_NAME.equals(getTask().getName())
            getTask().getDescription() == null
            project.is(getTask().getProject())
            getTask().getStandardOutputCapture() != null
            getTask().getInputs() != null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/GradleModuleMetadataParserTest.groovy

        }
    
        def "new hierarchy in ModuleDependency is added to equals and hashcode"() {
            when:
            // If this test fails, you added a type hierarchy to GradleModuleMetadataParser.ModuleDependency, update this test _after_ making sure it is considered by hashcode and equals
            def modDepClass = GradleModuleMetadataParser.ModuleDependency.class
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 38K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/DefaultBuildIdentifierTest.groovy

            expect:
            def id = new DefaultBuildIdentifier(Path.path(":thing"))
            id.buildPath == ':thing'
            id.currentBuild
            id.toString() == "build ':thing'"
        }
    
        def "has equals"() {
            expect:
            def id = new DefaultBuildIdentifier(Path.path(":one"))
            def same = new DefaultBuildIdentifier(Path.path(":one"))
            def different = new DefaultBuildIdentifier(Path.path(":two"))
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jul 11 09:18:31 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGSuiteIntegrationTest.groovy

            file("src/test/java/FooTest.java") << """
                import org.testng.annotations.*;
    
                public class FooTest {
                    @Test public void foo() {
                      assert System.getProperty("name").equals("value");
                    }
                }
            """
            when:
            succeeds("test")
            then:
            def result = new DefaultTestExecutionResult(testDirectory)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/platform/JUnitPlatformUserGuideIntegrationTest.groovy

        }
    
        @BeforeEach
        void init(TestInfo testInfo) {
            String displayName = testInfo.getDisplayName();
            assertTrue(displayName.equals("TEST 1") || displayName.equals("test2()"));
        }
    
        @Test
        @DisplayName("TEST 1")
        @Tag("my-tag")
        void test1(TestInfo testInfo) {
            assertEquals("TEST 1", testInfo.getDisplayName());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/event/BroadcastDispatchTest.groovy

            1 * listener2.doSomething("param") >> { throw failure2 }
            1 * listener3.dispatch(invocation)
            0 * _
        }
    
        def "can remove listener implemented using Proxy that does not implement equals()"() {
            TestListener other1 = Stub(TestListener)
            TestListener other2 = Stub(TestListener)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 14.9K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/DefaultGradleDistribution.groovy

            } else {
                return CacheVersion.parse("0.1");
            }
        }
    
        @Override
        boolean wrapperCanExecute(GradleVersion version) {
            if (version.equals(GradleVersion.version("0.8")) || isVersion("0.8")) {
                // There was a breaking change after 0.8
                return false;
            }
            if (isVersion("0.9.1")) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 16:09:27 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. platforms/core-runtime/cli/src/test/groovy/org/gradle/cli/AbstractPropertiesCommandLineConverterTest.groovy

        }
    
        def "parses properties args with no property value"() {
            expect:
            convert("-Aa", "-Ab=") == [a: "", b: ""]
        }
    
        def "parses properties arg containing equals"() {
            expect:
            convert("-Aprop=a b=c", "-Aprop2==", "-Aprop3=ab=") == [prop: 'a b=c', prop2: '=', prop3: 'ab=']
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:00:57 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitAbortedTestClassIntegrationTest.groovy

                public class SkippingRuleTests {
    
                    @Rule
                    public MethodRule misbehavingSkippingRule = (statement, method, target) -> {
                        assumeFalse(method.getName().equals("b"));
                        return statement;
                    };
    
                    @Test
                    public void a() {
                    }
    
                    @Test
                    public void b() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top