- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 116 for equalTo (1.92 sec)
-
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/DelegatedGradlePropertiesExtensionsTest.kt
withMockForSettings(existing = "p" to 42) { val p: Int by settings assertThat(p, equalTo(42)) } withMockForProject(existing = "p" to 42) { val p: Int by project assertThat(p, equalTo(42)) } } @Test fun `non-nullable delegated property access of existing null gradle property throws`() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 15:44:53 UTC 2024 - 8.3K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheKeyTest.kt
}, equalTo( cacheKeyStringFromStartParameter { includeBuild(file("included")) } ) ) assertThat( cacheKeyStringFromStartParameter { includeBuild(file("included")) }, not(equalTo(cacheKeyStringFromStartParameter { })) ) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 6.1K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/BaseTypeCodecTest.kt
assertThat(properties, equalTo(this)) } } @Test fun `can handle Hashtable`() { val hashtable = Hashtable<String, Any>(100) hashtable.put("key1", "value1") hashtable.put("key2", true) hashtable.put("key3", 42) configurationCacheRoundtripOf(hashtable).run { assertThat(hashtable, equalTo(this)) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 1.5K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/UserTypesCodecTest.kt
) } } @Test fun `Peano sanity check`() { assertThat( Peano.fromInt(0), equalTo(Peano.Z) ) assertThat( Peano.fromInt(1024).toInt(), equalTo(1024) ) } sealed class Peano { companion object {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 3.4K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/problems/PropertyTraceTest.kt
import org.gradle.api.Task import org.gradle.internal.configuration.problems.PropertyKind import org.gradle.internal.configuration.problems.PropertyTrace import org.hamcrest.CoreMatchers.equalTo import org.hamcrest.MatcherAssert.assertThat import org.junit.Test class PropertyTraceTest { @Test fun `field of bean found in input property of task`() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 1.8K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/AbstractFunctionalTypeTest.kt
assertThat( force(value), equalTo("after") ) } protected fun <T : Any> assertEagerEvaluationOf(eager: T, extract: T.() -> Any?) { Runtime.value = "before" val value = configurationCacheRoundtripOf(eager) Runtime.value = "after" assertThat( extract(value), equalTo("before") ) } object Runtime {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 1.6K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/isolation/IsolatedActionSerializerTest.kt
import org.hamcrest.Matchers.equalTo import org.junit.Test import java.util.function.Consumer typealias TestableIsolatedAction<T> = IsolatedAction<in Consumer<T>> class IsolatedActionSerializerTest { @Test fun `can serialize Kotlin action`() { assertThat( valueCarriedBy(roundtripOf(isolatedActionCarrying(42))), equalTo(42) ) } @Test
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 6.4K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheBuildOperationsTest.kt
import org.gradle.internal.operations.CallableBuildOperation import org.gradle.internal.operations.RunnableBuildOperation import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider import org.hamcrest.CoreMatchers.equalTo import org.hamcrest.MatcherAssert.assertThat import org.junit.Rule import org.junit.Test import org.mockito.ArgumentCaptor import org.mockito.ArgumentMatchers.any import java.util.UUID
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 3.1K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/problems/ConfigurationCacheProblemsSummaryTest.kt
import org.gradle.internal.configuration.problems.PropertyTrace import org.gradle.internal.configuration.problems.StructuredMessage import org.hamcrest.MatcherAssert.assertThat import org.hamcrest.Matchers.equalTo import org.junit.Assert.assertFalse import org.junit.Assert.assertTrue import org.junit.Test class ConfigurationCacheProblemsSummaryTest { @Test
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 2.9K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/contracts/description/booleans/KtPredicates.kt
override fun hashCode(): Int = Objects.hashCode(backingArgument, backingType, backingIsNegated) override fun equals(other: Any?): Boolean { return this === other || other is KaContractIsInstancePredicateExpression && other.backingArgument == backingArgument &&
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 2.9K bytes - Viewed (0)