Cleaned up API to match bld operations aand options APIs
This commit is contained in:
parent
15034b4363
commit
2600e74be7
5 changed files with 41 additions and 8 deletions
|
@ -84,4 +84,18 @@ class PropertyFileOperationTest {
|
|||
var op = new PropertyFileOperation();
|
||||
assertThatCode(op::execute).isInstanceOf(ExitStatusException.class);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testFile() {
|
||||
var foo = new File("foo");
|
||||
|
||||
var op = new PropertyFileOperation().file("foo");
|
||||
assertThat(op.file()).as("as string").isEqualTo(foo);
|
||||
|
||||
op = new PropertyFileOperation().file(foo);
|
||||
assertThat(op.file()).as("as file").isEqualTo(foo);
|
||||
|
||||
op = new PropertyFileOperation().file(foo.toPath());
|
||||
assertThat(op.file()).as("as path").isEqualTo(foo);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue