OmniSciDB  c1a53651b2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.parser.extension.ddl.ReassignOwnedTest Class Reference
+ Inheritance diagram for com.mapd.parser.extension.ddl.ReassignOwnedTest:
+ Collaboration diagram for com.mapd.parser.extension.ddl.ReassignOwnedTest:

Public Member Functions

 ReassignOwnedTest ()
void reassignOwned () throws Exception
- Public Member Functions inherited from com.mapd.parser.extension.ddl.DDLTest
void setup () throws Exception

Additional Inherited Members

- Protected Attributes inherited from com.mapd.parser.extension.ddl.DDLTest
String resourceDirPath
String jsonTestDir
- Static Protected Attributes inherited from com.mapd.parser.extension.ddl.DDLTest
static final Gson gson = new Gson()
- Package Functions inherited from com.mapd.parser.extension.ddl.DDLTest
TPlanResult processDdlCommand (final String ddlCommand) throws Exception
JsonObject getJsonFromFile (final String fileName) throws Exception

Detailed Description

Definition at line 11 of file

Constructor & Destructor Documentation

com.mapd.parser.extension.ddl.ReassignOwnedTest.ReassignOwnedTest ( )

Definition at line 12 of file

References com.mapd.parser.extension.ddl.DDLTest.jsonTestDir, and com.mapd.parser.extension.ddl.DDLTest.resourceDirPath.

12  {
13  resourceDirPath = ReassignOwnedTest.class.getClassLoader().getResource("").getPath();
14  jsonTestDir = "reassignowned";
15  }

Member Function Documentation

void com.mapd.parser.extension.ddl.ReassignOwnedTest.reassignOwned ( ) throws Exception

Definition at line 18 of file

References com.mapd.parser.extension.ddl.DDLTest.getJsonFromFile(), com.mapd.parser.extension.ddl.DDLTest.processDdlCommand(), and run_benchmark_import.result.

18  {
19  final JsonObject expectedJsonObject = getJsonFromFile("reassign_owned.json");
20  final TPlanResult result =
21  processDdlCommand("REASSIGN OWNED BY user_1, user_2 To user_3;");
22  final JsonObject actualJsonObject =
23  gson.fromJson(result.plan_result, JsonObject.class);
24  assertEquals(expectedJsonObject, actualJsonObject);
25  }
JsonObject getJsonFromFile(final String fileName)
TPlanResult processDdlCommand(final String ddlCommand)

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: