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
define the dependencies and configurations for a simple JSF applicationcreate a Java project using an Apache Maven archetype that includes a separate test directorydescribe the libraries and annotations that can be used to define JUnit testsimplement test cases that verify Boolean data and objectsdevelop test cases that ensure a unit of an app can run within a specified timeconfigure a test case to execute only when a specified assumption is satisfieduse the DisplayName annotation to set a descriptive name for a test caseset JUnit test cases to execute concurrentlycreate a customized JUnit annotation composed of several built-in annotationsapply the RepeatedTest annotation to run a test case multiple timeuse the ValueSource annotation to run a parameterized test case several times for a set of pre-defined parameterscompile and run enabled test cases in your project using Apache Mavenuse Apache Maven to execute only specific test cases based on class name, method name, or tagsidentify the benefits of using Mockito to mock objectsadd dependencies for JUnit and Mockito
recall the benefits of using Mockito to mock objectsuse assertions in test casesconfigure mocks with the when().thenReturn() syntax with input argumentsrecall how mocks can be used with unit testscreate mocks using the @Mock annotationmock objects in a real-world scenarioillustrate the nuances of the verify() functionuse @ExtendWith to automatically initialize mocksdemonstrate how ordered mocks workuse the @InjectMock annotation to inject mocksthrow exceptions from methods that return voidcreate partial mocks using spieswork with argument captorsuse spies with interfacesconfigure stubs to throw exceptions
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.