Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 169 for equals (0.61 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildOperationNotificationsFixture.groovy

                        verify(notification.getNotificationOperationResult(), 'Result')
                    }
    
                    private void verify(Object obj, String suffix = null) {
                        if (obj.getClass().getName().equals("org.gradle.internal.operations.OperationProgressDetails")) {
                            // This progress notification is emitted by Gradle itself.
                            return;
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/protocol/ChannelIdentifierTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.internal.remote.internal.hub.protocol
    
    import spock.lang.Specification
    
    class ChannelIdentifierTest extends Specification {
        def "equals and hash code"() {
            def id = new ChannelIdentifier("channel")
            def same = new ChannelIdentifier("channel")
            def different = new ChannelIdentifier("other")
    
            expect:
            id == same
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGeneratorTest.groovy

            boolean isFlag()
        }
    
        def "equals() returns false for non-compatible types"() {
            def impl = newNodeBackedInstance(SomeType)
            expect:
            !impl.equals(null)
            !impl.equals(1)
        }
    
        def "Two node backed views are equal when their state objects are equal"() {
            def state1 = Mock(ModelElementState)
            def state2 = Mock(ModelElementState)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 27.6K bytes
    - Viewed (0)
  4. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy

            file("build/reports/pmd/test.xml").assertContents(containsClass("org.gradle.Class1Test"))
            output.contains "\tUsing multiple unary operators may be a bug"
            output.contains "\tEnsure you override both equals() and hashCode()"
        }
    
        void "can configure number of threads on good code"() {
            goodCode()
            buildFile << """
                pmd {
                    threads = 2
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top