Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,29 +55,6 @@ public void setupTestData() throws Exception {
Assert.assertTrue(true);
}

@WithMockUser
@Commit
@Test
public void domainCountTest() throws Exception {
String msg ="domainCountTest: ";

MvcResult result = this.mockMvc.perform(get("/application/domain/count"))
.andExpect(status().isOk())
.andExpect(view().name( "application/domain/count"))
.andExpect(model().attributeExists("countedEntities"))
.andExpect(model().attributeExists("page"))
.andReturn();

String content = result.getResponse().getContentAsString();

log.info(msg+"#######################################");
log.info(msg+"#######################################");
log.info(msg+content);
log.info(msg+"#######################################");
log.info(msg+"#######################################");
Assert.assertTrue(true);
}

@WithMockUser
@Commit
@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,28 @@ public void setupTestData() throws Exception {
private final static String URL_PATH = "/application/countedEntities";
private final static String TEMPLATE_PATH = "application/countedEntities";

@WithMockUser
@Commit
@Test
public void domainCountTest() throws Exception {
String msg ="domainCountTest: ";

MvcResult result = this.mockMvc.perform(get("/application/countedEntities/domain/count"))
.andExpect(status().isOk())
.andExpect(view().name( "application/domain/count"))
.andExpect(model().attributeExists("countedEntities"))
.andExpect(model().attributeExists("page"))
.andReturn();

String content = result.getResponse().getContentAsString();

log.info(msg+"#######################################");
log.info(msg+"#######################################");
log.info(msg+content);
log.info(msg+"#######################################");
log.info(msg+"#######################################");
Assert.assertTrue(true);
}

@WithMockUser
@Commit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void getAllTest() throws Exception {
MvcResult result = this.mockMvc.perform(get("/userlist/all"))
.andExpect(status().isOk())
.andExpect(view().name("userlist/all"))
.andExpect(model().attributeExists("userlists"))
.andExpect(model().attributeExists("myPageContent"))
.andExpect(model().attributeExists("page"))
.andReturn();

Expand Down