Skip to content
Snippets Groups Projects
Commit 13934c67 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6867 add annotation for relationListName

parent 4bee39c2
No related branches found
No related tags found
No related merge requests found
......@@ -5,11 +5,13 @@ import java.util.List;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.TypeAlias;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.hateoas.server.core.Relation;
import lombok.Builder;
import lombok.Getter;
import lombok.extern.jackson.Jacksonized;
@Relation(collectionRelation = "organisationsEinheitList")
@Getter
@Builder(toBuilder = true)
@Jacksonized
......
......@@ -2,6 +2,7 @@ package de.ozgcloud.admin.organisationseinheit;
import static org.mockito.Mockito.*;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
import java.util.List;
......@@ -58,7 +59,7 @@ class OrganisationsEinheitITCase {
void shouldContainList() {
var response = mockMvc.perform(get(PATH)).andExpect(status().isOk());
response.andExpect(jsonPath("$._embedded.organisationsEinheitList").isNotEmpty());
response.andDo(print()).andExpect(jsonPath("$._embedded.organisationsEinheitList").isNotEmpty());
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment