Skip to content

Commit

Permalink
Fix the remaining tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
marchermans committed May 31, 2024
1 parent 9fa2813 commit 9314db5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class RunTests extends BuilderBasedTestSpecification {

classpathFile.exists()

classpathFile.text.contains("org.jgrapht/jgrapht-core")
classpathFile.text.contains("org.jgrapht${File.separator}jgrapht-core")
}

def "userdev supports custom run dependencies from configuration"() {
Expand Down Expand Up @@ -260,7 +260,7 @@ class RunTests extends BuilderBasedTestSpecification {

classpathFile.exists()

classpathFile.text.contains("org.jgrapht/jgrapht-core")
classpathFile.text.contains("org.jgrapht${File.separator}jgrapht-core")
}

def "userdev supports custom run dependencies from catalog"() {
Expand Down Expand Up @@ -321,6 +321,6 @@ class RunTests extends BuilderBasedTestSpecification {

classpathFile.exists()

classpathFile.text.contains("org.jgrapht/jgrapht-core")
classpathFile.text.contains("org.jgrapht${File.separator}jgrapht-core")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,12 @@ class SourceSetConventionTests extends BuilderBasedTestSpecification {
when:
def run = project.run {
it.tasks(':dependencies')
it.shouldFail()
}

then:
run.task(':dependencies').outcome == TaskOutcome.SUCCESS
run.output.contains("Run sources: []")
run.output.contains("Run: client has no source sets configured. Please configure at least one source set.")
}

def "disabling sourceset conventions prevents registration of main sourceset to run"() {
Expand Down Expand Up @@ -285,11 +286,12 @@ class SourceSetConventionTests extends BuilderBasedTestSpecification {
when:
def run = project.run {
it.tasks(':dependencies')
it.shouldFail()
}

then:
run.task(':dependencies').outcome == TaskOutcome.SUCCESS
run.output.contains("Run sources: []")
run.output.contains("Run: client has no source sets configured. Please configure at least one source set.")
}

def "disabling main source set registration conventions prevents registration of main sourceset to run"() {
Expand Down Expand Up @@ -326,11 +328,12 @@ class SourceSetConventionTests extends BuilderBasedTestSpecification {
when:
def run = project.run {
it.tasks(':dependencies')
it.shouldFail()
}

then:
run.task(':dependencies').outcome == TaskOutcome.SUCCESS
run.output.contains("Run sources: []")
run.output.contains("Run: client has no source sets configured. Please configure at least one source set.")
}

def "having the conventions for main sourceset registration enabled registers it"() {
Expand Down

0 comments on commit 9314db5

Please sign in to comment.