Skip to content

Commit 6896195

Browse files
committed
Merge pull request #11 from dharrigan/DATACOUCH-34
DATACOUCH-34 - Can't deserialize long/Long/Date fields.
2 parents 5ae7c76 + af5cfe8 commit 6896195

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/org/springframework/data/couchbase/core/CouchbaseTemplateTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,12 @@ public void shouldNotSaveNull() {
201201

202202
@Test
203203
public void shouldDeserialiseLongs() {
204-
SimpleWithLong simpleWithLong = new SimpleWithLong("simpleWithLong:simple", new Date().getTime());
204+
final long time = new Date().getTime();
205+
SimpleWithLong simpleWithLong = new SimpleWithLong("simpleWithLong:simple", time);
205206
template.save(simpleWithLong);
206207
simpleWithLong = template.findById("simpleWithLong:simple", SimpleWithLong.class);
207208
assertNotNull(simpleWithLong);
209+
assertEquals(time, simpleWithLong.getValue());
208210
}
209211

210212
/**

0 commit comments

Comments
 (0)