Comments (3)
Thanks for your post. Actually, using explanation provided in JIRA issue, I succeed to insert date. The final file is:
{
"todo":[
{
"_class":"experiments.entity.Todo",
"_id":1,
"completed":false,
"content":"test",
"order":1,
"title":"title",
"username":"username",
"lastUpdate":{ "$date" : "2013-02-07T09:09:09.212Z"}
}
]
}
It seems to me you can close this issue without trouble but I prefer to let you do so.
from nosql-unit.
Hello, well there is a problem with this kind of data, but is not related to NoSQLUnit but java mongodb driver, if you look next issue JIRA it talks about similar problem but in queries. I think that should work with insertion too. Moreover in stackoverflow it is explained that ISODate is simply a helper class that wraps a Javascript date object.
As discussed in this forum (http://grokbase.com/t/gg/mongodb-user/129ywkf8sq/java-date) you can use Date to retrieve back the date.
I will write a unit test about this to validate all this information I have provided, and depending on results I will close the issue or fix the problem. But as you noted in description it seems more a problem with json file than NoSQLUnit.
Thank you very much for using NoSQLUnit, for any question , problem, ... do not hesitate to contact me.
Alex.
from nosql-unit.
Good, thank you very much, I will update documentation by providing an example for ISODates.
from nosql-unit.
Related Issues (20)
- Upgrade Neo4j Libraries to 3.2.x or better to for use with Bolt protocol HOT 1
- NoSQL Unit is not compatible with JUnit 5 HOT 7
- which project supports EmbeddedRedisBuilder? HOT 1
- Can't retrieve info with Spring Data from Fongoed MongoDB HOT 4
- Excepion when running multiple tests using MongoDbRule + Spring+Real remote Mongo Db+ CLEAN_INSERT Strategy HOT 10
- [Feature request] allow specify which collections/keyspaces/nodes... get deleted HOT 3
- Can I use multiple @Rule in single test class ? HOT 3
- Add DynamoDB support
- fix(SpringMongoDbRule): let Spring close the connection to Mongo when⦠#180
- Error when tried HBase unit test code HOT 1
- Support for reactive MongoDB driver HOT 1
- Add support for Elasticsearch 6.x.x HOT 2
- Fix tests and Setup a CI system HOT 10
- Add support for InfluxDB
- MongoFlexibleComparisonStrategy failed on embedded document
- Make static methods in MongoDbAssertion public HOT 1
- Fongo is a dead project HOT 1
- #MongoDB File specified in locations property are not present in classpath HOT 2
- #Redis java.lang.IllegalArgumentException: Windows System is not supported
- #MongoDB how to insert a document with specified _id
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nosql-unit.