This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects

Resolve "Collections mehr hervorheben"

Merged Michael Breu requested to merge 460-collections-mehr-hervorheben into development
Viewing commit 312ebaab
Show latest version
1 file
+ 4
6
Compare changes
  • Side-by-side
  • Inline
@@ -10,10 +10,8 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import at.ac.uibk.gitsearch.GitsearchApp;
import at.ac.uibk.gitsearch.repository.search.testESService.ElasticSearchTestConfiguration;
import at.ac.uibk.gitsearch.security.AuthoritiesConstants;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.elasticsearch.node.NodeValidationException;
import org.hamcrest.Matchers;
import org.junit.Assert;
@@ -195,10 +193,10 @@ public class ExerciseResourceIT {
.perform(get("/api/exerciseChildren/[" + exerciseId + "]").with(csrf().asHeader()).contentType(MediaType.APPLICATION_JSON))
.andDo(print())
.andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))
.andExpect(jsonPath("$").isArray())
.andExpect(jsonPath("$", Matchers.hasSize(2)))
.andExpect(jsonPath("$[0].childId").value("[274]1"))
.andExpect(jsonPath("$[0].title").value("exercise 1"));
.andExpect(jsonPath("$").isArray())
.andExpect(jsonPath("$", Matchers.hasSize(2)))
.andExpect(jsonPath("$[0].childId").value("[274]1"))
.andExpect(jsonPath("$[0].title").value("exercise 1"));
}
@Test