I am trying to integrate the ElasticearchIntegrationTest class in my
integration tests. However, for one particular test, we would like to use
the Spring framework, more specifically the SpringJUnit4Runner (in order to
inject the spring context).
However, it seems that they do not play with each other nicely due to the
dependency by ElasticearchIntegrationTest on RandomizedRunner to set up its
own context.
Does anyone have any suggestions on how we can do integration testing using
Spring?
you are correct, the two runners would clash. Maybe you could use
the TestCluster class directly to start and stop instances in that
particular test? However you would lose all the nice randomized features...
but maybe thats ok in that case?
I am trying to integrate the ElasticearchIntegrationTest class in my
integration tests. However, for one particular test, we would like to use
the Spring framework, more specifically the SpringJUnit4Runner (in order to
inject the spring context).
However, it seems that they do not play with each other nicely due to the
dependency by ElasticearchIntegrationTest on RandomizedRunner to set up its
own context.
Does anyone have any suggestions on how we can do integration testing
using Spring?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.