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:
Dave Syer
2013-05-01 09:59:07 +01:00
parent 5501adc862
commit 4d372bcc25
2 changed files with 2 additions and 23 deletions

View File

@@ -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);
}