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 application
    create a Java project using an Apache Maven archetype that includes a separate test directory
    describe the libraries and annotations that can be used to define JUnit tests
    implement test cases that verify Boolean data and objects
    develop test cases that ensure a unit of an app can run within a specified time
    configure a test case to execute only when a specified assumption is satisfied
    use the DisplayName annotation to set a descriptive name for a test case
    set JUnit test cases to execute concurrently
    create a customized JUnit annotation composed of several built-in annotations
    apply the RepeatedTest annotation to run a test case multiple time
    use the ValueSource annotation to run a parameterized test case several times for a set of pre-defined parameters
    compile and run enabled test cases in your project using Apache Maven
    use Apache Maven to execute only specific test cases based on class name, method name, or tags
    identify the benefits of using Mockito to mock objects
    add dependencies for JUnit and Mockito
  • recall the benefits of using Mockito to mock objects
    use assertions in test cases
    configure mocks with the when().thenReturn() syntax with input arguments
    recall how mocks can be used with unit tests
    create mocks using the @Mock annotation
    mock objects in a real-world scenario
    illustrate the nuances of the verify() function
    use @ExtendWith to automatically initialize mocks
    demonstrate how ordered mocks work
    use the @InjectMock annotation to inject mocks
    throw exceptions from methods that return void
    create partial mocks using spies
    work with argument captors
    use spies with interfaces
    configure stubs to throw exceptions

IN THIS COURSE

  • Playable
    1. 
    Final Exam: Unit Testing
    33s
    UP 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 platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Likes 4 Likes 4  
Likes 3 Likes 3