Skip to content

Commit 7ab00e8

Browse files
author
Mark
committed
fixed test
1 parent 3c9d60a commit 7ab00e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/com/arangodb/velocypack/VPackParserTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
package com.arangodb.velocypack;
2222

23+
import static org.hamcrest.Matchers.containsString;
2324
import static org.hamcrest.Matchers.is;
2425
import static org.junit.Assert.assertThat;
2526

@@ -483,7 +484,8 @@ public void serialize(final VPackBuilder builder, final String attribute, final
483484
public void dateToJson() {
484485
final VPackSlice vpack = new VPackBuilder().add(new Date(1478766992059L)).slice();
485486
final VPackParser parser = new VPackParser();
486-
assertThat(parser.toJson(vpack), is("\"2016-11-10T09:36:32.059Z\""));
487+
assertThat(parser.toJson(vpack), containsString("2016-11-10T"));
488+
assertThat(parser.toJson(vpack), containsString(":36:32.059Z"));
487489
}
488490

489491
}

0 commit comments

Comments
 (0)