Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/tests/test_item.cpp
T
torsten 950d669538 Qt6 Migration: BUILD_RTI guards und CMake fixes
- 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>
2026-08-21 18:37:18 +02:00

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