Final Exam: Unit Testing
Unit Testing | Intermediate
- 1 Video | 32s
- Includes Assessment
- Earns a Badge
Final Exam: Unit Testing will test your knowledge and application of the topics presented throughout the Unit Testing track of the Skillsoft Aspire Javanista to Java Master Journey.
WHAT YOU WILL LEARN
add dependencies for JUnit and Mockitoapply the RepeatedTest annotation to run a test case multiple timecompile and run enabled test cases in your project using Apache Mavenconfigure a test case to execute only when a specified assumption is satisfiedconfigure mocks with the when().thenReturn() syntax with input argumentsconfigure stubs to throw exceptionscreate a customized JUnit annotation composed of several built-in annotationscreate a Java project using an Apache Maven archetype that includes a separate test directorycreate mocks using the @Mock annotationcreate partial mocks using spiesdefine the dependencies and configurations for a simple JSF applicationdemonstrate how ordered mocks workdescribe the libraries and annotations that can be used to define JUnit testsdevelop test cases that ensure a unit of an app can run within a specified timeidentify the benefits of using Mockito to mock objects
illustrate the nuances of the verify() functionimplement test cases that verify Boolean data and objectsmock objects in a real-world scenariorecall how mocks can be used with unit testsrecall the benefits of using Mockito to mock objectsset JUnit test cases to execute concurrentlythrow exceptions from methods that return voiduse Apache Maven to execute only specific test cases based on class name, method name, or tagsuse assertions in test casesuse @ExtendWith to automatically initialize mocksuse spies with interfacesuse the DisplayName annotation to set a descriptive name for a test caseuse the @InjectMock annotation to inject mocksuse the ValueSource annotation to run a parameterized test case several times for a set of pre-defined parameterswork with argument captors
IN THIS COURSE
1.Final Exam: Unit Testing33sUP NEXT
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platformDigital badges are yours to keep, forever.