On Thu, Nov 18, 2010 at 12:33 PM, Rickard Öberg <[email protected]>wrote:

On 2010-11-18 12.26, Philippe Van Dyck wrote:

Very tricky... I searched for a maven plugin but nope, nothing exists...
To solve the situation I plan to use a more robust java cassandra client
called hector
(
http://prettyprint.me/2010/03/03/load-balancing-and-improved-failover-in-hector/
).

Hector provides a way to start a Cassandra instance for testing
purposes...

Do you want me to disable the tests until I re-implement the ES with
hector ?


That would probably be best, for now.

/Rickard

JUnit has Assume method, which is kinda suitable for this (look at indexing-sql tests). However, since things start to go wrong only AFTER Qi4j app start-up, but during setup of parent test class (ie, before entering our own setup methods), the code which will be invoking Assume will get hacky & unclean. But, working.

If someone knows a clean and nice way to say "Ignore this test class if this service throws this exception during setup", I would be happy to hear it. I hope using maven profiles is not the only way to do this cleanly.


_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to