Skip to Content
Pragmatic Unit Testing in Java 8 with JUnit
book

Pragmatic Unit Testing in Java 8 with JUnit

by Jeff Langr, Andy Hunt, Dave Thomas
March 2015
Intermediate to advanced content levelIntermediate to advanced
236 pages
5h 26m
English
Pragmatic Bookshelf
Content preview from Pragmatic Unit Testing in Java 8 with JUnit

Chapter 6What to Test: The Right-BICEP

It can be hard to look at a method or a class and anticipate all the bugs that might be lurking in there. With experience, you develop a feel for what’s likely to break and learn to concentrate on testing those areas first. Until then, uncovering possible failure modes can be frustrating. End users are quite adept at finding our bugs, but that’s embarrassing and damaging to our careers! What we need are guidelines to help us understand what’s important to test.

Your Right-BICEP provides you with the strength needed to ask the right questions about what to test:

Right

Are the results right?

B

Are all the boundary conditions correct?

I

Can you check inverse relationships?

C

Can you cross-check results using other ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

JUnit and Mockito Unit Testing for Java Developers

JUnit and Mockito Unit Testing for Java Developers

Matthew Speake
Testing with JUnit

Testing with JUnit

Leonard Przybylski, Frank Appel

Publisher Resources

ISBN: 9781680500769Errata Page