public class org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter extends org.apache.drill.test.ClusterTest
{
private static final java.lang.String AUTH_URI;
private static final java.lang.String TOKEN_URI;
private static final java.util.List REDIRECT_URI;
private static org.apache.drill.exec.store.StoragePluginRegistry pluginRegistry;
private static java.lang.String accessToken;
private static java.lang.String refreshToken;
private static java.lang.String sheetID;
public void <init>()
{
org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter v;
v := @this: org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter;
specialinvoke v.<org.apache.drill.test.ClusterTest: void <init>()>();
return;
}
public static void init() throws java.lang.Exception
{
org.apache.drill.test.BaseDirTestWatcher v, v;
org.apache.drill.shaded.guava.com.google.common.io.CharSource v;
java.nio.file.Path v;
org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig v;
java.util.List v;
org.apache.drill.test.ClusterFixtureBuilder v;
org.apache.drill.exec.store.StoragePluginRegistry v, v;
org.apache.drill.exec.server.Drillbit v;
java.lang.String[] v;
org.apache.drill.exec.server.DrillbitContext v;
java.nio.charset.Charset v;
java.lang.Boolean v, v, v;
java.lang.String v;
org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder v, v, v, v, v, v, v, v;
org.apache.drill.test.ClusterFixture v;
com.fasterxml.jackson.databind.ObjectMapper v;
java.io.File v;
java.lang.Object v, v, v, v, v, v;
v = <org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: org.apache.drill.test.BaseDirTestWatcher dirTestWatcher>;
v = staticinvoke <org.apache.drill.test.ClusterFixture: org.apache.drill.test.ClusterFixtureBuilder builder(org.apache.drill.test.BaseDirTestWatcher)>(v);
staticinvoke <org.apache.drill.test.ClusterTest: void startCluster(org.apache.drill.test.ClusterFixtureBuilder)>(v);
v = <org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: org.apache.drill.test.BaseDirTestWatcher dirTestWatcher>;
v = newarray (java.lang.String)[0];
v = staticinvoke <java.nio.file.Paths: java.nio.file.Path get(java.lang.String,java.lang.String[])>("", v);
virtualinvoke v.<org.apache.drill.test.BaseDirTestWatcher: java.io.File copyResourceToRoot(java.nio.file.Path)>(v);
v = staticinvoke <org.apache.drill.common.util.DrillFileUtils: java.io.File getResourceAsFile(java.lang.String)>("/tokens/oauth_tokens.json");
v = <org.apache.drill.shaded.guava.com.google.common.base.Charsets: java.nio.charset.Charset UTF_8>;
v = staticinvoke <org.apache.drill.shaded.guava.com.google.common.io.Files: org.apache.drill.shaded.guava.com.google.common.io.CharSource asCharSource(java.io.File,java.nio.charset.Charset)>(v, v);
v = virtualinvoke v.<org.apache.drill.shaded.guava.com.google.common.io.CharSource: java.lang.String read()>();
v = new com.fasterxml.jackson.databind.ObjectMapper;
specialinvoke v.<com.fasterxml.jackson.databind.ObjectMapper: void <init>()>();
v = virtualinvoke v.<com.fasterxml.jackson.databind.ObjectMapper: java.lang.Object readValue(java.lang.String,java.lang.Class)>(v, class "Ljava/util/Map;");
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>("client_id");
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>("client_secret");
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>("access_token");
<org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: java.lang.String accessToken> = v;
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>("refresh_token");
<org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: java.lang.String refreshToken> = v;
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>("sheet_id");
<org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: java.lang.String sheetID> = v;
v = <org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: org.apache.drill.test.ClusterFixture cluster>;
v = virtualinvoke v.<org.apache.drill.test.ClusterFixture: org.apache.drill.exec.server.Drillbit drillbit()>();
v = virtualinvoke v.<org.apache.drill.exec.server.Drillbit: org.apache.drill.exec.server.DrillbitContext getContext()>();
v = virtualinvoke v.<org.apache.drill.exec.server.DrillbitContext: org.apache.drill.exec.store.StoragePluginRegistry getStorage()>();
<org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: org.apache.drill.exec.store.StoragePluginRegistry pluginRegistry> = v;
v = staticinvoke <org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig: org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder builder()>();
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder: org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder clientID(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder: org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder clientSecret(java.lang.String)>(v);
v = <org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: java.util.List REDIRECT_URI>;
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder: org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder redirectUris(java.util.List)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder: org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder authUri(java.lang.String)>("https://accounts.google.com/o/oauth2/auth");
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder: org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder tokenUri(java.lang.String)>("https://oauth.googleapis.com/token");
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(boolean)>(1);
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder: org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder extractHeaders(java.lang.Boolean)>(v);
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(boolean)>(0);
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder: org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder allTextMode(java.lang.Boolean)>(v);
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig$GoogleSheetsStoragePluginConfigBuilder: org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig build()>();
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(boolean)>(1);
virtualinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePluginConfig: void setEnabled(java.lang.Boolean)>(v);
v = <org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: org.apache.drill.exec.store.StoragePluginRegistry pluginRegistry>;
interfaceinvoke v.<org.apache.drill.exec.store.StoragePluginRegistry: void validatedPut(java.lang.String,org.apache.drill.common.logical.StoragePluginConfig)>("googlesheets", v);
return;
}
public void testBasicCTAS() throws java.lang.Exception
{
java.lang.Throwable v;
org.apache.drill.test.QueryBuilder v, v;
java.lang.String v;
org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter v;
boolean v;
org.apache.drill.test.QueryBuilder$QuerySummary v;
v := @this: org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter;
label:
specialinvoke v.<org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: void initializeTokens()>();
label:
goto label;
label:
v := @caughtexception;
v = virtualinvoke v.<org.apache.drill.exec.store.StoragePluginRegistry$PluginException: java.lang.String getMessage()>();
staticinvoke <org.junit.Assert: void fail(java.lang.String)>(v);
label:
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>("CREATE TABLE googlesheets.`test_sheet`.`test_table` (ID, NAME) AS SELECT * FROM (VALUES(1,2), (3,4))");
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder$QuerySummary run()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder$QuerySummary: boolean succeeded()>();
staticinvoke <org.junit.Assert: void assertTrue(boolean)>(v);
return;
catch org.apache.drill.exec.store.StoragePluginRegistry$PluginException from label to label with label;
}
public void testCTASLifecycle() throws java.lang.Exception
{
org.apache.drill.exec.record.metadata.SchemaBuilder v, v, v, v;
java.lang.Integer v, v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.test.rowSet.RowSetComparison v;
java.lang.Exception v;
org.apache.drill.test.QueryBuilder$QuerySummary v, v, v, v;
java.lang.Throwable v;
java.lang.Object[] v, v, v, v, v, v, v, v, v, v;
long v;
org.apache.drill.exec.physical.rowSet.DirectRowSet v;
java.lang.String v, v, v, v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.test.ClientFixture v;
org.apache.drill.common.types.TypeProtos$MinorType v, v, v;
boolean v, v, v, v, v;
org.apache.drill.exec.physical.rowSet.RowSetBuilder v, v, v, v, v;
org.apache.drill.exec.record.metadata.TupleMetadata v;
org.apache.drill.test.QueryBuilder v, v, v, v, v, v, v, v, v, v, v, v;
org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet v;
org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter v;
v := @this: org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter;
label:
specialinvoke v.<org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: void initializeTokens()>();
label:
goto label;
label:
v := @caughtexception;
v = virtualinvoke v.<org.apache.drill.exec.store.StoragePluginRegistry$PluginException: java.lang.String getMessage()>();
staticinvoke <org.junit.Assert: void fail(java.lang.String)>(v);
label:
v = newarray (java.lang.Object)[1];
v = <org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: java.lang.String sheetID>;
v[0] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("CREATE TABLE googlesheets.`%s`.`Sheet3` AS SELECT * FROM cp.`data/insert_data.csvh`", v);
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder$QuerySummary run()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder$QuerySummary: boolean succeeded()>();
staticinvoke <org.junit.Assert: void assertTrue(boolean)>(v);
v = newarray (java.lang.Object)[1];
v = <org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: java.lang.String sheetID>;
v[0] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("SELECT * FROM googlesheets.`%s`.`Sheet3`", v);
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder$QuerySummary run()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder$QuerySummary: boolean succeeded()>();
staticinvoke <org.junit.Assert: void assertTrue(boolean)>(v);
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder$QuerySummary: long recordCount()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(2L, v);
v = newarray (java.lang.Object)[1];
v = <org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: java.lang.String sheetID>;
v[0] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("INSERT INTO googlesheets.`%s`.`Sheet3` SELECT * FROM cp.`data/insert_data.csvh`", v);
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder$QuerySummary run()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder$QuerySummary: boolean succeeded()>();
staticinvoke <org.junit.Assert: void assertTrue(boolean)>(v);
v = newarray (java.lang.Object)[1];
v = <org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: java.lang.String sheetID>;
v[0] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("SELECT * FROM googlesheets.`%s`.`Sheet3`", v);
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.exec.physical.rowSet.DirectRowSet rowSet()>();
v = new org.apache.drill.exec.record.metadata.SchemaBuilder;
specialinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: void <init>()>();
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType FLOAT8>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("col1", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType FLOAT8>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("col2", v);
v = <org.apache.drill.common.types.TypeProtos$MinorType: org.apache.drill.common.types.TypeProtos$MinorType FLOAT8>;
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.SchemaBuilder addNullable(java.lang.String,org.apache.drill.common.types.TypeProtos$MinorType)>("col3", v);
v = virtualinvoke v.<org.apache.drill.exec.record.metadata.SchemaBuilder: org.apache.drill.exec.record.metadata.TupleMetadata buildSchema()>();
v = <org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: org.apache.drill.test.ClientFixture client>;
v = virtualinvoke v.<org.apache.drill.test.ClientFixture: org.apache.drill.exec.physical.rowSet.RowSetBuilder rowSetBuilder(org.apache.drill.exec.record.metadata.TupleMetadata)>(v);
v = newarray (java.lang.Object)[3];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v[1] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(3);
v[2] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[3];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(4);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(5);
v[1] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(6);
v[2] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[3];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(7);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(8);
v[1] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(9);
v[2] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = newarray (java.lang.Object)[3];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(10);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(11);
v[1] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(12);
v[2] = v;
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSetBuilder addRow(java.lang.Object[])>(v);
v = virtualinvoke v.<org.apache.drill.exec.physical.rowSet.RowSetBuilder: org.apache.drill.exec.physical.rowSet.RowSet$SingleRowSet build()>();
v = new org.apache.drill.test.rowSet.RowSetComparison;
specialinvoke v.<org.apache.drill.test.rowSet.RowSetComparison: void <init>(org.apache.drill.exec.physical.rowSet.RowSet)>(v);
virtualinvoke v.<org.apache.drill.test.rowSet.RowSetComparison: void verifyAndClearAll(org.apache.drill.exec.physical.rowSet.RowSet)>(v);
v = newarray (java.lang.Object)[1];
v = <org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: java.lang.String sheetID>;
v[0] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("DROP TABLE googlesheets.`%s`.`Sheet3`", v);
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder$QuerySummary run()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder$QuerySummary: boolean succeeded()>();
staticinvoke <org.junit.Assert: void assertTrue(boolean)>(v);
v = newarray (java.lang.Object)[1];
v = <org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: java.lang.String sheetID>;
v[0] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("SELECT * FROM googlesheets.`%s`.`Sheet3`", v);
label:
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: org.apache.drill.test.QueryBuilder queryBuilder()>();
v = virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder sql(java.lang.String)>(v);
virtualinvoke v.<org.apache.drill.test.QueryBuilder: org.apache.drill.test.QueryBuilder$QuerySummary run()>();
staticinvoke <org.junit.Assert: void fail()>();
label:
goto label;
label:
v := @caughtexception;
v = virtualinvoke v.<java.lang.Exception: java.lang.String getMessage()>();
v = virtualinvoke v.<java.lang.String: boolean contains(java.lang.CharSequence)>("\'Sheet3\' not found");
staticinvoke <org.junit.Assert: void assertTrue(boolean)>(v);
label:
return;
catch org.apache.drill.exec.store.StoragePluginRegistry$PluginException from label to label with label;
catch java.lang.Exception from label to label with label;
}
private void initializeTokens() throws org.apache.drill.exec.store.StoragePluginRegistry$PluginException
{
org.apache.drill.exec.store.StoragePluginRegistry v;
org.apache.drill.exec.oauth.PersistentTokenTable v;
org.apache.drill.exec.store.StoragePlugin v;
java.lang.String v, v;
org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter v;
v := @this: org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter;
v = <org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: org.apache.drill.exec.store.StoragePluginRegistry pluginRegistry>;
v = interfaceinvoke v.<org.apache.drill.exec.store.StoragePluginRegistry: org.apache.drill.exec.store.StoragePlugin getPlugin(java.lang.String)>("googlesheets");
virtualinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePlugin: void initializeTokenTableForTesting()>();
v = virtualinvoke v.<org.apache.drill.exec.store.googlesheets.GoogleSheetsStoragePlugin: org.apache.drill.exec.oauth.PersistentTokenTable getTokenTable()>();
v = <org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: java.lang.String accessToken>;
virtualinvoke v.<org.apache.drill.exec.oauth.PersistentTokenTable: void setAccessToken(java.lang.String)>(v);
v = <org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: java.lang.String refreshToken>;
virtualinvoke v.<org.apache.drill.exec.oauth.PersistentTokenTable: void setRefreshToken(java.lang.String)>(v);
virtualinvoke v.<org.apache.drill.exec.oauth.PersistentTokenTable: void setExpiresIn(java.lang.String)>("50000");
return;
}
static void <clinit>()
{
java.lang.String[] v;
java.util.List v;
java.util.ArrayList v;
v = new java.util.ArrayList;
v = newarray (java.lang.String)[2];
v[0] = "urn:ietf:wg:oauth:2.0:oob";
v[1] = "http://localhost";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
<org.apache.drill.exec.store.googlesheets.TestGoogleSheetsWriter: java.util.List REDIRECT_URI> = v;
return;
}
}