MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / Fixture

Method Fixture

libminifi/test/unit/ProcessSessionTests.cpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43};
44
45Fixture::Fixture() {
46 test_plan_ = test_controller_.createPlan();
47 dummy_processor_ = test_plan_->addProcessor("DummyProcessor", "dummyProcessor");
48 test_plan_->runNextProcessor(); // set the dummy processor as current
49 context_ = test_plan_->getCurrentContext();
50 process_session_ = utils::make_unique<core::ProcessSession>(context_);
51}
52
53const core::Relationship Success{"success", "everything is fine"};
54const core::Relationship Failure{"failure", "something has gone awry"};

Callers

nothing calls this directly

Calls 4

getCurrentContextMethod · 0.80
createPlanMethod · 0.45
addProcessorMethod · 0.45
runNextProcessorMethod · 0.45

Tested by

no test coverage detected