We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5ae7c76 + af5cfe8 commit 6896195Copy full SHA for 6896195
src/test/java/org/springframework/data/couchbase/core/CouchbaseTemplateTests.java
@@ -201,10 +201,12 @@ public void shouldNotSaveNull() {
201
202
@Test
203
public void shouldDeserialiseLongs() {
204
- SimpleWithLong simpleWithLong = new SimpleWithLong("simpleWithLong:simple", new Date().getTime());
+ final long time = new Date().getTime();
205
+ SimpleWithLong simpleWithLong = new SimpleWithLong("simpleWithLong:simple", time);
206
template.save(simpleWithLong);
207
simpleWithLong = template.findById("simpleWithLong:simple", SimpleWithLong.class);
208
assertNotNull(simpleWithLong);
209
+ assertEquals(time, simpleWithLong.getValue());
210
}
211
212
/**
0 commit comments