NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
NES::Testing::BaseUnitTest Class Reference

#include <BaseUnitTest.hpp>

Collaboration diagram for NES::Testing::BaseUnitTest:
[legend]

Public Member Functions

void SetUp () override
 
void TearDown () override
 
virtual void onFatalError (int signalNumber, std::string callstack) override
 onFatalError shall be called when a signal is caught More...
 
virtual void onFatalException (std::shared_ptr< std::exception > exception, std::string callstack) override
 onFatalException shall be called when an exception is caught More...
 
- Public Member Functions inherited from NES::detail::virtual_enable_shared_from_this< ErrorListener >
 ~virtual_enable_shared_from_this () NES_NOEXCEPT(true) override=default
 
std::shared_ptr< T1 > shared_from_this ()
 
std::weak_ptr< T1 > weak_from_this ()
 
- Public Member Functions inherited from NES::detail::virtual_enable_shared_from_this_base< true >
virtual ~virtual_enable_shared_from_this_base () NES_NOEXCEPT(isNoexceptDestructible)=default
 
- Public Member Functions inherited from NES::Testing::detail::TestWaitingHelper
 TestWaitingHelper ()
 
void startWaitingThread (std::string testName)
 
void completeTest ()
 
void failTest ()
 

Public Attributes

detail::TestSourceNameHelper srcName
 

Member Function Documentation

◆ onFatalError()

void NES::Testing::BaseUnitTest::onFatalError ( int  signalNumber,
std::string   
)
overridevirtual

onFatalError shall be called when a signal is caught

Parameters
signalNumberthe caught signal
stacktracethe stacktrace of the error

Implements NES::Exceptions::ErrorListener.

Reimplemented in NES::Testing::BaseIntegrationTest.

References NES::Testing::detail::TestWaitingHelper::failTest(), and NES_ERROR.

Here is the call graph for this function:

◆ onFatalException()

void NES::Testing::BaseUnitTest::onFatalException ( std::shared_ptr< std::exception >  ,
std::string   
)
overridevirtual

onFatalException shall be called when an exception is caught

Parameters
exceptionthe caught exception
stacktracethe stacktrace of the error

Implements NES::Exceptions::ErrorListener.

Reimplemented in NES::Testing::BaseIntegrationTest.

References NES::Testing::detail::TestWaitingHelper::failTest(), and NES_ERROR.

Here is the call graph for this function:

◆ SetUp()

void NES::Testing::BaseUnitTest::SetUp ( )
override

References NES::Exceptions::installGlobalErrorListener(), and NES::Testing::detail::TestWaitingHelper::startWaitingThread().

Referenced by NES::RequestProcessor::GetSourceCatalogRequestTest::SetUp(), NES::RequestProcessor::UpdateSourceCatalogRequestTest::SetUp(), NES::BufferManagerTest::SetUp(), NES::BufferStorageTest::SetUp(), NES::QueryAPITest::SetUp(), NES::Testing::BaseIntegrationTest::SetUp(), NES::Compiler::CompilationCacheTest::SetUp(), NES::Compiler::JITCompilerTest::SetUp(), NES::CoordinatorRPCServerTest::SetUp(), NES::MetricCollectorTest::SetUp(), NES::MetricStoreTest::SetUp(), NES::ResourcesReaderTest::SetUp(), NES::UserDefinedMonitoringTest::SetUp(), NES::ExpressionNodeTest::SetUp(), NES::ConvertLogicalToPhysicalSourceTest::SetUp(), GPUQueryExecutionTest::SetUp(), NES::LogicalExpressionTest::SetUp(), NES::Runtime::Execution::CountMinBuildExecutionTest::SetUp(), FilterQueryExecutionTest::SetUp(), NES::Runtime::Execution::HyperLogLogBuildExecutionTest::SetUp(), LimitQueryExecutionTest::SetUp(), MapQueryExecutionTest::SetUp(), MergeQueryExecutionTest::SetUp(), ProjectionQueryExecutionTest::SetUp(), NES::Runtime::Execution::StreamIntervalJoinQueryExecutionTest::SetUp(), NES::Runtime::Execution::StreamJoinQueryExecutionTest::SetUp(), UnionQueryExecutionTest::SetUp(), KeyedSlidingWindowQueryExecutionTest::SetUp(), KeyedTumblingWindowQueryExecutionTest::SetUp(), NonKeyedSlidingWindowQueryExecutionTest::SetUp(), NonKeyedTumblingWindowQueryExecutionTest::SetUp(), ThresholdWindowQueryExecutionTest::SetUp(), WindowAggregationFunctionTest::SetUp(), NES::SemanticQueryValidationTest::SetUp(), NES::SyntacticQueryValidationTest::SetUp(), NES::RequestProcessor::AddQueryRequestTest::SetUp(), NES::RequestProcessor::TopologyNodeRelocationRequestTest::SetUp(), NES::AsyncTaskExecutorTest::SetUp(), QueryCatalogTest::SetUp(), NES::Sensors::SensorBusTest::SetUp(), NES::LocationProviderCSVTest::SetUp(), NES::DefaultStatisticQueryGeneratorTest::SetUp(), NES::Statistic::DefaultStatisticStoreTest::SetUp(), NES::StatisticRegistryTest::SetUp(), NES::Runtime::JsonFormatTest::SetUp(), NES::Runtime::MemoryLayouts::ColumnarMemoryLayoutTest::SetUp(), NES::Runtime::MemoryLayouts::DynamicMemoryLayoutTestParameterized::SetUp(), NES::Runtime::MemoryLayouts::RowMemoryLayoutTest::SetUp(), NES::MMapCircularBufferTest::SetUp(), and NES::Runtime::MemoryLayouts::TestTupleBufferTest::SetUp().

Here is the call graph for this function:

◆ TearDown()

Member Data Documentation

◆ srcName

detail::TestSourceNameHelper NES::Testing::BaseUnitTest::srcName

The documentation for this class was generated from the following files: