// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package javatests;

import java.util.*;
import org.junit.Assert.*;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import static org.junit.Assert.assertTrue;
import java.security.GeneralSecurityException;
import java.io.IOException;
import com.google.api.services.sheets.v4.Sheets;
import com.google.api.services.sheets.v4.model.UpdateValuesResponse;
import com.google.api.services.sheets.v4.model.ValueRange;

import data.SheetsConverter;
import data.SheetsServiceUtil;

/** Test the functionality of the SheetsConverter class. */
@RunWith(JUnit4.class)
public final class SheetsConverterTest {
 private static final String SPREADSHEET_ID = "1QnVlh-pZHycxzgQuk0MN2nWOY6AGu9j4wGZaGzi_W9A";
  
  @Test
  public void testUpdateSheetMethod() throws GeneralSecurityException, IOException{
    // switch branches to JSON converter.
    // Sheets sheetsService = sheetsService = SheetsServiceUtil.getSheetsService();

    // ValueRange body = new ValueRange().setValues(Arrays.asList(
    //   Arrays.asList("Expenses January"), 
    //   Arrays.asList("books", "30"), 
    //   Arrays.asList("pens", "10"),
    //   Arrays.asList("Expenses February"), 
    //   Arrays.asList("clothes", "20"),
    //   Arrays.asList("shoes", "5")));
    // UpdateValuesResponse result = sheetsService.spreadsheets().values()
    //   .update(SPREADSHEET_ID, "A1", body)
    //   .setValueInputOption("RAW")
    //   .execute();
  }
}
@@ -1414,626 +1414,67 @@
 %0A   
- 
 // 
-switch branches to JSON converter.%0A    // Sheets sheetsService = sheetsService = SheetsServiceUtil.getSheetsService();%0A%0A    // ValueRange body = new ValueRange().setValues(Arrays.asList(%0A    //   Arrays.asList(%22Expenses January%22), %0A    //   Arrays.asList(%22books%22, %2230%22), %0A    //   Arrays.asList(%22pens%22, %2210%22),%0A    //   Arrays.asList(%22Expenses February%22), %0A    //   Arrays.asList(%22clothes%22, %2220%22),%0A    //   Arrays.asList(%22shoes%22, %225%22)));%0A    // UpdateValuesResponse result = sheetsService.spreadsheets().values()%0A    //   .update(SPREADSHEET_ID, %22A1%22, body)%0A    //   .setValueInputOption(%22RAW%22)%0A    //   .execute();
+Cannot currently test this method until OAuth is set up.
 %0A  %7D

remove unnecessary comments from SheetsConverterTest