6 #include <dali/public-api/dali-core.h>
8 #include <dali-test-suite-utils.h>
12 static void Startup();
13 static void Cleanup();
16 void (*tet_startup)() = Startup;
17 void (*tet_cleanup)() = Cleanup;
20 static void Utc@MODULE@@CLASS@Method01();
21 static void Utc@MODULE@@CLASS@Method02();
24 POSITIVE_TC_IDX = 0x01,
28 // Add test functionality for all APIs in the class (Positive and Negative)
30 struct tet_testlist tet_testlist[] = {
31 { Utc@MODULE@@CLASS@Method01, POSITIVE_TC_IDX },
32 { Utc@MODULE@@CLASS@Method02, NEGATIVE_TC_IDX },
37 static Dali::TestApplication* gApplication = NULL;
39 // Called only once before first test is run.
42 gApplication = new Dali::TestApplication();
45 // Called only once after last test is run
52 // Positive test case for a method
53 static void Utc@MODULE@@CLASS@Method01()
55 gApplication->Initialize(); // Reset all test adapter return codes
57 tet_infoline("Journaled printf Output");
65 // Negative test case for a method
66 static void Utc@MODULE@@CLASS@Method02()
68 gApplication->Initialize(); // Reset all test adapter return codes
72 /* My test code and results */
73 DALI_TEST_EQUALS(myVar, expectedValue, TEST_LOCATION);
75 catch (Dali::DaliException& e)
77 // Tests that a negative test of an assertion succeeds
78 tet_printf("Assertion %s failed at %s\n", e.mCondition.c_str(), e.mLocation.c_str());
79 DALI_TEST_ASSERT(e, "assert conditional", TEST_LOCATION);