Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Spring @ContextConfiguration along with cassandra-unit #4

Open
meenarc opened this issue Nov 27, 2013 · 2 comments
Open

Using Spring @ContextConfiguration along with cassandra-unit #4

meenarc opened this issue Nov 27, 2013 · 2 comments

Comments

@meenarc
Copy link

meenarc commented Nov 27, 2013

Hi,
I have started using cassandra unit (v1.2.0.1) along with cassandra-unit-spring(v1.2.0.1)

I noticed that whenever my unit test case is set up with cassandra-unit like below it never picks up and loads the beans defined as part of the spring context xml available via "@ContextConfiguration".
When I comment out the CassandraUnit annotations I find that it loads my spring beans defined as part the classpath "cassandra-context.xml"

@TestExecutionListeners({ CassandraUnitTestExecutionListener.class })
@CassandraDataSet(value = { "simple.cql" })
@EmbeddedCassandra(clusterName = "Unit Test Cluster", host = "127.0.0.1", port = 9142)
@ContextConfiguration(locations = {
"classpath*:cassandra-context.xml"
})

Regards
Meena

@jsevellec
Copy link
Owner

Hi,

is it related to that : jsevellec/cassandra-unit#67

Regards,

Jérémy

@meenarc
Copy link
Author

meenarc commented Nov 27, 2013

Will take a look at that thread and see if I can get it work and post an update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants