2 * Copyright (c) 2014 <copyright holder> <email>
4 * For license details, see the LICENSE file in the root of this project.
8 #include "GSSOIDSetTest.h"
9 #include <datamodel/GSSOIDSet.h>
11 CPPUNIT_TEST_SUITE_REGISTRATION( GSSOIDSetTest );
13 void GSSOIDSetTest::setUp()
18 void GSSOIDSetTest::tearDown()
23 void GSSOIDSetTest::testConstructor()
29 CPPUNIT_ASSERT_NO_THROW_MESSAGE(
30 "GSSOIDSet constructor without exceptions;",
39 void GSSOIDSetTest::testAddOID()
43 GSSOID newOID((char *)"{1 3 6 1 5 5 2}");
48 CPPUNIT_ASSERT_NO_THROW_MESSAGE(
49 "Adding an OID to the set without an exception",
50 subject.addOID(newOID)
53 CPPUNIT_ASSERT_EQUAL_MESSAGE(
54 "Counter is not incremented after appending an OID to a set",
56 (int)(subject.toGss()->count)