f3b83041df3f9b508bd49f6aa389923f66d5c0a9
[gssweb.git] / json_gssapi / test / GSSCreateSecContextTest.h
1 /*
2  * Copyright (c) 2014 <copyright holder> <email>
3  * 
4  * For license details, see the LICENSE file in the root of this project.
5  * 
6  */
7
8 #ifndef GSSCREATESECCONTEXTTEST_H
9 #define GSSCREATESECCONTEXTTEST_H
10
11 // #include <cppunit/TestFixture.h>
12 #include <cppunit/extensions/HelperMacros.h>
13
14 #include <stdlib.h>
15
16 #include <gssapi.h>
17
18 #include "commands/GSSInitSecContext.h"
19
20 class GSSCreateSecContextTest :  public CppUnit::TestFixture
21 {
22   CPPUNIT_TEST_SUITE( GSSCreateSecContextTest );
23   CPPUNIT_TEST( testConstructor );
24   CPPUNIT_TEST( testConstructorWithJSONObject );
25   CPPUNIT_TEST( testEmptyCall );
26   CPPUNIT_TEST( testJSONMarshal );
27   CPPUNIT_TEST_SUITE_END();
28   
29   
30   
31 public:
32   void setUp();
33   void tearDown();
34
35   
36   void testConstructor();
37   void testConstructorWithJSONObject();
38   void testEmptyCall();
39   void testJSONMarshal();
40   void getCache();
41   
42 private:
43   GSSInitSecContext command;
44 };
45
46 #endif // GSSCREATESECCONTEXTTEST_H