0

I am using IntelliJ.

When i build and run with gradle, my all tests are success. enter image description here

enter image description here

But if i change with IntelliJ IDEA, one test is fail. enter image description here enter image description here

The reason why one test fail, no constructor is not exist in response dto.

public class PathResponse {
    private List<StationResponse> stations;
    private int distance;

    public PathResponse(List<StationResponse> stations, int distance) {
        this.stations = stations;
        this.distance = distance;
    }

    protected PathResponse() {} // <- if put this, no error with InterlliJ IDEA also.

Yes. i success the test with IntelliJ IDEA.

But i wonder why Gradle and IntelliJ IDEA test result is different.

Can someone tell me reason..???

Jeongkuk Seo
  • 127
  • 2
  • 15
  • 1
    Probably Gradle has some additional configuration for compilation. Please check this thread for possible solutions: https://stackoverflow.com/a/53192674/2000323 – Andrey Jan 11 '23 at 12:52

0 Answers0