Remove runComponents from SpringApplication
It was basically duplicating run(Object[], String[]) - unless there is some harm in registering a non-component with the context that I haven't seen yet.
This commit is contained in:
@@ -274,8 +274,8 @@ public class SpringApplicationTests {
|
||||
|
||||
@Test
|
||||
public void runComponents() throws Exception {
|
||||
this.context = SpringApplication.runComponents(new Class<?>[] {
|
||||
ExampleWebConfig.class, Object.class });
|
||||
this.context = SpringApplication.run(new Object[] { ExampleWebConfig.class,
|
||||
Object.class }, new String[0]);
|
||||
assertNotNull(this.context);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user