#include "GSSCreateSecContextTest.h"
-#include "GSSCreateSecContextCommand.h"
+#include "GSSInitSecContext.h"
#include "command_mocks/InitSecContextMock.h"
#include <iostream>
#include <string.h>
void
GSSCreateSecContextTest::testConstructor()
{
- GSSCreateSecContextCommand cmd = GSSCreateSecContextCommand();
+ GSSInitSecContext cmd = GSSInitSecContext();
void *cmdFn;
void *GSSFn;
const char *in = input.c_str();
JSONObject json = JSONObject::load(in, 0, &jsonErr);
- GSSCreateSecContextCommand cmd = GSSCreateSecContextCommand(
+ GSSInitSecContext cmd = GSSInitSecContext(
&json,
(void *)&mock_init_sec
);
{
gss_ctx_id_t expectedResult, expectedArgument;
- GSSCreateSecContextCommand cmd ((void *)&mock_init_sec);
+ GSSInitSecContext cmd ((void *)&mock_init_sec);
/* Set expectations on what the GSS function will be called with */
cmd.time_req = rand() % 1024;
void GSSCreateSecContextTest::testJSONMarshal()
{
/* Variables */
- GSSCreateSecContextCommand cmd ((void *)&mock_init_sec);
+ GSSInitSecContext cmd ((void *)&mock_init_sec);
JSONObject *result;
GSSContextCache *cache = GSSContextCache::instance();
GSSContext context;