2 * Copyright (c) 2014 <copyright holder> <email>
4 * For license details, see the LICENSE file in the root of this project.
8 #include "GSSBufferTest.h"
9 #include <datamodel/GSSBuffer.h>
12 CPPUNIT_TEST_SUITE_REGISTRATION( GSSBufferTest );
15 GSSBufferTest::setUp()
21 GSSBufferTest::tearDown()
26 void GSSBufferTest::testStringConstructor()
29 std::string str("test string");
31 gss_buffer_t gssBuf = buf.toGss();
37 CPPUNIT_ASSERT_MESSAGE(
38 "The string was not copied in :(",
39 (std::strncmp( (char *)str.c_str(), (char *)gssBuf->value, gssBuf->length ) == 0)
42 CPPUNIT_ASSERT_EQUAL_MESSAGE(
43 "The string was not output correctly",