@@ -41,10 +41,12 @@ public class ProfileXmlBeanDefinitionTests {
4141
4242 private static final String PROD_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-prodProfile.xml" ;
4343 private static final String DEV_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-devProfile.xml" ;
44+ private static final String NOT_DEV_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-notDevProfile.xml" ;
4445 private static final String ALL_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-noProfile.xml" ;
4546 private static final String MULTI_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-multiProfile.xml" ;
47+ private static final String MULTI_NOT_DEV_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-multiProfileNotDev.xml" ;
4648 private static final String MULTI_ELIGIBLE_SPACE_DELIMITED_XML = "ProfileXmlBeanDefinitionTests-spaceDelimitedProfile.xml" ;
47- private static final String UNKOWN_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-unknownProfile.xml" ;
49+ private static final String UNKNOWN_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-unknownProfile.xml" ;
4850 private static final String DEFAULT_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-defaultProfile.xml" ;
4951 private static final String CUSTOM_DEFAULT_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-customDefaultProfile.xml" ;
5052 private static final String DEFAULT_AND_DEV_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-defaultAndDevProfile.xml" ;
@@ -71,10 +73,15 @@ public void testProfilePermutations() {
7173 assertThat (beanFactoryFor (PROD_ELIGIBLE_XML , MULTI_ACTIVE ), containsTargetBean ());
7274
7375 assertThat (beanFactoryFor (DEV_ELIGIBLE_XML , NONE_ACTIVE ), not (containsTargetBean ()));
74- assertThat (beanFactoryFor (DEV_ELIGIBLE_XML , PROD_ACTIVE ), not (containsTargetBean ()));
7576 assertThat (beanFactoryFor (DEV_ELIGIBLE_XML , DEV_ACTIVE ), containsTargetBean ());
77+ assertThat (beanFactoryFor (DEV_ELIGIBLE_XML , PROD_ACTIVE ), not (containsTargetBean ()));
7678 assertThat (beanFactoryFor (DEV_ELIGIBLE_XML , MULTI_ACTIVE ), containsTargetBean ());
7779
80+ assertThat (beanFactoryFor (NOT_DEV_ELIGIBLE_XML , NONE_ACTIVE ), containsTargetBean ());
81+ assertThat (beanFactoryFor (NOT_DEV_ELIGIBLE_XML , DEV_ACTIVE ), not (containsTargetBean ()));
82+ assertThat (beanFactoryFor (NOT_DEV_ELIGIBLE_XML , PROD_ACTIVE ), containsTargetBean ());
83+ assertThat (beanFactoryFor (NOT_DEV_ELIGIBLE_XML , MULTI_ACTIVE ), not (containsTargetBean ()));
84+
7885 assertThat (beanFactoryFor (ALL_ELIGIBLE_XML , NONE_ACTIVE ), containsTargetBean ());
7986 assertThat (beanFactoryFor (ALL_ELIGIBLE_XML , DEV_ACTIVE ), containsTargetBean ());
8087 assertThat (beanFactoryFor (ALL_ELIGIBLE_XML , PROD_ACTIVE ), containsTargetBean ());
@@ -86,13 +93,19 @@ public void testProfilePermutations() {
8693 assertThat (beanFactoryFor (MULTI_ELIGIBLE_XML , PROD_ACTIVE ), containsTargetBean ());
8794 assertThat (beanFactoryFor (MULTI_ELIGIBLE_XML , MULTI_ACTIVE ), containsTargetBean ());
8895
96+ assertThat (beanFactoryFor (MULTI_NOT_DEV_ELIGIBLE_XML , NONE_ACTIVE ), containsTargetBean ());
97+ assertThat (beanFactoryFor (MULTI_NOT_DEV_ELIGIBLE_XML , UNKNOWN_ACTIVE ), containsTargetBean ());
98+ assertThat (beanFactoryFor (MULTI_NOT_DEV_ELIGIBLE_XML , DEV_ACTIVE ), not (containsTargetBean ()));
99+ assertThat (beanFactoryFor (MULTI_NOT_DEV_ELIGIBLE_XML , PROD_ACTIVE ), containsTargetBean ());
100+ assertThat (beanFactoryFor (MULTI_NOT_DEV_ELIGIBLE_XML , MULTI_ACTIVE ), containsTargetBean ());
101+
89102 assertThat (beanFactoryFor (MULTI_ELIGIBLE_SPACE_DELIMITED_XML , NONE_ACTIVE ), not (containsTargetBean ()));
90103 assertThat (beanFactoryFor (MULTI_ELIGIBLE_SPACE_DELIMITED_XML , UNKNOWN_ACTIVE ), not (containsTargetBean ()));
91104 assertThat (beanFactoryFor (MULTI_ELIGIBLE_SPACE_DELIMITED_XML , DEV_ACTIVE ), containsTargetBean ());
92105 assertThat (beanFactoryFor (MULTI_ELIGIBLE_SPACE_DELIMITED_XML , PROD_ACTIVE ), containsTargetBean ());
93106 assertThat (beanFactoryFor (MULTI_ELIGIBLE_SPACE_DELIMITED_XML , MULTI_ACTIVE ), containsTargetBean ());
94107
95- assertThat (beanFactoryFor (UNKOWN_ELIGIBLE_XML , MULTI_ACTIVE ), not (containsTargetBean ()));
108+ assertThat (beanFactoryFor (UNKNOWN_ELIGIBLE_XML , MULTI_ACTIVE ), not (containsTargetBean ()));
96109 }
97110
98111 @ Test
0 commit comments