- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 153 for equals (0.15 sec)
-
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ScalarTypesInManagedModelIntegrationTest.groovy
assert new BigInteger("4").equals(element.getBigIntegerProperty()); assert new BigDecimal("5.5").equals(element.getBigDecimalProperty()); assert element.getStringProperty().equals("test"); assert "sample.txt".equals(element.getFile().toString());
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 27.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/DefaultIvyExtraInfoTest.groovy
(new NamespaceId('http://my.extra.info', 'bar')): 'barValue' ]) when: extraInfo.get('foo') then: def e = thrown(InvalidUserDataException) e.message.equals('Cannot get extra info element named \'foo\' by name since elements with this name were found from multiple namespaces (http://my.extra.info, http://some.extra.info). Use get(String namespace, String name) instead.') }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.2K bytes - Viewed (0) -
platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/eclipse/model/ResourceFilterMatcherTest.groovy
import org.gradle.plugins.ide.eclipse.model.internal.DefaultResourceFilterMatcher import spock.lang.Specification public class ResourceFilterMatcherTest extends Specification { def "ResourceFilterMatcher equals and hashCode satisfies contract"() { when: EqualsVerifier.forClass(DefaultResourceFilterMatcher.class) .suppress(Warning.NONFINAL_FIELDS)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:12 UTC 2023 - 1.5K bytes - Viewed (0) -
platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/idea/model/PathTest.groovy
import spock.lang.Specification class PathTest extends Specification { def "paths are equal when they have the same canonical url"() { expect: Matchers.strictlyEquals(new Path('file://$ROOT_DIR$/file'), new Path('file://$ROOT_DIR$/file')) new Path('file://$ROOT_DIR$/file') != new Path('file://$ROOT_DIR$/other') } def "equals honors subclasses"() { expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:12 UTC 2023 - 1.2K bytes - Viewed (0) -
platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/eclipse/model/ResourceFilterTest.groovy
import org.gradle.plugins.ide.eclipse.model.internal.DefaultResourceFilterMatcher import spock.lang.Specification public class ResourceFilterTest extends Specification { def "ResourceFilter equals and hashCode satisfies contract"() { when: EqualsVerifier.forClass(DefaultResourceFilter.class) .suppress(Warning.NONFINAL_FIELDS)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:12 UTC 2023 - 1.6K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/NormalizingCopyActionDecoratorTest.groovy
} boolean matches(Object o) { FileCopyDetails details = (FileCopyDetails) o return details.getRelativePath().getPathString().equals(path) } } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jan 22 14:38:33 UTC 2024 - 4.5K bytes - Viewed (0) -
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) -
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) -
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) -
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)