Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 670 for broken2 (0.36 sec)

  1. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractConsoleBuildResultFunctionalTest.groovy

            buildFile << """
                task broken {
                    doLast {
                        throw new RuntimeException("broken")
                    }
                }
            """
    
            expect:
            executer.withArguments("-Dorg.gradle.logging.level=${level}")
            fails("broken")
    
            and:
            // Ensure the failure is a location that the fixtures can see
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  2. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/ResourceExceptionsTest.groovy

            def location = URI.create("scheme:name")
            def failure = new RuntimeException()
    
            expect:
            def e = ResourceExceptions.failure(location, "broken", failure)
            e instanceof ResourceException
            e.location == location
            e.message == "broken"
            e.cause == failure
        }
    
        def "wraps failure with different location"() {
            def location = URI.create("scheme:name")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/MessageTest.groovy

        }
    
        def "transports exception with broken methods"() {
            def broken = new CompletelyBrokenException()
    
            when:
            def transported = transport(broken)
    
            then:
            transported.class == CompletelyBrokenException
        }
    
        def "transports unserializable exception with broken methods"() {
            def broken = new CompletelyBrokenException() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheIncompatibleTasksIntegrationTest.groovy

                withProblem("Task `:declared` of type `Broken`: cannot deserialize object of type 'org.gradle.api.artifacts.ConfigurationContainer' as these are not supported with the configuration cache.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/dict/kuromoji/KuromojiFileTest.java

        @Override
        protected void setUp() throws Exception {
            file1 = File.createTempFile("kuromoji_", ".txt");
            FileUtil.write(
                    file1.getAbsolutePath(),
                    "token1,seg1,reading1,pos1\ntoken2,seg2,reading2,pos2\ntoken3,seg3,reading3,pos3"
                            .getBytes(Constants.UTF_8));
        }
    
        @Override
        protected void tearDown() throws Exception {
            file1.delete();
        }
        */
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resolve/result/DefaultBuildableComponentResolveResultTest.groovy

            e.message == 'No result has been specified.'
        }
    
        def "cannot get id when resolve failed"() {
            org.gradle.internal.Factory<String> broken = { "too bad" }
            def failure = new ModuleVersionResolveException(newSelector(DefaultModuleIdentifier.newId("a", "b"), "c"), broken)
    
            when:
            result.failed(failure)
            result.moduleVersionId
    
            then:
            ModuleVersionResolveException e = thrown()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/initialization/exception/DefaultExceptionAnalyserTest.groovy

            given:
            def scriptFailure = new GradleScriptException("broken", new RuntimeException())
            def otherFailure1 = new RuntimeException("broken")
            def otherFailure2 = new RuntimeException("broken")
            def failure = new ProjectConfigurationException("broken", [scriptFailure, otherFailure1, otherFailure2])
            def analyser = analyser()
            def result = []
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskDefinitionIntegrationTest.groovy

                include "child"
            """
            file("child/build.gradle") << """
                class Broken extends DefaultTask {
                    Broken() {
                        throw new RuntimeException("broken task")
                    }
                }
                tasks.create("broken", Broken)
            """
    
            expect:
            fails()
            failure.assertHasLineNumber(4)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 14:43:53 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionFailureTest.groovy

    Expected: A failure description which is a string starting with "broken!"
         but: failure descriptions were []''')
    
            when:
            failure.assertHasCause("broken!")
    
            then:
            def e3 = thrown(AssertionError)
            e3.message.trim().startsWith('''No matching cause found
    Expected: A cause which is a string starting with "broken!"
         but: causes were []''')
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeferredTaskFailureIntegrationTest.groovy

            """
            file("child/build.gradle") << """
                class Broken extends DefaultTask {
                    Broken() {
                        throw new RuntimeException("broken task")
                    }
                }
                tasks.register("broken", Broken)
            """
    
            expect:
            fails("broken")
            failure.assertHasDescription("A problem occurred configuring project ':child'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top