Skip to content

Commit

Permalink
mock WorkspaceId
Browse files Browse the repository at this point in the history
  • Loading branch information
mspector committed Sep 27, 2024
1 parent 485a29c commit b0832e3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

import java.util.UUID;
import org.databiosphere.workspacedataservice.annotations.SingleTenant;
import org.databiosphere.workspacedataservice.shared.model.WorkspaceId;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.web.servlet.MvcResult;
Expand All @@ -25,6 +28,8 @@
class CorsLiveMockMvcTest extends MockMvcTestBase {
private static final String versionId = "v0.2";

@MockBean @SingleTenant WorkspaceId workspaceId;

@ParameterizedTest(name = "CORS response headers for non-local profile to {0} should be correct")
@ValueSource(
strings = {
Expand Down

0 comments on commit b0832e3

Please sign in to comment.