Integration testing is obviously a vital task in the delivery process. There are many types of integration testing. Unit integration testing involves integration testing a topology, typically as part of the continuous integration build cycle, and should be seen as complementary to the necessary functional style of integration testing of a deployed cluster. The integration test presented here is essentially the same as that of the integration test presented in Chapter 1, Setting Up Your Development Environment; however, it is sufficiently complex to warrant an explanation here.
Start by creating the unit test.
Using Eclipse, create a JUnit 4 test case called
IntegrationTestTopology
under the unit testing source folder of your project in thestorm.cookbook.log
package. Add asetup
method that should be invoked before the class:@BeforeClass public static void setup() throws Exception { setupCassandra(); setupElasticSearch...