Skip to content

Commit

Permalink
Apply spotless after rebase to format added groovy file
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo42 authored and manusa committed Aug 14, 2024
1 parent 89c5a7c commit 310fcaf
Showing 1 changed file with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,23 @@
import static org.junit.jupiter.api.Assertions.assertEquals
import static org.junit.jupiter.api.Assertions.assertTrue

["PodList", "Pod", "PodSpec", "PodStatus", "PodTemplate"].each {
var file = new File(basedir, sprintf("/src/generated/java/io/fabric8/kubernetes/api/model/%s.java", it))
assertTrue(file.exists())
assertEquals(
new File(basedir, sprintf("/expected/%s.expected", it))
.getText("UTF-8")
.replace("\r\n", "\n")
.replaceAll(" +\n", "\n")
.trim(),
file.getText("UTF-8").replace("\r\n", "\n").replaceAll(" +\n", "\n").trim()
)
[
"PodList",
"Pod",
"PodSpec",
"PodStatus",
"PodTemplate"
].each {
var file = new File(basedir, sprintf("/src/generated/java/io/fabric8/kubernetes/api/model/%s.java", it))
assertTrue(file.exists())
assertEquals(
new File(basedir, sprintf("/expected/%s.expected", it))
.getText("UTF-8")
.replace("\r\n", "\n")
.replaceAll(" +\n", "\n")
.trim(),
file.getText("UTF-8").replace("\r\n", "\n").replaceAll(" +\n", "\n").trim()
)
}

true

0 comments on commit 310fcaf

Please sign in to comment.