Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started