OmniSciDB  72c90bc290
 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
 
void reassignAllOwned () 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 ReassignOwnedTest.java.

Constructor & Destructor Documentation

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

Definition at line 12 of file ReassignOwnedTest.java.

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.reassignAllOwned ( ) throws Exception
inline

Definition at line 28 of file ReassignOwnedTest.java.

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

28  {
29  final JsonObject expectedJsonObject = getJsonFromFile("reassign_all_owned.json");
30  final TPlanResult result =
31  processDdlCommand("REASSIGN ALL OWNED BY user_1, user_2 To user_3;");
32  final JsonObject actualJsonObject =
33  gson.fromJson(result.plan_result, JsonObject.class);
34  assertEquals(expectedJsonObject, actualJsonObject);
35  }
JsonObject getJsonFromFile(final String fileName)
Definition: DDLTest.java:51
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:35

+ Here is the call graph for this function:

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

Definition at line 18 of file ReassignOwnedTest.java.

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)
Definition: DDLTest.java:51
TPlanResult processDdlCommand(final String ddlCommand)
Definition: DDLTest.java:35

+ Here is the call graph for this function:


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