Package org.springframework.context.support

Examples of org.springframework.context.support.ClassPathXmlApplicationContext.refresh()


    assertEquals(1, beanNames.length);

    MenuManager menuManager = context.getBean(MenuManager.class);
    assertEquals(4, menuManager.getMenus().size());

    context.refresh();

    ClassPathXmlApplicationContext child = new ClassPathXmlApplicationContext(
        new String[] { "classpath:/test-job-context.xml" }, parent);
    Job job = child.getBean(Job.class);
    final JobExecution jobExecution = parent.getBean(JobLauncher.class).run(job, new JobParameters());
View Full Code Here


    @Test
    public void testSpringWiringOfCometDServices() throws Exception
    {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext();
        applicationContext.setConfigLocation("classpath:applicationContext.xml");
        applicationContext.refresh();

        String beanName = Introspector.decapitalize(SpringBayeuxService.class.getSimpleName());

        String[] beanNames = applicationContext.getBeanDefinitionNames();
        assertTrue(Arrays.asList(beanNames).contains(beanName));
View Full Code Here

    ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext();
    applicationContext.setValidating(false);
    applicationContext.setConfigLocation("/org/springframework/batch/integration/config/xml/RemoteChunkingMasterParserMissingIdAttrTests.xml");

    try {
      applicationContext.refresh();
      fail();
    } catch (BeanDefinitionStoreException e) {
      assertTrue("Nested exception must be of type IllegalArgumentException", e.getCause() instanceof IllegalArgumentException);

      IllegalArgumentException iae = (IllegalArgumentException) e.getCause();
View Full Code Here

    ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext();
    applicationContext.setValidating(false);
    applicationContext.setConfigLocation("/org/springframework/batch/integration/config/xml/RemoteChunkingMasterParserMissingMessageTemplateAttrTests.xml");

    try {
      applicationContext.refresh();
      fail();
    } catch (BeanDefinitionStoreException e) {
      assertTrue("Nested exception must be of type IllegalArgumentException", e.getCause() instanceof IllegalArgumentException);

      IllegalArgumentException iae = (IllegalArgumentException) e.getCause();
View Full Code Here

    ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext();
    applicationContext.setValidating(false);
    applicationContext.setConfigLocation("/org/springframework/batch/integration/config/xml/RemoteChunkingMasterParserMissingStepAttrTests.xml");

    try {
      applicationContext.refresh();
      fail();
    } catch (BeanDefinitionStoreException e) {
      assertTrue("Nested exception must be of type IllegalArgumentException", e.getCause() instanceof IllegalArgumentException);

      IllegalArgumentException iae = (IllegalArgumentException) e.getCause();
View Full Code Here

    ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext();
    applicationContext.setValidating(false);
    applicationContext.setConfigLocation("/org/springframework/batch/integration/config/xml/RemoteChunkingMasterParserMissingReplyChannelAttrTests.xml");

    try {
      applicationContext.refresh();
      fail();
    } catch (BeanDefinitionStoreException e) {
      assertTrue("Nested exception must be of type IllegalArgumentException", e.getCause() instanceof IllegalArgumentException);

      IllegalArgumentException iae = (IllegalArgumentException) e.getCause();
View Full Code Here

    ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext();
    applicationContext.setValidating(false);
    applicationContext.setConfigLocation("/org/springframework/batch/integration/config/xml/RemoteChunkingSlaveParserMissingIdAttrTests.xml");

    try {
      applicationContext.refresh();
      fail();
    } catch (BeanDefinitionStoreException e) {
      assertTrue("Nested exception must be of type IllegalArgumentException", e.getCause() instanceof IllegalArgumentException);

      IllegalArgumentException iae = (IllegalArgumentException) e.getCause();
View Full Code Here

    ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext();
    applicationContext.setValidating(false);
    applicationContext.setConfigLocation("/org/springframework/batch/integration/config/xml/RemoteChunkingSlaveParserMissingInputChannelAttrTests.xml");

    try {
      applicationContext.refresh();
      fail();
    } catch (BeanDefinitionStoreException e) {
      assertTrue("Nested exception must be of type IllegalArgumentException", e.getCause() instanceof IllegalArgumentException);

      IllegalArgumentException iae = (IllegalArgumentException) e.getCause();
View Full Code Here

    ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext();
    applicationContext.setValidating(false);
    applicationContext.setConfigLocation("/org/springframework/batch/integration/config/xml/RemoteChunkingSlaveParserMissingItemWriterAttrTests.xml");

    try {
      applicationContext.refresh();
      fail();
    } catch (BeanDefinitionStoreException e) {
      assertTrue("Nested exception must be of type IllegalArgumentException", e.getCause() instanceof IllegalArgumentException);

      IllegalArgumentException iae = (IllegalArgumentException) e.getCause();
View Full Code Here

    ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext();
    applicationContext.setValidating(false);
    applicationContext.setConfigLocation("/org/springframework/batch/integration/config/xml/RemoteChunkingSlaveParserMissingOutputChannelAttrTests.xml");

    try {
      applicationContext.refresh();
      fail();
    } catch (BeanDefinitionStoreException e) {
      assertTrue("Nested exception must be of type IllegalArgumentException", e.getCause() instanceof IllegalArgumentException);

      IllegalArgumentException iae = (IllegalArgumentException) e.getCause();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.