StruckCroissant/Game-DB

add tests for principal accessor

Closed this issue · 1 comments

    assertThat(capturedGid).isEqualTo(UID);
  }


  @Test
  public void whenGetPrincpal_ThenReturnsPrincipal() throws Exception {
    // when
    MvcResult result = mockMvc
        .perform(
            MockMvcRequestBuilders.get(BASE_URL)
                .accept(MediaType.APPLICATION_JSON))
        .andExpect(status().isOk()
        ).andReturn();
    // TODO add tests for principal accessor
  }

}

Duplicate of #36