More API cleanups

This commit is contained in:
Erik C. Thauvin 2024-08-30 16:59:02 -07:00
parent 158167bebd
commit e9f3079911
Signed by: erik
GPG key ID: 776702A6A2DA330E
2 changed files with 38 additions and 23 deletions

View file

@ -71,7 +71,7 @@ class DetektOperationTest {
op = op.basePath(bar.toPath());
assertThat(op.basePath()).as("as path").isEqualTo(bar.getAbsolutePath());
op = new DetektOperation().basePath("foo");
op = op.basePath("foo");
assertThat(op.basePath()).as("as string").isEqualTo("foo");
}
@ -86,7 +86,7 @@ class DetektOperationTest {
op = op.baseline(bar.toPath());
assertThat(op.baseline()).as("as path").isEqualTo(bar.getAbsolutePath());
op = new DetektOperation().baseline("foo");
op = op.baseline("foo");
assertThat(op.baseline()).as("as string").isEqualTo("foo");
}