Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for notThrown (0.12 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r84/TestLauncherCompositeBuildCrossVersionTest.groovy

            when:
            def output1 = runTestClass.apply('TestClass1')
    
            then:
            notThrown(Exception)
    
            and:
            onlyTestClass1In(output1)
    
            when:
            def output2 = runTestClass.apply('TestClass2')
    
            then:
            notThrown(Exception)
    
            then:
            onlyTestClass2In(output2)
    
            where:
            api << LauncherApi.values()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/process-services/src/integTest/groovy/org/gradle/process/internal/health/memory/DefaultOsMemoryInfoIntegrationTest.groovy

            new DefaultOsMemoryInfo().getOsSnapshot().getPhysicalMemory().getTotal()
    
            then:
            notThrown UnsupportedOperationException
        }
    
        def "gets OS free memory on any system"() {
            when:
            new DefaultOsMemoryInfo().getOsSnapshot().getPhysicalMemory().getFree()
    
            then:
            notThrown UnsupportedOperationException
        }
    
        @Requires(UnitTestPreconditions.Windows)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/plugins/DslObjectTest.groovy

            then:
            notThrown(Exception)
    
            when:
            dsl.asDynamicObject
    
            then:
            thrown(IllegalStateException)
        }
    
        static class Thing {}
    
        def "works for dsl object"() {
            when:
            new DslObject(TestUtil.instantiatorFactory().decorateLenient().newInstance(Thing))
    
            then:
            notThrown(Exception)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. 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)
  5. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/ActionsTest.groovy

            doNothing().execute(thing)
    
            then:
            0 * thing._(*_)
        }
    
        def "can do nothing on null"() {
            when:
            doNothing().execute(null)
    
            then:
            notThrown(Throwable)
        }
    
        def "composite actions"() {
            def actions = [Mock(Action), Mock(Action)]
    
            when:
            composite(actions).execute("foo")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5K bytes
    - Viewed (0)
  6. 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)
  7. platforms/software/signing/src/test/groovy/org/gradle/plugins/signing/ConventionSmokeSpec.groovy

        def setup() {
            applyPlugin()
        }
    
        def "signing block"() {
            when:
            signing {
                signatories {
    
                }
            }
    
            then:
            notThrown Exception
        }
    
        def "signatories"() {
            expect:
            signing.signatories != null
            signing.signatories instanceof SignatoryProvider
        }
    
        def "signing configuration"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultFileLockManagerAwaitableFileLockReleasedSignalTest.groovy

            poll {
                assert signalCount.get() == 2
            }
        }
    
        def "can trigger signal without anyone waiting"() {
            when:
            signal.trigger()
    
            then:
            notThrown(Exception)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top