aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index d896565c..644ff096 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -523,12 +523,15 @@ public class ServerTests {
mockMvc.perform(
get("/api/home")
.with(httpBasic(ugnichName, ugnichPassword)))
- .andExpect(status().isOk())
- .andReturn();
+ .andExpect(status().isOk());
mockMvc.perform(get("/api/home")
.param("hash", ugnichHash))
.andExpect(status().isOk());
+
+ mockMvc.perform(get("/api/home")
+ .header("Authorization", String.format("Juick %s", ugnichHash)))
+ .andExpect(status().isOk());
}
@Test