Introduction to Testing in Java
Maria Milusheva
Senior Software Engineer
Software Testing:
Testing can be:
We'll use JUnit 5 for automated testing

"If it's not tested, it's broken."$^1$
Edge case - input or condition that is at the extreme or boundary of what is considered typical or expected
Examples: variables at maximum capacity, null or empty variables, negative values

Consider the following code:
public int addTwoNumbers(int a, int b) {
return a + b;
}
⚠ Consider inputs 2147483647 (integer max value) and 1
➡ The output is -2147483648 (integer min value)

First flight of the Ariane 5 rocket in 1996:


Introduction to Testing in Java