コード例 #1
0
 /**
  * Tests the method {@link SendFusionTablesActivity#getNextClass(SendRequest,boolean)}. Sets the
  * flags of "sendSpreadsheets" and "cancel" to false and true.
  */
 public void testGetNextClass_cancelNotSendSpreadsheets() {
   sendRequest.setSendSpreadsheets(false);
   Class<?> next = sendFusionTablesActivity.getNextClass(sendRequest, true);
   assertEquals(UploadResultActivity.class, next);
 }
コード例 #2
0
 /**
  * Tests the method {@link SendFusionTablesActivity#getNextClass(SendRequest, boolean)}. Sets the
  * flags of "sendSpreadsheets" and "cancel" to true and false.
  */
 public void testGetNextClass_notCancelSendSpreadsheets() {
   sendRequest.setSendSpreadsheets(true);
   Class<?> next = sendFusionTablesActivity.getNextClass(sendRequest, false);
   assertEquals(SendSpreadsheetsActivity.class, next);
 }