Created
January 10, 2015 13:13
-
-
Save javaeeeee/28de7720ff761e349f06 to your computer and use it in GitHub Desktop.
A simple method which doesn't need Test Doubles to be tested
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boolean isTransactionPossible(final BigDecimal amount, | |
final BigDecimal balance) { | |
return balance.compareTo(amount) >= 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment