Skip to content

Commit

Permalink
check the server version first
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Lee committed Dec 9, 2016
1 parent 08dd063 commit 423f074
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.bson.types.Decimal128;
import org.bson.types.ObjectId;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;
Expand All @@ -35,6 +36,11 @@ public BigDecimalConverterTest() {
super(new BigDecimalConverter());
}

@Before
public void serverCheck() {
checkMinServerVersion(3.4);
}

@Test
public void convertNull() {
Assert.assertNull(getConverter().decode(null, null));
Expand Down

0 comments on commit 423f074

Please sign in to comment.