Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for notThrown (0.17 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r34/BuildActionCrossVersionSpec.groovy

            withConnection { ProjectConnection connection ->
                connection.action(action).run()
            }
    
            then:
            notThrown Exception
    
            cleanup:
            classloader?.close()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/TransformersTest.groovy

            e.message == "Failed to cast object $arg of type ${arg.class.name} to target type ${Integer.name}"
    
            when:
            def result = cast(CharSequence).transform(arg)
    
            then:
            notThrown(ClassCastException)
            result.is arg
        }
    
        def "as string"() {
            expect:
            asString().transform(1) == "1"
            asString().transform(null) == null
        }
    
        def "to URL"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/classloader/DefaultClassLoaderFactoryTest.groovy

            then:
            c != DefaultClassLoaderFactoryTestHelper
    
            when:
            Thread.currentThread().contextClassLoader = cl
            c.getConstructor().newInstance().doStuff()
    
            then:
            notThrown()
        }
    
        def getClasspath() {
            return DefaultClassPath.of(ClasspathUtil.getClasspathForClass(DefaultClassLoaderFactoryTestHelper))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/InitScriptExecutionIntegrationTest.groovy

    }
    '''
    
            buildFile << 'task doStuff'
    
            when:
            executer.usingInitScript(initScript1).usingInitScript(initScript2).withTasks('doStuff').run()
    
            then:
            notThrown(Throwable)
        }
    
        def "each Kotlin init script has independent ClassLoader"() {
            given:
            createExternalJar()
    
            and:
            TestFile initScript1 = file('init1.init.gradle.kts')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/DisabledTaskExecutionOnIncludedBuildsCrossVersionSpec.groovy

                newBuild().forLaunchables(task).run()
                newBuild().forLaunchables(selector).run()
            }
    
            then:
            notThrown(Throwable)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r82/CustomToolingModelCrossVersionSpec.groovy

            when:
            withConnection { connection ->
                fetchCustomModelsWithRestrictedMemoryAction(connection)
            }
    
            then:
            notThrown(GradleConnectionException)
            assertHasConfigureSuccessfulLogging()
        }
    
        private fetchCustomModelsWithRestrictedMemoryAction(ProjectConnection connection) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. platforms/software/reporting/src/test/groovy/org/gradle/api/reporting/internal/DefaultReportContainerTest.groovy

                createReport("c")
            }
        }
    
        def "reports given at construction are available"() {
            when:
            container.configure { a {} }
    
            then:
            notThrown(MissingPropertyException)
        }
    
        def "container is immutable"() {
            when:
            container.add(Stub(Report))
    
            then:
            thrown(ReportContainer.ImmutableViolationException)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/DefaultDaemonConnectionTest.groovy

            connection.disconnect()
            daemonConnection.stop()
    
            then:
            notThrown()
        }
    
        def "handles case where cannot receive from connection"() {
            when:
            connection.queueBroken()
            daemonConnection.stop()
    
            then:
            notThrown()
        }
    
        def "handles failure to notify stdin handler"() {
            StdinHandler handler = Mock()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiIntegrationTest.groovy

                connector.useBuildDistribution()
            }
            toolingApi.withConnection { connection -> connection.newBuild().forTasks('check').run() }
    
            then:
            notThrown(Throwable)
        }
    
        def "tooling api searches up from the project directory to find the wrapper properties"() {
            settingsFile << "include 'child'"
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ExtraPropertiesExtensionTest.groovy

            when:
            project.custom {
                dynamic {
                    doLast { // should resolve to task.doLast
    
                    }
                }
            }
    
            then:
            notThrown(Exception)
        }
        
        def "can use [] notation to get and set"() {
            when:
            extension["foo"]
            
            then:
            thrown(MissingPropertyException)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top