56
56
* @author Thomas Darimont
57
57
* @author Christoph Strobl
58
58
*/
59
- public class MongoConvertersUnitTests {
59
+ class MongoConvertersUnitTests {
60
60
61
61
@ Test
62
- public void convertsBigDecimalToStringAndBackCorrectly () {
62
+ void convertsBigDecimalToStringAndBackCorrectly () {
63
63
64
64
BigDecimal bigDecimal = BigDecimal .valueOf (254 , 1 );
65
65
String value = BigDecimalToStringConverter .INSTANCE .convert (bigDecimal );
@@ -70,7 +70,7 @@ public void convertsBigDecimalToStringAndBackCorrectly() {
70
70
}
71
71
72
72
@ Test // DATAMONGO-858
73
- public void convertsBoxToDocumentAndBackCorrectly () {
73
+ void convertsBoxToDocumentAndBackCorrectly () {
74
74
75
75
Box box = new Box (new Point (1 , 2 ), new Point (3 , 4 ));
76
76
@@ -81,7 +81,7 @@ public void convertsBoxToDocumentAndBackCorrectly() {
81
81
}
82
82
83
83
@ Test // DATAMONGO-858
84
- public void convertsCircleToDocumentAndBackCorrectly () {
84
+ void convertsCircleToDocumentAndBackCorrectly () {
85
85
86
86
Circle circle = new Circle (new Point (1 , 2 ), 3 );
87
87
@@ -92,7 +92,7 @@ public void convertsCircleToDocumentAndBackCorrectly() {
92
92
}
93
93
94
94
@ Test // DATAMONGO-858
95
- public void convertsPolygonToDocumentAndBackCorrectly () {
95
+ void convertsPolygonToDocumentAndBackCorrectly () {
96
96
97
97
Polygon polygon = new Polygon (new Point (1 , 2 ), new Point (2 , 3 ), new Point (3 , 4 ), new Point (5 , 6 ));
98
98
@@ -103,7 +103,7 @@ public void convertsPolygonToDocumentAndBackCorrectly() {
103
103
}
104
104
105
105
@ Test // DATAMONGO-858
106
- public void convertsSphereToDocumentAndBackCorrectly () {
106
+ void convertsSphereToDocumentAndBackCorrectly () {
107
107
108
108
Sphere sphere = new Sphere (new Point (1 , 2 ), 3 );
109
109
@@ -114,7 +114,7 @@ public void convertsSphereToDocumentAndBackCorrectly() {
114
114
}
115
115
116
116
@ Test // DATAMONGO-858
117
- public void convertsPointToListAndBackCorrectly () {
117
+ void convertsPointToListAndBackCorrectly () {
118
118
119
119
Point point = new Point (1 , 2 );
120
120
@@ -125,44 +125,44 @@ public void convertsPointToListAndBackCorrectly() {
125
125
}
126
126
127
127
@ Test // DATAMONGO-1372
128
- public void convertsCurrencyToStringCorrectly () {
128
+ void convertsCurrencyToStringCorrectly () {
129
129
assertThat (CurrencyToStringConverter .INSTANCE .convert (Currency .getInstance ("USD" ))).isEqualTo ("USD" );
130
130
}
131
131
132
132
@ Test // DATAMONGO-1372
133
- public void convertsStringToCurrencyCorrectly () {
133
+ void convertsStringToCurrencyCorrectly () {
134
134
assertThat (StringToCurrencyConverter .INSTANCE .convert ("USD" )).isEqualTo (Currency .getInstance ("USD" ));
135
135
}
136
136
137
137
@ Test // DATAMONGO-1416
138
- public void convertsAtomicLongToLongCorrectly () {
138
+ void convertsAtomicLongToLongCorrectly () {
139
139
assertThat (AtomicLongToLongConverter .INSTANCE .convert (new AtomicLong (100L ))).isEqualTo (100L );
140
140
}
141
141
142
142
@ Test // DATAMONGO-1416
143
- public void convertsAtomicIntegerToIntegerCorrectly () {
143
+ void convertsAtomicIntegerToIntegerCorrectly () {
144
144
assertThat (AtomicIntegerToIntegerConverter .INSTANCE .convert (new AtomicInteger (100 ))).isEqualTo (100 );
145
145
}
146
146
147
147
@ Test // DATAMONGO-1416
148
- public void convertsLongToAtomicLongCorrectly () {
148
+ void convertsLongToAtomicLongCorrectly () {
149
149
assertThat (LongToAtomicLongConverter .INSTANCE .convert (100L )).isInstanceOf (AtomicLong .class );
150
150
}
151
151
152
152
@ Test // DATAMONGO-1416
153
- public void convertsIntegerToAtomicIntegerCorrectly () {
153
+ void convertsIntegerToAtomicIntegerCorrectly () {
154
154
assertThat (IntegerToAtomicIntegerConverter .INSTANCE .convert (100 )).isInstanceOf (AtomicInteger .class );
155
155
}
156
156
157
157
@ Test // DATAMONGO-2113
158
- public void convertsBsonTimestampToInstantCorrectly () {
158
+ void convertsBsonTimestampToInstantCorrectly () {
159
159
160
160
assertThat (BsonTimestampToInstantConverter .INSTANCE .convert (new BsonTimestamp (6615900307735969796L )))
161
161
.isCloseTo (Instant .ofEpochSecond (1540384327 ), new TemporalUnitLessThanOffset (100 , ChronoUnit .MILLIS ));
162
162
}
163
163
164
164
@ Test // DATAMONGO-2210
165
- public void convertsUrisToString () {
165
+ void convertsUrisToString () {
166
166
167
167
MongoCustomConversions conversions = new MongoCustomConversions ();
168
168
0 commit comments