domingo, octubre 14, 2012

NoSQLUnit 0.5.0 released

NoSQLUnit is a JUnit extension to make writing unit and high-level tests of systems that use NoSQL as backend easier. Visit official page for more information.

In current release instead of supporting one new engine, I focused on implementing an embedded in-memory Redis engine based on Jedis.  Read in documentation the limitations on current implementation. And of course now NoSQLUnit also supports embedded Redis apart from Managed and Remote, you only have to register EmbeddedRedis rule to use it.
public static EmbeddedRedis embeddedRedis = newEmbeddedRedisRule().build();
Moreover I have fixed some issues with Managed Cassandra lifecycle.

Also I have extended the support to embedded Neo4j engine by allowing the use of instance defined into Spring context file using spring data namespace. See next example that NoSQLUnit will populate data into instance defined in application context.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<beans xmlns=""

    <neo4j:config storeDirectory="target/config-test"/>

And in your test you only have to define SpringEmbeddedNeo4j rule passing the application context object where Neo4j is defined.
private ApplicationContext applicationContext;
SpringEmbeddedNeo4j springEmbeddedGds = newSpringEmbeddedNeo4jRule().beanFactory(applicationContext).build();
And finally in this version of NoSQLUnit, I have implemented that we can use Shard connections provided by Jedis library to populate defined data into different shards. The only thing you should do is changing configuration instance of RedisRule to ShardedRedisConfiguration. See next simple example:
public RedisRule redisRule = new RedisRule(newShardedRedisConfiguration()
         .shard(host(""), port(ManagedRedis.DEFAULT_PORT))
         .shard(host(""), port(ManagedRedis.DEFAULT_PORT + 1))

And that's all for current version.

Next release 0.6.0 will contain support for HBase. Moreover there are an open poll to vote which engine would you like to see in next releases:

Stay in touch with the project and of course I am opened to any ideas that you think that could make NoSQLUnit better.

We keep learning,

Well, these boots are made for walking, and that's just what they'll do, One of these days these boots are gonna walk all over you. (These Boots Are Made For Walkin' - Nancy Sinatra)

6 comentarios:

Unknown dijo...

شركة الرائد
كشف تسربات المياه بالدمام شركة كشف تسربات المياه في الدمام افضل شركات كشف تسربات بالدمام شركة كشف تسربات بالخبر
كشف تسربات المياه بالرياض شركة كشف تسربات المياه شمال الرياض شركة كشف تسربات المياه شرق الرياض افضل شركات كشف التسربات في الرياض شركة الرائد لكشف تسربات المياه بالرياض اجهزة كشف تسربات المياه اسباب تسربات المياه مع الاصلاح بدون تكسير
كشف تسربات المياه بالاحساء شركة كشف تسربات بالاحساء افضل شركات كشف تسربات المياه في الاحساء شركة كشف تسربات المياه بالهفوف بدون تكسير باحدث اجهزة كشف تسربات المياه ارخص الاسعار اسعار كسف تسربات المياه

Anónimo dijo...


situs judi togel pengeluaran singapura dijo...

prediksi hk :

situs judi togel pengeluaran singapura dijo...

situs togel online :

Angka keramat dijo...

Result sydney :

yanmaneee dijo...

kyrie irving shoes
yeezy boost
supreme clothing
kyrie 5 spongebob
kobe 11
jordan shoes
golden goose
jordan shoes
kd 11
hermes handbags