use of org.talend.components.google.drive.list.GoogleDriveListProperties in project components by Talend.
the class GoogleDriveListReaderTest method setUp.
@Before
public void setUp() throws Exception {
super.setUp();
// stubbing
mockList = mock(List.class, RETURNS_DEEP_STUBS);
when(drive.files().list()).thenReturn(mockList);
when(drive.files().list().setQ(eq(qA)).execute()).thenReturn(createFolderFileList("A", false));
when(drive.files().list().setQ(eq(qGSA)).execute()).thenReturn(createFolderFileList("A", false));
when(drive.files().list().setQ(eq(qB)).execute()).thenReturn(createFolderFileList("B", false));
when(drive.files().list().setQ(eq(qC)).execute()).thenReturn(createFolderFileList("C", false));
//
properties = new GoogleDriveListProperties("test");
properties.setupProperties();
properties = (GoogleDriveListProperties) setupConnectionWithInstalledApplicationWithIdAndSecret(properties);
properties.folder.setValue(FOLDER_ROOT);
}
Aggregations