Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 5,440 for cunit (0.08 sec)

  1. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/plugin/java/junit/PluginTest.java.template

    ${fileComment.multilineComment}${packageDecl.javaStatement}
    import org.gradle.testfixtures.ProjectBuilder;
    import org.gradle.api.Project;
    import org.junit.jupiter.api.Test;
    import static org.junit.jupiter.api.Assertions.*;
    
    /**
     * A simple unit test for the '${pluginId.value}' plugin.
     */
    class ${className.javaIdentifier} {
        @Test void pluginRegistersATask() {
            // Create a test project and apply the plugin
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 641 bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/concurrent/JavaSystemPropertiesAsyncIOScopeSettingsTest.kt

    import org.gradle.kotlin.dsl.concurrent.JavaSystemPropertiesAsyncIOScopeSettings.Companion.IO_ACTION_TIMEOUT_SYSTEM_PROPERTY
    import org.gradle.util.SetSystemProperties
    import org.junit.Assert.assertEquals
    import org.junit.Assert.fail
    import org.junit.Rule
    import org.junit.Test
    
    
    class JavaSystemPropertiesAsyncIOScopeSettingsTest {
    
        @Rule
        @JvmField
        val setSystemProperties = SetSystemProperties()
    
        @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/concurrent/DefaultAsyncIOScopeFactoryTest.kt

                val isolatedScopeAction = CompletableFuture<Unit>()
                newScope().apply {
                    io { isolatedScopeAction.complete(Unit) }
                }
                assertThat(
                    isolatedScopeAction.get(1, TimeUnit.SECONDS),
                    equalTo(Unit)
                )
            }
        }
    
        @Test
        fun `#io timeout reported upon IOScope#close`() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/scala/force/groovy/src/test/scala/org/gradle/sample/PersonSpec.scala

    package org.gradle.sample
    
    import org.junit.Test
    
    class PersonSpec {
      @Test
      def personCreationShouldSuccessfullyCreatePerson(): Unit = {
        def person: Named = new Person(List("bob", "smith"))
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 203 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/scala/quickstart/kotlin/src/test/scala/org/gradle/sample/PersonSpec.scala

    package org.gradle.sample
    
    import org.junit.Test
    
    class PersonSpec {
      @Test
      def personCreationShouldSuccessfullyCreatePerson(): Unit = {
        def person: Named = new Person(List("bob", "smith"))
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 203 bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/schemaBuidler/FunctionExtractorTest.kt

        fun `adding function may not have a configuring lambda if it returns Unit`() {
            val exception = assertThrows<IllegalStateException> {
                schemaFromTypes(ReceiverTwo::class, listOf(ReceiverTwo::class))
            }
            assertTrue { exception.message!!.contains("@Adding") }
        }
    
        @Test
        fun `adding function with no lambda is accepted if it returns Unit`() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:01 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractChainedListenableFutureTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.util.concurrent.testing.MockFutureListener;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    
    /**
     * Unit tests for any listenable future that chains other listenable futures. Unit tests need only
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/AnalysisFilterTest.kt

            get() = TODO()
    
        @Configuring
        fun n1(fn: NestedForAnalysisFilterTest.() -> Unit): Unit = TODO()
    
        @Configuring
        fun n2(fn: NestedForAnalysisFilterTest.() -> Unit): Unit = TODO()
    }
    
    
    private
    class NestedForAnalysisFilterTest {
        @get:Restricted
        var x = 1
    }
    
    
    class AnalysisFilterTest {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/scala/zinc/kotlin/src/test/scala/org/gradle/sample/PersonSpec.scala

    package org.gradle.sample
    
    import org.junit.Test
    
    class PersonSpec {
      @Test
      def personCreationShouldSuccessfullyCreatePerson(): Unit = {
        def person: Named = new Person(List("bob", "smith"))
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 203 bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/ListeningScheduledExecutorServiceTest.java

          recordedCommand = command;
          recordedDelay = delay;
          recordedTimeUnit = unit;
          return ImmediateScheduledFuture.of("schedule");
        }
    
        @Override
        public <V> ListenableScheduledFuture<V> schedule(
            Callable<V> callable, long delay, TimeUnit unit) {
          recordedDelay = delay;
          recordedTimeUnit = unit;
          try {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Mar 17 20:45:59 UTC 2020
    - 6.1K bytes
    - Viewed (0)
Back to top