@@ -0,0 +1,758 @@
+/**%0A * %0A */%0Apackage cn.strong.leke.data.mongo.convert;%0A%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.util.List;%0Aimport java.util.regex.Pattern;%0A%0Aimport org.bson.BsonBinary;%0Aimport org.bson.types.ObjectId;%0Aimport org.junit.Test;%0A%0A/**%0A * @author liulongbiao%0A *%0A */%0Apublic class BsonSimpleTypesTest %7B%0A%0A%09/**%0A%09 * Test method for %7B@link cn.strong.leke.data.mongo.convert.BsonSimpleTypes#isSimpleType(java.lang.Class)%7D.%0A%09 */%0A%09@Test%0A%09public void testIsSimpleType() %7B%0A%09%09assertTrue(BsonSimpleTypes.isSimpleType(ObjectId.class));%0A%09%09assertTrue(BsonSimpleTypes.isSimpleType(Pattern.class));%0A%09%09assertTrue(BsonSimpleTypes.isSimpleType(BsonBinary.class));%0A%09%09assertFalse(BsonSimpleTypes.isSimpleType(List.class));%0A%09%7D%0A%0A%7D%0A

添加 BsonSimpleTypesTest