Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for throwsCheckedException (0.59 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/reflect/JavaMethodTestSubject.java

            throw failure;
        }
    
        static class TestCheckedException extends Exception {
            public TestCheckedException(Throwable cause) {
                super(cause);
            }
        }
    
        public void throwsCheckedException() throws TestCheckedException {
            throw new TestCheckedException(failure);
        }
    
        protected String protectedMethod() {
            return "parent";
        }
    
        protected String overridden() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/JavaTestSubject.java

        }
    
        static class TestCheckedException extends Exception {
            public TestCheckedException(Throwable cause) {
                super(cause);
            }
        }
    
        public void throwsCheckedException() throws TestCheckedException {
            throw new TestCheckedException(failure);
        }
    
        protected String protectedMethod() {
            return "parent";
        }
    
        protected String overridden() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/reflect/JavaMethodTest.groovy

            then:
            IllegalStateException e = thrown()
            e == myProperties.failure
    
            when:
            JavaMethod.of(myProperties.class, Void, "throwsCheckedException").invoke(myProperties)
    
            then:
            UncheckedException checkedFailure = thrown()
            checkedFailure.cause instanceof JavaMethodTestSubject.TestCheckedException
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorDecoratedTest.groovy

        def callsPrivateThatThrowsCheckedException(s) {
            try {
                throwsCheckedException(s)
            } catch (Exception e) {
                assert e instanceof IOException
                throw e
            }
        }
    
        private throwsCheckedException(String a) {
            throw new IOException("!")
        }
    
        def callsPrivateStringMethodWithGString(GString gString) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 22K bytes
    - Viewed (0)
Back to top