V
V
Vladislav2019-01-19 01:34:13
Java
Vladislav, 2019-01-19 01:34:13

What are the ways to test a 3rd party spring mvn project?

Given :
1. My application\project\liba - whatever you want to call it
2. Target project\application to download and test It
is known about the target project:
1. There is a project on spring boot. Lying in a previously known repository
2. The structure of its packages (controllers, services, repositories etc) is known.
3. It is known what this project is about, for simplicity of explanation, let it be an online store.
4. It is known that there is some controller that just needs to be tested. For example:
@RequestMapping(/products) and returns a ModelAndView(freemarker) with a simple list of products.
Task:
1. With my application, I go to the git repository.
2. I download the project
3. Now I need to somehow test this project, that it basically works, and that it produces this list of products.
With 3 problems, it's not clear how to make my project test the project that was downloaded? Is there any way to copy it? Scan classspace and collect context? What are some ideas to try?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alfss, 2019-01-19
@alfss

If we are talking about a library, then write unit tests in your project that use the necessary functions. If we are talking about a service, then implement integration testing.

A
Alexey Cheremisin, 2019-01-19
@leahch

For integration and load testing, I recommend trying jmeter. Write a test of interaction with your rest service under it and look at the results.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question