Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
austinarbor committed Aug 30, 2023
1 parent 1034bf8 commit 6141dd1
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dev.aga.gradle.versioncatalogs

import java.io.File
import org.assertj.core.api.Assertions
import org.assertj.core.api.Assertions.assertThat
import org.gradle.testkit.runner.GradleRunner
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.io.TempDir
Expand Down Expand Up @@ -33,7 +33,8 @@ class VersionCatalogGeneratorPluginTest {
}
}
"""
.trimIndent())
.trimIndent(),
)
buildFile.writeText(
"""
plugins {
Expand All @@ -44,17 +45,15 @@ class VersionCatalogGeneratorPluginTest {
implementation(jsonLibs.bundles.jackson.module)
}
"""
.trimIndent())
.trimIndent(),
)

// Run the build
val runner =
GradleRunner.create().forwardOutput().withPluginClasspath().withProjectDir(projectDir)

val result = runner.build()

Assertions.assertThat(result.output).contains("BUILD SUCCESSFUL")
// Verify the result
// assertTrue(result.output.contains("Hello from plugin
// 'dev.aga.gradle.plugin.versioncatalogs.greeting'"))
assertThat(result.output).contains("BUILD SUCCESSFUL")
}
}

0 comments on commit 6141dd1

Please sign in to comment.