lunes, noviembre 19, 2012
Publicado por Alex Soto en 8:05 a. m.
lunes, noviembre 05, 2012
Publicado por Alex Soto en 8:29 a. m.
Next week starts the Devoxx. I will be there as speaker and as listener. You can meet me on two presentations (a Tools in Action and a BOF ones).
In Tools In Action I will introduce you NoSQLUnit, a JUnit extension for writing tests for NoSQL applications.
This will be on Monday 12th at 16:45.
Don't miss it if you are planning to use NoSQL systems as backend in your applications.
In the BOF, Bartosz Majsak, John Ferguson Smart, Paul Bakker, Dan Allen, Aslak Knutsen, Sarah White, Mircea Markus, Lukáš Fryč, David Blevins and Me, are going to talk about killing bugs.
This will be on Monday 12th at 21:00.
Don't miss it for anything else in the world.
Hope to see all of you there.
And through it all she offers me protection, A lot of love and affection, Whether I'm right or wrong (Angel - Robbie Williams)
jueves, noviembre 01, 2012
Publicado por Alex Soto en 7:10 p. m.
In 0.6.0 release, one new NoSQL system is supported and is HBase.
Apache HBase is an open-source, distributed, versioned, column-oriented store.
As all databases supported by NoSQLUnit, two set of rules are provided to write HBase tests:
First set of JUnit Rules are those responsible of managing database lifecycle; basically starting and stopping HBase instance.
- Embedded: com.lordofthejars.nosqlunit.hbase.EmbeddedHBase
- Managed: com.lordofthejars.nosqlunit.hbase.ManagedHBase
Depending on the kind of tests you are implementing (unit test, integration test, deployment tests, …) you will require an embedded, managed or remote approach. Note that for now I haven't implemented an In-Memory approach because there is no in-memory HBase instance, but embedded strategy for unit tests will be the better one.
Second set of rules are those responsible of maintaining database into known state;
- NoSQLUnit Management: com.lordofthejars.nosqlunit.hbase.HBaseRule
And finally default dataset file format in HBase is json. Dataset in HBase is the same used by Cassandra-Unit but not all fields are supported. Only fields available in TSV HBase application can be set into dataset.
We will use a very simple example used in HBase tutorial as an example of how to write unit tests for systems that uses HBase database as backend.
First of all, dataset used to maintain HBase into known state:
and finally the test case:
Stay in touch with the project and of course I am opened to any ideas that you think that could make NoSQLUnit better.
We de ze zu bu, We de sooo a ru, Un va-a pesh a lay, Un vi-I bee (Now We Are Free - Lisa Gerrard)Music: http://www.youtube.com/watch?v=ObGYFInWrU0