

package gov.va.med.cds.testharness.examples.spring;


import gov.va.med.cds.junit.runners.SuiteAwareSpringRunner;
import gov.va.med.cds.junit.runners.Suite;
import gov.va.med.cds.testharness.AbstractBaseTest;
import gov.va.med.cds.uniqueidentifier.UniqueIdentifier;

import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;

import javax.annotation.Resource;


//ApplicationContext will be loaded from "/jUnitSpringContextTest-context.xml"
@ContextConfiguration( locations = { "classpath:gov/va/med/cds/testharness/examples/spring/jUnitSpringContextTest-context.xml" } )
@RunWith( SuiteAwareSpringRunner.class )
public class JUnitSpringContextTest
    extends
        AbstractBaseTest
{
    @Resource
    private UniqueIdentifier uniqueIdentifier;


    @Test
    @Suite( groups = "prototypetest" )
    public void testInjection( )
    {
//        Assert.assertNotNull( applicationContext );
        Assert.assertNotNull( uniqueIdentifier );
    }
}
