Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 143 for AssertJ (0.09 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r10rc1/PassingCommandLineArgumentsCrossVersionSpec.groovy

            given:
            file('build.gradle') << """
    task foo { doLast { assert false } }
    task bar { doLast { assert true } }
    """
    
            when:
            withConnection {
                it.newBuild().forTasks('foo').withArguments('bar').run()
            }
    
            then:
            noExceptionThrown()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeleteTaskIntegrationTest.groovy

        def "delete task removes specified files"() {
            file('foo') << "foo"
            file('bar') << "bar"
            file('baz') << "baz"
    
            buildFile << """
                assert file('foo').exists()
                assert file('bar').exists()
                assert file('baz').exists()
    
                task clean(type: Delete) {
                    delete 'foo'
                    delete file('bar')
                    delete files('baz')
                 }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/DefaultDynamicCallProblemReportingTest.kt

     * limitations under the License.
     */
    
    package org.gradle.internal.cc.impl
    
    import org.junit.Assert.assertEquals
    import org.junit.Assert.assertFalse
    import org.junit.Assert.assertThrows
    import org.junit.Assert.assertTrue
    import org.junit.Test
    import java.util.Collections
    import java.util.concurrent.CountDownLatch
    import kotlin.concurrent.thread
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r213/ModelsWithGradleProjectCrossVersionSpec.groovy

            } else {
                assert project.parent.path == parentPath
            }
            // Order of children is not guaranteed for Gradle < 2.0
            assert project.children*.path as Set == childPaths as Set
            assert project.projectIdentifier.projectPath == path
            assert project.projectIdentifier.buildIdentifier.rootDir == rootDir
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProviderConventionMappingIntegrationTest.groovy

                    @Internal abstract RegularFileProperty getBar()
    
                    @TaskAction
                    void useIt() {
                        assert foo.asFile.get().name == "foo"
                        assert bar.asFile.get().name == "bar"
                    }
                }
                tasks.register("mytask", MyTask) {
                    def layout = project.layout
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 12:27:37 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/RunTasksBeforeRunActionCrossVersion.groovy

                it.action(new SimpleAction())
                    .forTasks("hello", "bye")
                    .setStandardOutput(stdOut)
                    .run()
            }
    
            then:
            assert stdOut.toString().contains("hello")
            assert stdOut.toString().contains("bye")
        }
    
        def "tasks are run before action is executed"() {
            when:
            def stdOut = new ByteArrayOutputStream()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/util/workloadinstances/index_test.go

    	verifyGetByIP := func(ip string, expected []*model.WorkloadInstance) {
    		assert.Equal(t, expected, index.GetByIP(ip))
    	}
    
    	// GetByIP should return 2 workload instances
    
    	verifyGetByIP("2.2.2.2", []*model.WorkloadInstance{wi3, wi1})
    
    	// Delete should return previously inserted value
    
    	deleted := index.Delete(wi1)
    	assert.Equal(t, wi1, deleted)
    
    	// GetByIP should return 1 workload instance
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/CacheableTaskProgressEventsCrossVersionSpec.groovy

                unpackOperations.each {
                    assert !it.children
                }
                pullOperations.each {
                    if (it.descriptor.displayName.contains('local')) {
                        assert unpackOperations.containsAll(it.children)
                    } else {
                        assert !it.children
                    }
                }
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/SettingsScriptExecutionIntegrationTest.groovy

    new org.gradle.test.BuildClass()
    
    println 'quiet message'
    logging.captureStandardOutput(LogLevel.ERROR)
    println 'error message'
    assert settings != null
    // TODO:configuration-cache consider restoring assertion on the relationship
    //  between buildscript.classLoader and getClas().classLoader
    assert getClass().classLoader.parent == Thread.currentThread().contextClassLoader
    Gradle.class.classLoader.loadClass('${implClassName}')
    try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/wrapper-main/src/crossVersionTest/groovy/org/gradle/integtests/wrapper/WrapperCrossVersionIntegrationTest.groovy

            def result = executer.usingExecutable('gradlew').withTasks('hello').run()
    
            assert result.output.contains("hello from $executionVersion.version.version")
            assert result.output.contains("using distribution at ${executer.gradleUserHomeDir.file("wrapper/dists")}")
            assert result.output.contains("using Gradle user home at $executer.gradleUserHomeDir")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:58:56 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top