Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Assertions Practice | Unit Tests
Java JUnit Library. Types of Testing

Assertions PracticeAssertions Practice

It's time to practice with different Assertions. A class has been written for you with some methods. Tests for these methods are already written, but for some reason, they keep failing. Your task is to find out the reason for this. The problem lies in the tests, not the code.

Link to the Task: GitHub

Pay close attention to the expected and actual values. This way, you will understand what needs to be used in a specific test case.

  • Your goal is to make the tests work, check the assertions for correctness.
  • Some test cases have two assertions at once; pay attention to that.
  • You will need to use almost every assertion from the previous chapter, so be attentive.
  • Все було зрозуміло?

    Секція 2. Розділ 7
    course content

    Зміст курсу

    Java JUnit Library. Types of Testing

    Assertions PracticeAssertions Practice

    It's time to practice with different Assertions. A class has been written for you with some methods. Tests for these methods are already written, but for some reason, they keep failing. Your task is to find out the reason for this. The problem lies in the tests, not the code.

    Link to the Task: GitHub

    Pay close attention to the expected and actual values. This way, you will understand what needs to be used in a specific test case.

  • Your goal is to make the tests work, check the assertions for correctness.
  • Some test cases have two assertions at once; pay attention to that.
  • You will need to use almost every assertion from the previous chapter, so be attentive.
  • Все було зрозуміло?

    Секція 2. Розділ 7
    some-alt