Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for notThrown (0.35 sec)

  1. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/protocol/DaemonStatusAndErrorReportingTest.groovy

            then:
            notThrown(NullPointerException)
            status.pid == null
        }
    
        def "PID unboxing should not happen in DaemonStopEvent"() {
            given:
            Long unknownPID = null;
    
            when:
            def daemonStopEvent = new DaemonStopEvent(null, unknownPID, null, null);
    
            then:
            notThrown(NullPointerException)
            daemonStopEvent.pid == null
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:55 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/stdlib-java-extensions/src/test/groovy/org/gradle/internal/CastTest.groovy

            e.message == "Failed to cast object $arg of type ${arg.class.name} to target type ${Integer.name}"
    
            when:
            def result = cast(CharSequence, arg)
    
            then:
            notThrown(ClassCastException)
            result.is arg
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/AbstractFileLockManagerTest.groovy

            given:
            unlockUncleanly()
    
            when:
            createLock(Exclusive).writeFile {}
    
            then:
            notThrown FileIntegrityViolationException
        }
    
        def "can lock a file"() {
            when:
            def lock = createLock(lockMode)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  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/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultPersistentDirectoryStoreTest.groovy

        }
    
        def "open does nothing when directory already exists"() {
            given:
            cacheDir.createDir()
    
            when:
            store.open()
    
            then:
            notThrown(RuntimeException)
        }
    
        def "open locks cache directory with requested mode"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:40:49 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r65/ToolingApiShutdownCrossVersionSpec.groovy

        }
    
        def "disconnect before build starts"() {
            when:
            def connector = toolingApi.connector()
            connector.connect()
            connector.disconnect()
    
            then:
            notThrown(Exception)
            assertNoRunningDaemons()
        }
    
        def "can call disconnect after the build was cancelled"() {
            buildFile.text = """
                task hang {
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top