@@ -84,7 +84,7 @@ public void teardown() {
84
84
85
85
@ Test
86
86
public void startServlet () throws Exception {
87
- ConfigurableEmbeddedServletContainerFactory factory = getFactory ();
87
+ AbstractEmbeddedServletContainerFactory factory = getFactory ();
88
88
this .container = factory
89
89
.getEmbeddedServletContainer (exampleServletRegistration ());
90
90
this .container .start ();
@@ -93,7 +93,7 @@ public void startServlet() throws Exception {
93
93
94
94
@ Test
95
95
public void emptyServerWhenPortIsZero () throws Exception {
96
- ConfigurableEmbeddedServletContainerFactory factory = getFactory ();
96
+ AbstractEmbeddedServletContainerFactory factory = getFactory ();
97
97
factory .setPort (0 );
98
98
this .container = factory
99
99
.getEmbeddedServletContainer (exampleServletRegistration ());
@@ -104,7 +104,7 @@ public void emptyServerWhenPortIsZero() throws Exception {
104
104
105
105
@ Test
106
106
public void stopServlet () throws Exception {
107
- ConfigurableEmbeddedServletContainerFactory factory = getFactory ();
107
+ AbstractEmbeddedServletContainerFactory factory = getFactory ();
108
108
this .container = factory
109
109
.getEmbeddedServletContainer (exampleServletRegistration ());
110
110
this .container .start ();
@@ -115,7 +115,7 @@ public void stopServlet() throws Exception {
115
115
116
116
@ Test
117
117
public void restartWithKeepAlive () throws Exception {
118
- ConfigurableEmbeddedServletContainerFactory factory = getFactory ();
118
+ AbstractEmbeddedServletContainerFactory factory = getFactory ();
119
119
this .container = factory
120
120
.getEmbeddedServletContainer (exampleServletRegistration ());
121
121
this .container .start ();
@@ -138,7 +138,7 @@ public void restartWithKeepAlive() throws Exception {
138
138
139
139
@ Test
140
140
public void startServletAndFilter () throws Exception {
141
- ConfigurableEmbeddedServletContainerFactory factory = getFactory ();
141
+ AbstractEmbeddedServletContainerFactory factory = getFactory ();
142
142
this .container = factory .getEmbeddedServletContainer (
143
143
exampleServletRegistration (), new FilterRegistrationBean (
144
144
new ExampleFilter ()));
@@ -148,7 +148,7 @@ public void startServletAndFilter() throws Exception {
148
148
149
149
@ Test
150
150
public void startBlocksUntilReadyToServe () throws Exception {
151
- ConfigurableEmbeddedServletContainerFactory factory = getFactory ();
151
+ AbstractEmbeddedServletContainerFactory factory = getFactory ();
152
152
final Date [] date = new Date [1 ];
153
153
this .container = factory
154
154
.getEmbeddedServletContainer (new ServletContextInitializer () {
@@ -170,7 +170,7 @@ public void onStartup(ServletContext servletContext)
170
170
171
171
@ Test
172
172
public void loadOnStartAfterContextIsInitialized () throws Exception {
173
- ConfigurableEmbeddedServletContainerFactory factory = getFactory ();
173
+ AbstractEmbeddedServletContainerFactory factory = getFactory ();
174
174
final InitCountingServlet servlet = new InitCountingServlet ();
175
175
this .container = factory
176
176
.getEmbeddedServletContainer (new ServletContextInitializer () {
@@ -187,7 +187,7 @@ public void onStartup(ServletContext servletContext)
187
187
188
188
@ Test
189
189
public void specificPort () throws Exception {
190
- ConfigurableEmbeddedServletContainerFactory factory = getFactory ();
190
+ AbstractEmbeddedServletContainerFactory factory = getFactory ();
191
191
factory .setPort (8081 );
192
192
this .container = factory
193
193
.getEmbeddedServletContainer (exampleServletRegistration ());
@@ -198,7 +198,7 @@ public void specificPort() throws Exception {
198
198
199
199
@ Test
200
200
public void specificContextRoot () throws Exception {
201
- ConfigurableEmbeddedServletContainerFactory factory = getFactory ();
201
+ AbstractEmbeddedServletContainerFactory factory = getFactory ();
202
202
factory .setContextPath ("/say" );
203
203
this .container = factory
204
204
.getEmbeddedServletContainer (exampleServletRegistration ());
@@ -230,7 +230,7 @@ public void contextRootPathMustNotBeSlash() throws Exception {
230
230
231
231
@ Test
232
232
public void doubleStop () throws Exception {
233
- ConfigurableEmbeddedServletContainerFactory factory = getFactory ();
233
+ AbstractEmbeddedServletContainerFactory factory = getFactory ();
234
234
this .container = factory
235
235
.getEmbeddedServletContainer (exampleServletRegistration ());
236
236
this .container .start ();
@@ -240,7 +240,7 @@ public void doubleStop() throws Exception {
240
240
241
241
@ Test
242
242
public void multipleConfigurations () throws Exception {
243
- ConfigurableEmbeddedServletContainerFactory factory = getFactory ();
243
+ AbstractEmbeddedServletContainerFactory factory = getFactory ();
244
244
ServletContextInitializer [] initializers = new ServletContextInitializer [6 ];
245
245
for (int i = 0 ; i < initializers .length ; i ++) {
246
246
initializers [i ] = mock (ServletContextInitializer .class );
@@ -285,7 +285,7 @@ public void mimeType() throws Exception {
285
285
286
286
@ Test
287
287
public void errorPage () throws Exception {
288
- ConfigurableEmbeddedServletContainerFactory factory = getFactory ();
288
+ AbstractEmbeddedServletContainerFactory factory = getFactory ();
289
289
factory .addErrorPages (new ErrorPage (HttpStatus .INTERNAL_SERVER_ERROR , "/hello" ));
290
290
this .container = factory .getEmbeddedServletContainer (
291
291
exampleServletRegistration (), errorServletRegistration ());
0 commit comments