Minor cleanup

This commit is contained in:
Erik C. Thauvin 2023-08-15 23:33:58 -07:00
parent 1fb81b4156
commit 178bbfe572
2 changed files with 4 additions and 2 deletions

View file

@ -131,8 +131,10 @@ public class TestNgOperation extends AbstractProcessOperation<TestNgOperation> {
var temp = tempFile(); var temp = tempFile();
try (var bufWriter = Files.newBufferedWriter(Paths.get(temp.getPath()))) { try (var bufWriter = Files.newBufferedWriter(Paths.get(temp.getPath()))) {
bufWriter.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + bufWriter.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
"<!DOCTYPE suite SYSTEM \"https://testng.org/testng-1.0.dtd\">" +
"<suite name=\"bld Default Suite\" verbose=\"2\">" + "<suite name=\"bld Default Suite\" verbose=\"2\">" +
"<test name=\"All Packages\"><packages>"); "<test name=\"All Packages\">" +
"<packages>");
for (var p : packages) { for (var p : packages) {
bufWriter.write(String.format("<package name=\"%s\"/>", p)); bufWriter.write(String.format("<package name=\"%s\"/>", p));
} }

View file

@ -17,7 +17,7 @@
package rife.bld.extension; package rife.bld.extension;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import rife.bld.Project; import rife.bld.Project; // NOPMD
import rife.bld.operations.exceptions.ExitStatusException; import rife.bld.operations.exceptions.ExitStatusException;
import static org.assertj.core.api.Assertions.*; import static org.assertj.core.api.Assertions.*;