051375ddf90f2966cfb0df384c7bcfd265dbd9ad
[gssweb.git] / json_gssapi / test / GSSImportNameTest.h
1 /*
2  * Copyright (c) 2014 Painless Security LLC
3  * 
4  * For license details, see the LICENSE file in the root of this project.
5  * 
6  * GSSImportNameTest.h - Test the GSSImportName object.
7  * Tests include:
8  *   testConstructor - 
9  *       Testing basic object creation
10  *   testConstructorWithJSONObject - 
11  *       Test object creation with a set of arguments
12  *   testEmptyCall - 
13  *       Basic test of the system, with an empty call to
14  *       a mocked out gss_import_name function, to test
15  *       whether the object passes and records arguments
16  *       correctly
17  *   testJSONMarshal - 
18  *       test the JSON serialization of the object
19  */
20
21 #ifndef GSSIMPORTNAMETEST_H
22 #define GSSIMPORTNAMETEST_H
23
24 // #include <cppunit/TestFixture.h>
25 #include <cppunit/extensions/HelperMacros.h>
26
27 #include <gssapi.h>
28 #include "GSSInitSecContext.h"
29
30 #include <stdlib.h>
31
32 class GSSImportNameTest :  public CppUnit::TestFixture
33 {
34   CPPUNIT_TEST_SUITE( GSSImportNameTest );
35   CPPUNIT_TEST( testConstructor );
36   CPPUNIT_TEST( testConstructorWithJSONObject );
37   CPPUNIT_TEST( testEmptyCall );
38   CPPUNIT_TEST( testJSONMarshal );
39   CPPUNIT_TEST_SUITE_END();
40   
41   
42   
43 public:
44   void setUp();
45   void tearDown();
46
47   
48   void testConstructor();
49   void testConstructorWithJSONObject();
50   void testEmptyCall();
51   void testJSONMarshal();
52 };
53
54 #endif // GSSIMPORTNAMETEST_H