- BUILD_RTI conditional compilation für RTI Connext DDS dependencies - Namespace fixes in core_dtc.h (Core:: → DDS::Core::) - CMakeLists.txt: BUILD_RTI option und conditional dependencies - Handler minelayer: namespace closing mit BUILD_RTI guard - Build erfolgreich mit BUILD_RTI=OFF validiert Signed-off-by: Torsten Wierschin <torsten.wierschin@life-maps.com>
44 lines
868 B
C++
44 lines
868 B
C++
#include "Lts/Common/LtsTimelineClassic/Item.h"
|
|
|
|
#include <QWidget>
|
|
#include <gtest/gtest.h>
|
|
|
|
namespace LtsTimelineClassic
|
|
{
|
|
|
|
class ItemTest : public ::testing::Test
|
|
{
|
|
protected:
|
|
void SetUp() override {}
|
|
|
|
void TearDown() override {}
|
|
};
|
|
|
|
TEST(ItemTest, HeaderCompilesAndLinks)
|
|
{
|
|
// Verify header compiles without errors
|
|
EXPECT_TRUE(true);
|
|
}
|
|
|
|
TEST(ItemTest, CanInstantiateItem)
|
|
{
|
|
// Basic instantiation test
|
|
Item item("TestItem", "test-id");
|
|
EXPECT_EQ(item.getName(), "TestItem");
|
|
EXPECT_EQ(item.getIdentifier(), "test-id");
|
|
}
|
|
|
|
TEST(ItemTest, ItemHasValidState)
|
|
{
|
|
Item parent("Parent");
|
|
Item child("Child");
|
|
|
|
// Test parent-child relationship
|
|
child.setParent(&parent);
|
|
EXPECT_EQ(child.getParent(), &parent);
|
|
|
|
// Test child count
|
|
EXPECT_EQ(parent.childCount(), 0);
|
|
}
|
|
|
|
} // namespace LtsTimelineClassic
|