Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for oneLocation (0.14 sec)

  1. platforms/ide/problems-api/src/integTest/groovy/org/gradle/api/problems/ProblemsServiceIntegrationTest.groovy

            verifyAll(receivedProblem) {
                definition.id.fqid == 'problems-api:missing-id'
                definition.id.displayName == 'Problem id must be specified'
                locations.size() == 1
                with(oneLocation(LineInFileLocation)) {
                    length == -1
                    column == -1
                    line == 11
                    path == "build file '$buildFile.absolutePath'"
                }
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. platforms/ide/problems/src/integTest/groovy/org/gradle/api/problems/InjectedProblemsTransformerIntegrationTest.groovy

            buildFile.text = """
                plugins {
                    id("test.plugin")
                }
            """
    
            when:
            run("reportProblem")
    
            then:
            receivedProblem.oneLocation(PluginIdLocation).pluginId == "test.plugin"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 13:37:31 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/problems/ReceivedProblem.groovy

                    result += new ReceivedFileLocation(location as Map<String, Object>)
                }
            }
            result
        }
    
        long getOperationId() {
            operationId
        }
    
        <T> T oneLocation(Class<T> type) {
            def locations = getLocations()
            assert locations.size() == 1
            assert type.isInstance(locations[0])
            locations[0] as T
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 12:45:23 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/catalog/TomlDependenciesExtensionIntegrationTest.groovy

                inCatalog('libs')
                addError("In file '${tomlFile.absolutePath}' at line 3, column 1: Unexpected \'/\', expected a newline or end-of-input")
            })
    
            receivedProblem.oneLocation(FileLocation).path == tomlFile.absolutePath
        }
    
        @VersionCatalogProblemTestFor([
            VersionCatalogProblemId.TOML_SYNTAX_ERROR
        ])
        def "has multiple TOML parse errors"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 33K bytes
    - Viewed (0)
Back to top