Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Breaking up Integration tests #66

Merged
merged 8 commits into from
Nov 23, 2017
Merged

Conversation

Crim
Copy link
Contributor

@Crim Crim commented Nov 21, 2017

Start to breakup the integration test DynamicSpoutTest into:

  • DynamicSpoutTest - Covering DynamicSpout using a stand-in MockConsumer (and no sidelining logic)

  • SidelineSpoutTest - Covering just the Sidelining functionality, makes use of KafkaConsumer to help validate various scenarios.

  • KafkaConsumerTest - Integration test covering the KafkaConsumer within DynamicSpout, covers no sidelining logic.

This moves us towards being able to do #19

*/
@Override
public void open(Map topologyConfig, TopologyContext topologyContext, SpoutOutputCollector spoutOutputCollector) {
if (isOpen) {
logger.warn("This spout has already been opened, cowardly refusing to open it again!");
return;
throw new IllegalStateException("This spout has already been opened.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect this is ok, but this is a noteworthy change.

@Crim
Copy link
Contributor Author

Crim commented Nov 22, 2017

@stanlemon This should be ready for review. I think you already pointed out the only real logic change. The rest is just moving tests around.

Looks like no discernible increase in test run time either => 04:28 min

@Crim Crim changed the title WIP - Start breaking up Integration tests Breaking up Integration tests Nov 23, 2017
@stanlemon stanlemon force-pushed the sp/BreakUpIntegrationTests branch from f1f02f0 to 13c2072 Compare November 23, 2017 03:07
@stanlemon stanlemon merged commit c7a5d2a into master Nov 23, 2017
@stanlemon stanlemon deleted the sp/BreakUpIntegrationTests branch November 23, 2017 03:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants