Integration Testing

Mock an External Service you own this product

This project is part of the liveProject series API Integration Testing with Spring Framework
prerequisites
intermediate JUnit5 • intermediate Spring • beginner Maven • working knowledge of Java 11 • working knowledge of object-oriented programming
skills learned
use IntelliJ IDEA to write and execute tests • reproduce problems in hard-to-reach parts of a system with tests • use tests to drive bug fixes • dynamically configure Spring containers • mock an HTTP service dependency
Max Guernsey, III
1 week · 8-10 hours per week · INTERMEDIATE
filed under

placing your order...

Don't refresh or navigate away from the page.
liveProject This project is part of the liveProject series API Integration Testing with Spring Framework liveProjects give you the opportunity to learn new skills by completing real-world challenges in your local development environment. Solve practical problems, write working code, and analyze real data—with liveProject, you learn by doing. These self-paced projects also come with full liveBook access to select books for 90 days plus permanent access to other select Manning products. $19.99 $29.99 you save $10 (33%)
Mock an External Service (liveProject) added to cart
continue shopping
go to cart

Look inside

Ensure your system can accommodate even unstable dependency services. You’re a Java developer for a large company that sells stock photography. You’re responsible for the service that ingests images. Unfortunately, the ingestion process is being negatively affected by a flaky external web service that the ingestion engine uses, and the problem is not reproducible in unit testing since there’s no connection to the external service at that time. Working in IntelliJ IDEA, you’ll establish an in-memory HTTP service, configure it to simulate a dependency service, write a test to reproduce the error, and use the test to build robustness into your system.

This project is designed for learning purposes and is not a complete, production-ready application or solution.

book resources

When you start your liveProject, you get full access to the following books for 90 days.

project author

Max Guernsey, III
Max Guernsey has over twenty years of experience in software development and is currently a managing member at DevCraft LLC. He has worked on a wide range of products and technologies, including C++ class libraries, financial analysis applications, C# and Java backends, and even multi-platform video games. He is an experienced consultant and his "coaching from the keyboard" approach provides hands-on experience to learners in all aspects of modern software development.

prerequisites

This liveProject is for developers with an intermediate-level understanding of Java and object-oriented design. To begin these liveProjects you’ll need to be familiar with the following:

TOOLS
  • JUnit5
  • Spring
  • Maven
TECHNIQUES
  • Working knowledge of Java 11
  • Working knowledge of object-oriented programming

you will learn

In this liveProject, you’ll learn to mock an external service to address and prevent problems related to external dependencies.

  • Use IntelliJ IDEA to write and execute tests
  • Reproduce problems in hard-to-reach parts of a system with tests
  • Use tests to drive bug fixes
  • Dynamically configure Spring containers
  • Mock an HTTP service dependency
  • Use Hibernate and an in-memory database to inspect the results of service execution

features

Self-paced
You choose the schedule and decide how much time to invest as you build your project.
Project roadmap
Each project is divided into several achievable steps.
Get Help
While within the liveProject platform, get help from other participants and our expert mentors.
Compare with others
For each step, compare your deliverable to the solutions by the author and other participants.
book resources
Get full access to select books for 90 days. Permanent access to excerpts from Manning products are also included, as well as references to other resources.
RECENTLY VIEWED