Skip to content

Commit 12e0c6e

Browse files
Merge pull request #263 from phasenraum2010/milestone-1.0.27
Milestone 1.0.27
2 parents fce7425 + 79b8102 commit 12e0c6e

File tree

3 files changed

+23
-24
lines changed

3 files changed

+23
-24
lines changed

src/test/java/org/woehlke/twitterwall/frontend/controller/ApplicationControllerTest.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -55,29 +55,6 @@ public void setupTestData() throws Exception {
5555
Assert.assertTrue(true);
5656
}
5757

58-
@WithMockUser
59-
@Commit
60-
@Test
61-
public void domainCountTest() throws Exception {
62-
String msg ="domainCountTest: ";
63-
64-
MvcResult result = this.mockMvc.perform(get("/application/domain/count"))
65-
.andExpect(status().isOk())
66-
.andExpect(view().name( "application/domain/count"))
67-
.andExpect(model().attributeExists("countedEntities"))
68-
.andExpect(model().attributeExists("page"))
69-
.andReturn();
70-
71-
String content = result.getResponse().getContentAsString();
72-
73-
log.info(msg+"#######################################");
74-
log.info(msg+"#######################################");
75-
log.info(msg+content);
76-
log.info(msg+"#######################################");
77-
log.info(msg+"#######################################");
78-
Assert.assertTrue(true);
79-
}
80-
8158
@WithMockUser
8259
@Commit
8360
@Test

src/test/java/org/woehlke/twitterwall/frontend/controller/CountedEntitiesControllerTest.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,28 @@ public void setupTestData() throws Exception {
5757
private final static String URL_PATH = "/application/countedEntities";
5858
private final static String TEMPLATE_PATH = "application/countedEntities";
5959

60+
@WithMockUser
61+
@Commit
62+
@Test
63+
public void domainCountTest() throws Exception {
64+
String msg ="domainCountTest: ";
65+
66+
MvcResult result = this.mockMvc.perform(get("/application/countedEntities/domain/count"))
67+
.andExpect(status().isOk())
68+
.andExpect(view().name( "application/domain/count"))
69+
.andExpect(model().attributeExists("countedEntities"))
70+
.andExpect(model().attributeExists("page"))
71+
.andReturn();
72+
73+
String content = result.getResponse().getContentAsString();
74+
75+
log.info(msg+"#######################################");
76+
log.info(msg+"#######################################");
77+
log.info(msg+content);
78+
log.info(msg+"#######################################");
79+
log.info(msg+"#######################################");
80+
Assert.assertTrue(true);
81+
}
6082

6183
@WithMockUser
6284
@Commit

src/test/java/org/woehlke/twitterwall/frontend/controller/UserListControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void getAllTest() throws Exception {
5555
MvcResult result = this.mockMvc.perform(get("/userlist/all"))
5656
.andExpect(status().isOk())
5757
.andExpect(view().name("userlist/all"))
58-
.andExpect(model().attributeExists("userlists"))
58+
.andExpect(model().attributeExists("myPageContent"))
5959
.andExpect(model().attributeExists("page"))
6060
.andReturn();
6161

0 commit comments

Comments
 (0)