File tree Expand file tree Collapse file tree 3 files changed +23
-24
lines changed Expand file tree Collapse file tree 3 files changed +23
-24
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments