Skip to content

Commit c805d9c

Browse files
committed
DATAMONGO-273, DATAMONGO-294 - Re-enabled accidentally disabled test case.
1 parent 2d97288 commit c805d9c

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/convert/DataDoc273Test.java renamed to spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/convert/DataMongo273Tests.java

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright (c) 2011 by the original author(s).
2+
* Copyright 2011-2012 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -33,11 +33,12 @@
3333
import com.mongodb.DBObject;
3434

3535
/**
36-
* Unit test to reproduce DATADOC-273.
36+
* Unit test to reproduce DATAMONGO-273.
3737
*
3838
* @author Harlan Iverson
39+
* @author Oliver Gierke
3940
*/
40-
public class DataDoc273Test {
41+
public class DataMongo273Tests {
4142

4243
MappingMongoConverter converter;
4344

@@ -54,7 +55,7 @@ public void setupMongoConv() {
5455
}
5556

5657
/**
57-
* @see DATADOC-273
58+
* @see DATAMONGO-273
5859
*/
5960
@Test
6061
public void convertMapOfThings() {
@@ -80,7 +81,7 @@ public void convertMapOfThings() {
8081
}
8182

8283
/**
83-
* @see DATADOC-294
84+
* @see DATAMONGO-294
8485
*/
8586
@Test
8687
@SuppressWarnings({ "rawtypes", "unchecked" })
@@ -96,7 +97,6 @@ public void convertListOfThings() {
9697

9798
DBObject result = new BasicDBList();
9899
converter.write(listOfThings, result);
99-
System.out.println(result.toString());
100100

101101
List listOfThings2 = converter.read(List.class, result);
102102

@@ -106,7 +106,7 @@ public void convertListOfThings() {
106106
}
107107

108108
/**
109-
* @see DATADOC-294
109+
* @see DATAMONGO-294
110110
*/
111111
@Test
112112
@SuppressWarnings({ "rawtypes", "unchecked" })
@@ -121,7 +121,7 @@ public void convertListOfThings_NestedInMap() {
121121
listOfThings.add(train);
122122
listOfThings.add(automobile);
123123

124-
Map box = new HashMap();
124+
Map<String, Object> box = new HashMap<String, Object>();
125125
box.put("one", listOfThings);
126126

127127
Shipment shipment = new Shipment(box);
@@ -138,7 +138,7 @@ public void convertListOfThings_NestedInMap() {
138138
assertTrue(listOfThings2.get(2) instanceof Automobile);
139139
}
140140

141-
class Plane {
141+
static class Plane {
142142

143143
String maker;
144144
int numberOfPropellers;
@@ -149,7 +149,7 @@ public Plane(String maker, int numberOfPropellers) {
149149
}
150150
}
151151

152-
class Train {
152+
static class Train {
153153

154154
String railLine;
155155
int numberOfCars;
@@ -160,7 +160,7 @@ public Train(String railLine, int numberOfCars) {
160160
}
161161
}
162162

163-
class Automobile {
163+
static class Automobile {
164164

165165
String make;
166166
String model;
@@ -174,11 +174,11 @@ public Automobile(String make, String model, int numberOfDoors) {
174174
}
175175

176176
@SuppressWarnings("rawtypes")
177-
public class Shipment {
177+
static class Shipment {
178178

179-
Map boxes = new HashMap();
179+
Map<String, Object> boxes;
180180

181-
public Shipment(Map boxes) {
181+
public Shipment(Map<String, Object> boxes) {
182182
this.boxes = boxes;
183183
}
184184

0 commit comments

Comments
 (0)