51
51
*/
52
52
public class MappingMongoConverterParserIntegrationTests {
53
53
54
- DefaultListableBeanFactory factory ;
54
+ private DefaultListableBeanFactory factory ;
55
55
56
56
@ Test // DATAMONGO-243
57
- public void allowsDbFactoryRefAttribute () {
57
+ void allowsDbFactoryRefAttribute () {
58
58
59
59
loadValidConfiguration ();
60
60
factory .getBeanDefinition ("converter" );
61
61
factory .getBean ("converter" );
62
62
}
63
63
64
64
@ Test // DATAMONGO-725
65
- public void hasCustomTypeMapper () {
65
+ void hasCustomTypeMapper () {
66
66
67
67
loadValidConfiguration ();
68
68
MappingMongoConverter converter = factory .getBean ("converter" , MappingMongoConverter .class );
@@ -72,7 +72,7 @@ public void hasCustomTypeMapper() {
72
72
}
73
73
74
74
@ Test // DATAMONGO-301
75
- public void scansForConverterAndSetsUpCustomConversionsAccordingly () {
75
+ void scansForConverterAndSetsUpCustomConversionsAccordingly () {
76
76
77
77
loadValidConfiguration ();
78
78
CustomConversions conversions = factory .getBean (CustomConversions .class );
@@ -81,7 +81,7 @@ public void scansForConverterAndSetsUpCustomConversionsAccordingly() {
81
81
}
82
82
83
83
@ Test // DATAMONGO-607
84
- public void activatesAbbreviatingPropertiesCorrectly () {
84
+ void activatesAbbreviatingPropertiesCorrectly () {
85
85
86
86
loadValidConfiguration ();
87
87
BeanDefinition definition = factory .getBeanDefinition ("abbreviatingConverter.mongoMappingContext" );
@@ -93,7 +93,7 @@ public void activatesAbbreviatingPropertiesCorrectly() {
93
93
}
94
94
95
95
@ Test // DATAMONGO-866
96
- public void rejectsInvalidFieldNamingStrategyConfiguration () {
96
+ void rejectsInvalidFieldNamingStrategyConfiguration () {
97
97
98
98
BeanDefinitionRegistry factory = new DefaultListableBeanFactory ();
99
99
XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader (factory );
@@ -104,20 +104,19 @@ public void rejectsInvalidFieldNamingStrategyConfiguration() {
104
104
}
105
105
106
106
@ Test // DATAMONGO-892
107
- public void shouldThrowBeanDefinitionParsingExceptionIfConverterDefinedAsNestedBean () {
107
+ void shouldThrowBeanDefinitionParsingExceptionIfConverterDefinedAsNestedBean () {
108
108
109
- assertThatExceptionOfType (BeanDefinitionParsingException .class ).isThrownBy (this ::loadNestedBeanConfiguration )
110
- .withMessageContaining ("Mongo Converter must not be defined as nested bean." );
109
+ assertThatExceptionOfType (BeanDefinitionParsingException .class ).isThrownBy (this ::loadNestedBeanConfiguration );
111
110
112
111
}
113
112
114
113
@ Test // DATAMONGO-925, DATAMONGO-928
115
- public void shouldSupportCustomFieldNamingStrategy () {
114
+ void shouldSupportCustomFieldNamingStrategy () {
116
115
assertStrategyReferenceSetFor ("mappingConverterWithCustomFieldNamingStrategy" );
117
116
}
118
117
119
118
@ Test // DATAMONGO-925, DATAMONGO-928
120
- public void shouldNotFailLoadingConfigIfAbbreviationIsDisabledAndStrategySet () {
119
+ void shouldNotFailLoadingConfigIfAbbreviationIsDisabledAndStrategySet () {
121
120
assertStrategyReferenceSetFor ("mappingConverterWithCustomFieldNamingStrategyAndAbbreviationDisabled" );
122
121
}
123
122
0 commit comments