@Test public void testCreation() { final ToscaParser toscaParser = new ToscaParserSupplier().get(); assertNotNull(toscaParser); assertTrue(toscaParser instanceof ToscaParser); }
@Override public ToscaParser get() { ApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class); return applicationContext.getBean(ToscaParser.class); }
ToscaParserSupplier implements Supplier<ToscaParser> { @Override public ToscaParser get() { ApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class); return applicationContext.getBean(ToscaParser.class); } }
ToscaParserSupplier implements Supplier<ToscaParser> { @Override public ToscaParser get() { ApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class); return applicationContext.getBean(ToscaParser.class); }  }
ToscaParserSupplier implements Supplier<ToscaParser> { @Override public ToscaParser get() { ApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class); return applicationContext.getBean(ToscaParser.class); }  @Override ToscaParser get(); }
ToscaParserSupplier implements Supplier<ToscaParser> { @Override public ToscaParser get() { ApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class); return applicationContext.getBean(ToscaParser.class); }  @Override ToscaParser get();  }