Find & Share Quotes with Friends
“The approach shown... is a common pattern for testing exception-throwing behavior with JUnit.
@Test
public void missingValueRaisesException() throws Exception {
try {
new Template("${foo}").evaluate();
fail("evaluate() should throw an exception if "
+ "a variable was left without a value!");
} catch (MissingValueException expected) {
}
}
”
―
Test Driven: Practical TDD and Acceptance TDD for Java Developers
@Test
public void missingValueRaisesException() throws Exception {
try {
new Template("${foo}").evaluate();
fail("evaluate() should throw an exception if "
+ "a variable was left without a value!");
} catch (MissingValueException expected) {
}
}
Share this quote:
Friends Who Liked This Quote
To see what your friends thought of this quote, please sign up!
0 likes
All Members Who Liked This Quote
None yet!
This Quote Is From
Test Driven: Practical TDD and Acceptance TDD for Java Developers
by
Lasse Koskela163 ratings, average rating, 10 reviews
Open Preview
Browse By Tag
- love (102323)
- life (80911)
- inspirational (77452)
- humor (45175)
- philosophy (31918)
- inspirational-quotes (28716)
- god (27119)
- wisdom (25175)
- romance (24933)
- truth (24908)
- poetry (24662)
- life-lessons (23034)
- quotes (21516)
- death (21004)
- happiness (19049)
- hope (18921)
- faith (18710)
- inspiration (18063)
- spirituality (16112)
- relationships (16111)
- motivational (16107)
- religion (15591)
- life-quotes (15337)
- writing (15182)
- love-quotes (14963)
- success (14252)
- motivation (14111)
- time (13056)
- science (12332)
- motivational-quotes (12169)
