Friday, July 31, 2015

Stubbed Cassnadra 0.9.1: 2.2 support, query variables and verifification of batches and PS preparations

Version 0.9.1 has a few nice features and has reduced a lot of technical debt. The first features aren't that noticeable from a users point of view:

Java 1.6 support! This was contributed by Andrew Tolbert as he wanted to test against the 1.* branch of the C* Java driver which still supports Java 1.6. I hadn't intentionally dropped 1.6 support but I had brought in a jar that was compiled against 1.7 and thus wouldn't run in a 1.6 JVM. The offending jar was an internal C* jar that could help with serialisation so it was quite a lot of work to replace the use of this jar with custom serialisation code.

Another non-feature feature: Moving to Gradle and having a single build for the Server, Java client and Integration tests against all the versions of the C* Java driver. The aim of this was to make it MUCH easier for other people to contribute as before you had to install the server to a maven repo, then build the client and install it, then run the tests. Now you just run: ./gradlew clean check, Simples.

Real features


Verification of batch statements containing queries. Priming and prepared statements in batches will be in the next release.

Support for version 2.2 of the C* driver.

Verification of the prepare of prepared statements. This will allow you to test you only prepare the statements once and at the right time i.e. application start up. 

Queries that contain variables are now captured properly. As of C* 2.0 you can use a prepared statement like syntax for queries and pass in variables. These are now captured as long as you primed the types of the variables (so Stubbed Cassandra knows how to parse them).

A farJar task so you build a standalone executable. Useful if you aren't using Stubbed Cassandra from a build tool like maven.

As always please raise issues or reach out to be on twitter if you have any questions or feedback.

18 comments:

Unknown said...

Hi Chris, nice work!!
I have an application which uses Hector framework to access Cassandra DB.
Currently all our tests need Casandra to be up to run.
I'm researching on how to stub Cassandra and/or mock Hector so we have real unit tests.
I found interesting your SCassandra work however I don't know how to make Hector aware of SCassandra presence.

Have you tried that?

Rithi Rawat said...

Thankyou for providing the information, I am looking forward for more number of updates from you thank you

machine learning classroom training in chennai
machine learning certification course in chennai
machine learning certification in chennai
top institutes for machine learning in chennai

raneedevan said...


Nice blog....thanks for sharing...
Manual Testing Training in Chennai
Manual Testing Course
manual testing course fees
Manual Testing training in vadapalani
Manual Testing training in Guindy
Mobile Testing Training in Chennai
core java training in chennai
DOT NET Training in Chennai
Hibernate Training in Chennai
Html5 Training in Chennai

Jessica Marais said...

The writer has done a great job; the readers will get to know a lot. If AVG antivirus is troubling you then ask for it from the AVG trained experts at AVG Helpline Number UK.

Deborah C. Calderwood said...


Good article. I'm going through many of these issues as well..promo code

Janu said...

Nice! you are sharing such helpful and easy to understandable blog. i have no words for say i just say thanks because it is helpful for me.








Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery






Farhan.Jee said...

The precedent already exists in the States. A bank lacked the personnel needed to launch an aggressive campaign. Current sales staff had their hands full, servicing existing accounts with little spare time or focus vital to success. Cold calling also required an expertise lacking in-house. A strategic sales team of driven professionals were outsourced to target and build personal relationships with their key growth market. salesforce certification

Unknown said...

Emblix Academy – Digital marketing institute in KPHB, we address all major and minor aspects required for any student’s advancement in digital marketing. Clutch USA named our Digital Marketing Institute the best SEO firm. for more info visit here :- https://emblixacademy.com/

Jack said...

event planner As many associations push exhibitions forward, corporate marketers and event planners now have to evaluate (and prove) the material ROI of investing in physical trade shows compared to planning their own (likely virtual) events. thank you for your support and cooperation, when to sell concert tickets and promote virtual event

Sneha Cubestech said...

Understanding the latest concepts is possible only through contents like this. Thanks for sharing this page in here. It will be useful for my future projects as well. Keep blogging articles like this.

Software Development company in chennai
Digital Marketing Company
Best web development company

TheBEGlobal said...

Nice Blog, Thanks for Sharing. BE Global is offering SEO Services in Dubai at best price.

Larry said...

Just came randomly to this post and now I am a subscribe member of this blog. Really Appreciate author's work. Also visit this latest profile on color vision test. Color blindness is a condition occurs in mens where the a person is unable to differentiate colors and red-green color blindness is the most common.

BEglobal said...

Thanks for sharing. BEglobalza is one of the leading Digital Marketing company in cape town .Our team of passionate experts ensures clear, hard-working, , honest and tangible results online.

sundari said...
This comment has been removed by the author.
sundari said...

DevOps Training in Chennai

Anonymous said...

Great post, thanks for sharing important information, keep us posted Spoken English Course In Pune

gauri said...

Thank you for providing the information, I am looking forward to more number of updates from you thank you

python classes in kolhapur

Chaitanya said...

Helpful info. Fortunately, I discovered your site by chance, and I am stunned that this twist of fate did not take place in advance I bookmarked it.
SAP CPQ Online Training
SAP CRM Online Training