Wrap-up
1. Wrap-up
This is the end of this course about testing in Java. Let's do a recap of what you've learned!2. Chapter 1 Recap
In Chapter 1.1, we introduced the concept of software testing, including automated software testing, and we discussed important edge cases to look out for when writing code and testing. We then learned about the JUnit package and its syntax We learned to define and write unit tests, and some important conventions.3. Chapter 2 Recap
As Java is an object oriented language, we spent Chapter 2 learning how Java verifies dependencies between objects, modules and entire systems. In Chapter 2, we defined integration testing and we obtained real currency exchange rates from the European Central Bank as an example. We then learned that while we can't predict real currency rates, we can write tests under controlled conditions using mocks. We studied the Mockito package for Java and its syntax. Finally, we achieved further control of our tests by verifying how our code has interacted with database mocks.4. Chapter 3 Recap
In the final chapter of the course, we learned handy ways to make testing less verbose and repetitive. We started with ParameterizedTest and ValueSource, and then explored passing multiple arguments to tests with CsvSource, and entire objects with MethodSource. We also discussed the BeforeEach annotation to condense lengthy setup in the beginning of each test. Finally, we explored new ways of thinking by using Test-Driven Development to build new features and fix bugs.5. Further learning:
Here's some handy resources to learn about more approaches and tools for software testing and to continue your Java journey!6. Congratulations!
Congratulations on completing this course! Hopefully it has given you not just knowledge and new syntax, but ways to become a better and more valuable engineer.Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.