Unit Testing ResultSets and Rows

86 views
Skip to first unread message

Kevin Burton

unread,
Jun 8, 2014, 2:04:23 PM6/8/14
to java-dri...@lists.datastax.com
Looking at the javadoc the ResultSet and Row objects are just interfaces with no implementations.

I assume the impls are protected so they're not showing up in Javadoc.

It would be nice to have these public so they can be tested. 

I'm working on some code to convert Rows to POJOs and I'd prefer to not have to hit cassandra for the tests.  

I might just try to embed cassandra to be a more pure test but a quick test would also be beneficial.

Kevin

Christopher Batey

unread,
Jun 8, 2014, 4:48:46 PM6/8/14
to java-dri...@lists.datastax.com
Hi Kevin

You can also use stubbed Cassandra if you're schema is supported (it doesn't support some types yet): www.scassandra.org

I wrote a blog comparing your options for testing java DAOs: 

To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.
Reply all
Reply to author
Forward
0 new messages