diff --git a/htmlSanityCheck-cli/src/test/groovy/org/aim42/htmlsanitycheck/cli/HscCommandSpec.groovy b/htmlSanityCheck-cli/src/test/groovy/org/aim42/htmlsanitycheck/cli/HscCommandSpec.groovy
index d11038ab..3fec1cb1 100644
--- a/htmlSanityCheck-cli/src/test/groovy/org/aim42/htmlsanitycheck/cli/HscCommandSpec.groovy
+++ b/htmlSanityCheck-cli/src/test/groovy/org/aim42/htmlsanitycheck/cli/HscCommandSpec.groovy
@@ -77,7 +77,7 @@ class HscCommandSpec extends Specification {
SecurityManager originalSecurityManager = System.getSecurityManager()
SecurityManager mockSecurityManager = new NoExitSecurityMock(originalSecurityManager)
System.setSecurityManager(mockSecurityManager)
- String[] args = [testProjectDir.getRoot()]
+ String[] args = [testProjectDir.root]
when:
HscCommand.main(args)
@@ -94,7 +94,7 @@ class HscCommandSpec extends Specification {
def "test with valid HTML file"() {
given:
htmlFile << VALID_HTML
- String[] args = [testProjectDir.getRoot()]
+ String[] args = [testProjectDir.root]
when:
HscCommand.main(args)
diff --git a/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/HtmlReporterTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/HtmlReporterTest.groovy
index 36274fa0..9893f3d7 100644
--- a/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/HtmlReporterTest.groovy
+++ b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/HtmlReporterTest.groovy
@@ -25,7 +25,7 @@ class HtmlReporterTest {
@Before
void setUp() {
runResults = new PerRunResults()
- htmlReporter = new HtmlReporter(runResults, tempDir.getRoot().getAbsolutePath())
+ htmlReporter = new HtmlReporter(runResults, tempDir.root.getAbsolutePath())
}
@Test
@@ -189,7 +189,7 @@ class HtmlReporterTest {
private String getResultContents() {
htmlReporter.closeReport()
- File reportFile = new File(tempDir.getRoot(), "index.html")
+ File reportFile = new File(tempDir.root, "index.html")
try {
String content = new String(Files.readAllBytes(reportFile.toPath()))
return content
diff --git a/htmlSanityCheck-gradle-plugin/src/test/resources b/htmlSanityCheck-gradle-plugin/src/test/resources
new file mode 120000
index 00000000..2c7089f1
--- /dev/null
+++ b/htmlSanityCheck-gradle-plugin/src/test/resources
@@ -0,0 +1 @@
+../../../htmlSanityCheck-core/src/test/resources
\ No newline at end of file