OmniSciDB  471d68cefb
 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 10 of file ReassignOwnedTest.java.

Constructor & Destructor Documentation

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

Definition at line 11 of file ReassignOwnedTest.java.

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

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

Member Function Documentation

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

Definition at line 17 of file ReassignOwnedTest.java.

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

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

+ Here is the call graph for this function:


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