@ -33,13 +33,13 @@ import org.springframework.core.io.ClassPathResource;
@@ -33,13 +33,13 @@ import org.springframework.core.io.ClassPathResource;
*
* @author Chris Beams
* /
public class EnvironmentBeans Tests {
public class ProfileXmlBeanDefinition Tests {
private static final String PROD_ELIGIBLE_XML = "environmentBean s-prodProfile.xml" ;
private static final String DEV_ELIGIBLE_XML = "environmentBean s-devProfile.xml" ;
private static final String ALL_ELIGIBLE_XML = "environmentBean s-noProfile.xml" ;
private static final String MULTI_ELIGIBLE_XML = "environmentBean s-multiProfile.xml" ;
private static final String UNKOWN_ELIGIBLE_XML = "environmentBean s-unknownProfile.xml" ;
private static final String PROD_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTest s-prodProfile.xml" ;
private static final String DEV_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTest s-devProfile.xml" ;
private static final String ALL_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTest s-noProfile.xml" ;
private static final String MULTI_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTest s-multiProfile.xml" ;
private static final String UNKOWN_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTest s-unknownProfile.xml" ;
private static final String PROD_ACTIVE = "prod" ;
private static final String DEV_ACTIVE = "dev" ;
@ -51,7 +51,7 @@ public class EnvironmentBeansTests {
@@ -51,7 +51,7 @@ public class EnvironmentBeansTests {
private static final String TARGET_BEAN = "foo" ;
@Test
public void test ( ) {
public void testProfilePermutations ( ) {
assertThat ( beanFactoryFor ( PROD_ELIGIBLE_XML , NONE_ACTIVE ) , not ( containsTargetBean ( ) ) ) ;
assertThat ( beanFactoryFor ( PROD_ELIGIBLE_XML , NULL_ACTIVE ) , not ( containsTargetBean ( ) ) ) ;
assertThat ( beanFactoryFor ( PROD_ELIGIBLE_XML , DEV_ACTIVE ) , not ( containsTargetBean ( ) ) ) ;