Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Robbies-MacBook-Pro:lab2part2 robbie$ java -jar junit-platform-console-standalone-1.2.0.jar -cp . --scan-class-path
- ╷
- ├─ JUnit Jupiter ✔
- │ └─ Lab 2 part 2 ✔
- │ ├─ Test ATM's deposit method ✘ correct balance is shown ==> expected: <true> but was: <false>
- │ ├─ Test ATM's inquire method ✔
- │ └─ Test ATM's withdraw method ✘ correct balance is shown ==> expected: <true> but was: <false>
- └─ JUnit Vintage ✔
- Failures (2):
- JUnit Jupiter:Lab 2 part 2:Test ATM's deposit method
- MethodSource [className = 'ATMTest', methodName = 'testPart2Deposit', methodParameterTypes = '']
- => org.opentest4j.AssertionFailedError: correct balance is shown ==> expected: <true> but was: <false>
- org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:40)
- org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:42)
- org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:160)
- ATMTest.testPart2Deposit(ATMTest.java:133)
- java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- java.base/java.lang.reflect.Method.invoke(Method.java:566)
- org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:513)
- org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:115)
- [...]
- JUnit Jupiter:Lab 2 part 2:Test ATM's withdraw method
- MethodSource [className = 'ATMTest', methodName = 'testPart2Withdraw', methodParameterTypes = '']
- => org.opentest4j.AssertionFailedError: correct balance is shown ==> expected: <true> but was: <false>
- org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:40)
- org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:42)
- org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:160)
- ATMTest.testPart2Withdraw(ATMTest.java:148)
- java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
- java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- java.base/java.lang.reflect.Method.invoke(Method.java:566)
- org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:513)
- org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:115)
- [...]
- Test run finished after 96 ms
- [ 3 containers found ]
- [ 0 containers skipped ]
- [ 3 containers started ]
- [ 0 containers aborted ]
- [ 3 containers successful ]
- [ 0 containers failed ]
- [ 3 tests found ]
- [ 0 tests skipped ]
- [ 3 tests started ]
- [ 0 tests aborted ]
- [ 1 tests successful ]
- [ 2 tests failed ]
- Robbies-MacBook-Pro:lab2part2 robbie$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement