void TestBoostApi::test() { TNS__TestOperationResponse1 resp; QCOMPARE(resp.out(), boost::optional<QString>()); QString newVal("newval"); resp.setOut(newVal); QCOMPARE(*resp.out(), newVal); }
void TestPointerApi::test() { TNS__TestOperationResponse1 resp; QCOMPARE(resp.out(), (QString*)0); QString newVal("newval"); resp.setOut(newVal); QCOMPARE(*resp.out(), newVal); }
void TestRegularApi::test() { TNS__TestOperationResponse1 resp; QCOMPARE(resp.out(), QString()); QString newVal("newval"); resp.setOut(newVal); QCOMPARE(resp.out(), newVal); }