Expose Output on AssertableOutput

Closes gh-16
This commit is contained in:
Sébastien Deleuze
2023-08-30 14:49:48 +02:00
parent d52a04b80b
commit 7d7cddff37

View File

@@ -24,11 +24,16 @@ import org.springframework.cr.smoketest.support.Output;
* An {@link AssertProvider} for {@link OutputAssert}.
*
* @author Andy Wilkinson
* @author Sebastien Deleuze
*/
public class AssertableOutput implements AssertProvider<OutputAssert> {
private final Output output = Output.current();
public Output getOutput() {
return this.output;
}
@Override
public OutputAssert assertThat() {
return new OutputAssert(this.output);