Cleaned up API to match bld operations and options APIs
This commit is contained in:
parent
f563cffd3f
commit
9548ddea23
3 changed files with 26 additions and 6 deletions
|
@ -100,7 +100,16 @@ class ExecOperationTest {
|
|||
.fromProject(new BaseProject())
|
||||
.command("echo", FOO)
|
||||
.workDir(workDir);
|
||||
assertThat(op.workDir()).isEqualTo(workDir);
|
||||
assertThat(op.workDir()).as("as file").isEqualTo(workDir);
|
||||
assertThatCode(op::execute).doesNotThrowAnyException();
|
||||
|
||||
var build = "build";
|
||||
op = op.workDir(build);
|
||||
assertThat(op.workDir()).as("as string").isEqualTo(new File(build));
|
||||
assertThatCode(op::execute).doesNotThrowAnyException();
|
||||
|
||||
op = op.workDir(workDir.toPath());
|
||||
assertThat(op.workDir()).as("as path").isEqualTo(workDir);
|
||||
assertThatCode(op::execute).doesNotThrowAnyException();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue