@@ -41,10 +41,12 @@ public class ProfileXmlBeanDefinitionTests {
41
41
42
42
private static final String PROD_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-prodProfile.xml" ;
43
43
private static final String DEV_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-devProfile.xml" ;
44
+ private static final String NOT_DEV_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-notDevProfile.xml" ;
44
45
private static final String ALL_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-noProfile.xml" ;
45
46
private static final String MULTI_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-multiProfile.xml" ;
47
+ private static final String MULTI_NOT_DEV_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-multiProfileNotDev.xml" ;
46
48
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" ;
48
50
private static final String DEFAULT_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-defaultProfile.xml" ;
49
51
private static final String CUSTOM_DEFAULT_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-customDefaultProfile.xml" ;
50
52
private static final String DEFAULT_AND_DEV_ELIGIBLE_XML = "ProfileXmlBeanDefinitionTests-defaultAndDevProfile.xml" ;
@@ -71,10 +73,15 @@ public void testProfilePermutations() {
71
73
assertThat (beanFactoryFor (PROD_ELIGIBLE_XML , MULTI_ACTIVE ), containsTargetBean ());
72
74
73
75
assertThat (beanFactoryFor (DEV_ELIGIBLE_XML , NONE_ACTIVE ), not (containsTargetBean ()));
74
- assertThat (beanFactoryFor (DEV_ELIGIBLE_XML , PROD_ACTIVE ), not (containsTargetBean ()));
75
76
assertThat (beanFactoryFor (DEV_ELIGIBLE_XML , DEV_ACTIVE ), containsTargetBean ());
77
+ assertThat (beanFactoryFor (DEV_ELIGIBLE_XML , PROD_ACTIVE ), not (containsTargetBean ()));
76
78
assertThat (beanFactoryFor (DEV_ELIGIBLE_XML , MULTI_ACTIVE ), containsTargetBean ());
77
79
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
+
78
85
assertThat (beanFactoryFor (ALL_ELIGIBLE_XML , NONE_ACTIVE ), containsTargetBean ());
79
86
assertThat (beanFactoryFor (ALL_ELIGIBLE_XML , DEV_ACTIVE ), containsTargetBean ());
80
87
assertThat (beanFactoryFor (ALL_ELIGIBLE_XML , PROD_ACTIVE ), containsTargetBean ());
@@ -86,13 +93,19 @@ public void testProfilePermutations() {
86
93
assertThat (beanFactoryFor (MULTI_ELIGIBLE_XML , PROD_ACTIVE ), containsTargetBean ());
87
94
assertThat (beanFactoryFor (MULTI_ELIGIBLE_XML , MULTI_ACTIVE ), containsTargetBean ());
88
95
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
+
89
102
assertThat (beanFactoryFor (MULTI_ELIGIBLE_SPACE_DELIMITED_XML , NONE_ACTIVE ), not (containsTargetBean ()));
90
103
assertThat (beanFactoryFor (MULTI_ELIGIBLE_SPACE_DELIMITED_XML , UNKNOWN_ACTIVE ), not (containsTargetBean ()));
91
104
assertThat (beanFactoryFor (MULTI_ELIGIBLE_SPACE_DELIMITED_XML , DEV_ACTIVE ), containsTargetBean ());
92
105
assertThat (beanFactoryFor (MULTI_ELIGIBLE_SPACE_DELIMITED_XML , PROD_ACTIVE ), containsTargetBean ());
93
106
assertThat (beanFactoryFor (MULTI_ELIGIBLE_SPACE_DELIMITED_XML , MULTI_ACTIVE ), containsTargetBean ());
94
107
95
- assertThat (beanFactoryFor (UNKOWN_ELIGIBLE_XML , MULTI_ACTIVE ), not (containsTargetBean ()));
108
+ assertThat (beanFactoryFor (UNKNOWN_ELIGIBLE_XML , MULTI_ACTIVE ), not (containsTargetBean ()));
96
109
}
97
110
98
111
@ Test
0 commit comments