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.

19 comments:

  1. 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?

    ReplyDelete
  2. 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.

    ReplyDelete

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

    ReplyDelete
  4. 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






    ReplyDelete
  5. 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

    ReplyDelete
  6. 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/

    ReplyDelete
  7. 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

    ReplyDelete
  8. 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

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

    ReplyDelete
  10. 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.

    ReplyDelete
  11. 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.

    ReplyDelete
  12. This comment has been removed by the author.

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

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

    python classes in kolhapur

    ReplyDelete
  15. 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

    ReplyDelete
  16. The great website and information shared are also very appreciable. baywatch jacket

    ReplyDelete