Skip to content

Commit

Permalink
move more files
Browse files Browse the repository at this point in the history
  • Loading branch information
pboos committed Nov 22, 2023
1 parent ea0943d commit 06ef4a5
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

import com.getyourguide.openapi.validation.integration.exception.WithResponseStatusException;
import com.getyourguide.openapi.validation.integration.exception.WithoutResponseStatusException;
import com.getyourguide.openapi.validation.test.openapi.TestViolationLogger;
import com.getyourguide.openapi.validation.test.TestViolationLogger;
import com.getyourguide.openapi.validation.test.exception.WithResponseStatusException;
import com.getyourguide.openapi.validation.test.exception.WithoutResponseStatusException;
import jakarta.servlet.ServletException;
import java.util.Optional;
import org.hamcrest.Matchers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

import com.getyourguide.openapi.validation.test.openapi.TestViolationLogger;
import com.getyourguide.openapi.validation.test.TestViolationLogger;
import com.getyourguide.openapi.validation.test.exception.WithResponseStatusException;
import com.getyourguide.openapi.validation.test.openapi.web.model.BadRequestResponse;
import com.getyourguide.openapi.validation.integration.exception.WithResponseStatusException;
import java.util.Optional;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.BeforeEach;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

import com.getyourguide.openapi.validation.api.model.OpenApiViolation;
import com.getyourguide.openapi.validation.test.openapi.TestViolationLogger;
import com.getyourguide.openapi.validation.test.TestViolationLogger;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.getyourguide.openapi.validation.integration;

import com.getyourguide.openapi.validation.api.log.ViolationLogger;
import com.getyourguide.openapi.validation.test.openapi.TestViolationLogger;
import com.getyourguide.openapi.validation.test.TestViolationLogger;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigurationExcludeFilter;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.getyourguide.openapi.validation.integration.controller;

import com.getyourguide.openapi.validation.test.exception.WithResponseStatusException;
import com.getyourguide.openapi.validation.test.exception.WithoutResponseStatusException;
import com.getyourguide.openapi.validation.test.openapi.web.DefaultApi;
import com.getyourguide.openapi.validation.test.openapi.web.model.PostTestRequest;
import com.getyourguide.openapi.validation.test.openapi.web.model.TestResponse;
import com.getyourguide.openapi.validation.integration.exception.WithResponseStatusException;
import com.getyourguide.openapi.validation.integration.exception.WithoutResponseStatusException;
import java.time.LocalDate;
import java.util.Objects;
import org.springframework.http.ResponseEntity;
Expand Down
2 changes: 2 additions & 0 deletions test/test-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ dependencies {

// TODO use spotbugs instead and also apply to all modules?
implementation(libs.find.bugs)

compileOnly 'org.springframework:spring-web'
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.getyourguide.openapi.validation.test.openapi;
package com.getyourguide.openapi.validation.test;

import com.getyourguide.openapi.validation.api.log.ViolationLogger;
import com.getyourguide.openapi.validation.api.model.OpenApiViolation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.getyourguide.openapi.validation.integration.exception;
package com.getyourguide.openapi.validation.test.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.getyourguide.openapi.validation.integration.exception;
package com.getyourguide.openapi.validation.test.exception;

public class WithoutResponseStatusException extends RuntimeException {

Expand Down

0 comments on commit 06ef4a5

Please sign in to comment.