Final Exam: Unit Testing

Unit Testing    |    Intermediate
  • 1 video | 32s
  • Includes Assessment
  • Earns a Badge
Rating 4.2 of 16 users Rating 4.2 of 16 users (16)
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

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.

YOU MIGHT ALSO LIKE

Rating 5.0 of 1 users Rating 5.0 of 1 users (1)
Rating 3.7 of 12 users Rating 3.7 of 12 users (12)
Rating 4.6 of 52 users Rating 4.6 of 52 users (52)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 526 users Rating 4.5 of 526 users (526)
Rating 4.1 of 43 users Rating 4.1 of 43 users (43)
Rating 4.5 of 39 users Rating 4.5 of 39 users (39)