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
Browse By Tag
- love (102636)
- life (81129)
- inspirational (77695)
- humor (45385)
- philosophy (32155)
- inspirational-quotes (28790)
- god (27147)
- wisdom (25313)
- romance (25047)
- truth (24996)
- poetry (24753)
- life-lessons (23113)
- quotes (21579)
- death (21056)
- happiness (19077)
- hope (19010)
- faith (18755)
- inspiration (18281)
- spirituality (16231)
- relationships (16229)
- motivational (16144)
- religion (15625)
- life-quotes (15434)
- writing (15220)
- love-quotes (14999)
- success (14283)
- motivation (14148)
- time (13092)
- science (12368)
- motivational-quotes (12202)
