Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 44 for strictlyEquals (0.16 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGeneratorTest.groovy

            def impl2 = proxyClass.newInstance(state2, typeConverter)
    
            then:
            Matchers.strictlyEquals(impl1, sameState)
            Matchers.strictlyEquals(impl1, sameStateDifferentType)
            !impl1.equals(impl2)
        }
    
        def "Two views are equal when their state objects are equal"() {
            def state1 = Mock(GeneratedViewState)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 27.6K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/rules/ClosureBackedRuleActionTest.groovy

        }
    
        def "equality"() {
            given:
            def c = {String foo -> }
            def a1 = action(c)
    
            expect:
            Matchers.strictlyEquals(a1, action(c))
            a1 == action(c)
            a1 != action({String bar -> })
            a1 != new ClosureBackedRuleAction(Integer.class, { Integer val -> })
        }
    
        RuleAction<String> action(Closure<?> c) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/DefaultResolvedDependencySpec.groovy

    import org.gradle.util.TestUtil
    import spock.lang.Specification
    
    import static com.google.common.collect.Iterables.concat
    import static com.google.common.collect.Sets.newHashSet
    import static org.gradle.util.Matchers.strictlyEquals
    import static org.gradle.util.internal.WrapUtil.toSet
    
    class DefaultResolvedDependencySpec extends Specification {private BuildOperationExecutor buildOperationProcessor = new TestBuildOperationExecutor()
    
        def init() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/test/groovy/org/gradle/util/GradleVersionTest.groovy

            // Note: buildTime is null when running a local build
            version.buildTimestamp == null || version.buildTimestamp.endsWith("UTC")
        }
    
        def equalsAndHashCode() {
            expect:
            Matchers.strictlyEquals(GradleVersion.version('0.9'), GradleVersion.version('0.9'))
            GradleVersion.version('0.9') != GradleVersion.version('1.0')
        }
    
        def canConstructVersionFromString(String version) {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 8K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/core/ModelPathTest.groovy

            path == ModelPath.ROOT.child("a").child("b").child("c")
        }
    
        def "equals and hashcode"() {
            def p1 = ModelPath.path("a")
    
            expect:
            Matchers.strictlyEquals(p1, ModelPath.path("a"))
            p1 != ModelPath.path(("b"))
            p1 != ModelPath.path(("abc"))
            p1 != ModelPath.path(("a.b"))
            p1 != p1.parent
            p1 != p1.child("b")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/jvm/JvmTest.groovy

                    file 'java'
                }
            }
    
            expect:
            def jvm = new Jvm(os, installDir, "1.8.0", 8)
            def jvm2 = new Jvm(os, installDir, "1.8.0", 8)
            Matchers.strictlyEquals(jvm, jvm2)
        }
    
        def "Returns current JVM when located using Java home dir"() {
            expect:
            def current = Jvm.current()
            def jvm = Jvm.forHome(current.javaHome)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 00:09:57 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/adapter/ProtocolToModelAdapterTest.groovy

            def equal = adapter.adapt(TestModel.class, protocolModel1)
            def different = adapter.adapt(TestModel.class, protocolModel2)
    
            expect:
            Matchers.strictlyEquals(model, equal)
            model != different
        }
    
        def methodInvocationOnModelDelegatesToTheProtocolModelObject() {
            TestProtocolModel protocolModel = Mock()
            _ * protocolModel.getName() >> 'name'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/DefaultModuleIdentifierSpec.groovy

     * limitations under the License.
     */
    package org.gradle.api.internal.artifacts
    
    import spock.lang.Specification
    
    import static org.gradle.util.Matchers.strictlyEqual
    
    class DefaultModuleIdentifierSpec extends Specification {
    
        def "has useful toString()"() {
            def module = DefaultModuleIdentifier.newId("org.foo", "bar")
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/DefaultModuleVersionIdentifierSpec.groovy

     * limitations under the License.
     */
    package org.gradle.api.internal.artifacts
    
    import spock.lang.Specification
    
    import static org.gradle.util.Matchers.strictlyEqual
    
    class DefaultModuleVersionIdentifierSpec extends Specification {
        def "has useful toString()"() {
            def module = new DefaultModuleVersionIdentifier("group", "module", "version")
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/local/model/MissingLocalArtifactMetadataTest.groovy

            expect:
            withClassifier Matchers.strictlyEqual(same)
            withClassifier != differentName
            withClassifier != differentType
            withClassifier != differentExt
            withClassifier != differentAttributes
            withClassifier != emptyParts
            withClassifier != differentFile
    
            emptyParts Matchers.strictlyEqual(emptyPartsSame)
            emptyParts != withClassifier
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.7K bytes
    - Viewed (0)
Back to top