(?)
Quotes are added by the Goodreads community and are not verified by Goodreads. (Learn more)

“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) {
}
}

Lasse Koskela, Test Driven: Practical TDD and Acceptance TDD for Java Developers
Read more quotes from Lasse Koskela


Share this quote:
Share on Twitter

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 Test Driven: Practical TDD and Acceptance TDD for Java Developers by Lasse Koskela
163 ratings, average rating, 10 reviews
Open Preview

Browse By Tag