package org.transgalactica.management.data.referentiel.context;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.transgalactica.management.data.referentiel.TestConfig;
import org.transgalactica.management.data.referentiel.bo.MecanicienSpecialiteEntity;
import org.transgalactica.management.data.referentiel.dao.MecanicienSpecialiteDao;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = TestConfig.class)
public class ChargementContextTest {
@Autowired
private ApplicationContext applicationContext;
@Test
public void testInitialisationContext() {
assertNotNull(applicationContext);
}
@Test
public void testInitialisationBos() {
assertNotNull(applicationContext.getBean(MecanicienSpecialiteEntity.class));
}
@Test
public void testInitialisationDaos() {
assertNotNull(applicationContext.getBean(MecanicienSpecialiteDao.class));
}
}