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
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.