Package org.chare

Source Code of org.chare.ConfigTest

package org.chare;

import org.chare.service.Service;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;

import static org.junit.Assert.*;

public class ConfigTest {

  @Test
  public void testConfig() throws Exception {
    AbstractApplicationContext context = new AnnotationConfigApplicationContext(Config.class);
    assertNotNull(context.getBean(Service.class));
    context.close();
  }

}
TOP

Related Classes of org.chare.ConfigTest

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.