Question: 1. TRUE or FALSE a) When unit testing with JUnit 5, to check for an exception being thrown, you should use the assertThrows method. This

1. TRUE or FALSE a) When unit testing with JUnit 5, to check for an exception being thrown, you should use the assertThrows method. This method requires you specify not only the name of the exception, but also the .class extension (e.g. IllegalArgumentException.class). b) Composition which is described as a "has a" or "uses a" relationship is a white box approach to class design, meaning the containing class needs to know about the inner details of the contained class in order to work with it properly. c) The first thing you should do in any method that accepts a reference parameter is check that parameter for null. This helps avoid NullPointerExceptions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
