Package com.ucoruh.calculator
Class CalculatorAppTest.MainMethod
java.lang.Object
com.ucoruh.calculator.CalculatorAppTest.MainMethod
- Enclosing class:
- CalculatorAppTest
@Nested
@DisplayName("main: prints run()\'s result and returns without reading stdin")
class CalculatorAppTest.MainMethod
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) void(package private) void(package private) void
-
Constructor Details
-
MainMethod
MainMethod()
-
-
Method Details
-
redirectOut
@BeforeEach void redirectOut() -
restoreOut
@AfterEach void restoreOut() -
printsResult
@Test @DisplayName("prints the computed result and exits without waiting for input") void printsResult() -
printsUsageForInvalidArguments
@Test @DisplayName("prints the usage message for invalid arguments and exits") void printsUsageForInvalidArguments()
-