Browse Source

Add BookDevController end point tests

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.4-alpha
Pekka Helenius 4 years ago
parent
commit
15b44bf5b0
1 changed files with 39 additions and 0 deletions
  1. +39
    -0
      bookstore/src/test/java/com/fjordtek/bookstore/web/dev/endpoint/StatsrefTest.java

+ 39
- 0
bookstore/src/test/java/com/fjordtek/bookstore/web/dev/endpoint/StatsrefTest.java View File

@ -0,0 +1,39 @@
// Pekka Helenius <fincer89@hotmail.com>, Fjordtek 2020
package com.fjordtek.bookstore.web.dev.endpoint;
import org.junit.Test;
import org.springframework.test.context.ActiveProfiles;
import com.fjordtek.bookstore.web.BookStoreTestWebContextBuilder;
/**
*
* TODO: N/A
*
* @author Pekka Helenius
*/
@ActiveProfiles(
profiles = { "dev" }
)
public class StatsrefTest extends BookStoreTestWebContextBuilder {
@Test
public void testA_GetStatsrefAsNologin() throws Exception {
loadPageGet(statsRefUrl, 200);
}
/*
@Test
@WithUserDetails("user")
public void testB_GetStatsrefAsNormalUser() throws Exception {
loadPageGet(statsRefUrl, 200);
}
@Test
@WithUserDetails("admin")
public void testC_GetStatsrefAsAdminUser() throws Exception {
loadPageGet(statsRefUrl, 200);
}
*/
}

Loading…
Cancel
Save