// Path: android-google-spreadsheets-lib/src/main/java/com/github/spreadsheets/android/api/model/ListEntry.java
// public class ListEntry extends GenericXml {
//     @Key("gsx")
//     public Map<String,String> cols;
// 
//     public Set<Entry<String, Object>> getValues() {
// //        Map<String, String> values = new HashMap<String,String>();
//         return entrySet();
//     }
// }
// 
// Path: android-google-spreadsheets-lib/src/tests/java/com/github/spreadsheets/android/api/testutils/AssetsFileReader.java
// public class AssetsFileReader {
//     public String assetFileContents(final String fileName) throws IOException {
//         StringBuilder text = new StringBuilder();
//         InputStream fileStream = this.getClass().getClassLoader()
//                 .getResourceAsStream("assets/" + fileName);
// 
//         BufferedReader reader = new BufferedReader(new InputStreamReader(fileStream));
//         String line;
//         while((line = reader.readLine()) != null) {
//             text.append(line);
//         }
//         return text.toString();
//     }
// }


import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
import android.util.Log;
import com.android.volley.NetworkResponse;
import com.android.volley.Response;
import com.github.spreadsheets.android.api.model.ListEntry;
import com.github.spreadsheets.android.api.testutils.AssetsFileReader;
import java.util.HashMap;
import java.util.Map;
import static org.fest.assertions.api.Assertions.assertThat;
package com.github.spreadsheets.android.api.requests;





@SmallTest
public class ListEntryRequestTest extends AndroidTestCase {
    private SpreadsheetRequest mRequest;
    private NetworkResponse mMockResponse;
    Map<String, String> headers = new HashMap<String, String>();

    @Override
    public void setUp() throws Exception {
        super.setUp();
        mRequest = new ListEntryRequest(null, null, null);
        String xml = new AssetsFileReader().assetFileContents("list_entry.xml");
        headers.put(com.google.common.net.HttpHeaders.CONTENT_TYPE,
                "application/atom+xml; charset=UTF-8");
        mMockResponse = new NetworkResponse(200, xml.getBytes(), headers, false);
    }

    public void testListEntryParsingSuccess() {
        Response feedResponse = mRequest.parseNetworkResponse(mMockResponse);
        assertTrue(feedResponse.isSuccess());
    }

// Path: android-google-spreadsheets-lib/src/main/java/com/github/spreadsheets/android/api/model/ListEntry.java
// public class ListEntry extends GenericXml {
//     @Key("gsx")
//     public Map<String,String> cols;
// 
//     public Set<Entry<String, Object>> getValues() {
// //        Map<String, String> values = new HashMap<String,String>();
//         return entrySet();
//     }
// }
// 
// Path: android-google-spreadsheets-lib/src/tests/java/com/github/spreadsheets/android/api/testutils/AssetsFileReader.java
// public class AssetsFileReader {
//     public String assetFileContents(final String fileName) throws IOException {
//         StringBuilder text = new StringBuilder();
//         InputStream fileStream = this.getClass().getClassLoader()
//                 .getResourceAsStream("assets/" + fileName);
// 
//         BufferedReader reader = new BufferedReader(new InputStreamReader(fileStream));
//         String line;
//         while((line = reader.readLine()) != null) {
//             text.append(line);
//         }
//         return text.toString();
//     }
// }


// Path: android-google-spreadsheets-lib/src/tests/java/com/github/spreadsheets/android/api/requests/ListEntryRequestTest.java
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
import android.util.Log;
import com.android.volley.NetworkResponse;
import com.android.volley.Response;
import com.github.spreadsheets.android.api.model.ListEntry;
import com.github.spreadsheets.android.api.testutils.AssetsFileReader;
import java.util.HashMap;
import java.util.Map;
import static org.fest.assertions.api.Assertions.assertThat;

package com.github.spreadsheets.android.api.requests;





@SmallTest
public class ListEntryRequestTest extends AndroidTestCase {
    private SpreadsheetRequest mRequest;
    private NetworkResponse mMockResponse;
    Map<String, String> headers = new HashMap<String, String>();

    @Override
    public void setUp() throws Exception {
        super.setUp();
        mRequest = new ListEntryRequest(null, null, null);
        String xml = new AssetsFileReader().assetFileContents("list_entry.xml");
        headers.put(com.google.common.net.HttpHeaders.CONTENT_TYPE,
                "application/atom+xml; charset=UTF-8");
        mMockResponse = new NetworkResponse(200, xml.getBytes(), headers, false);
    }

    public void testListEntryParsingSuccess() {
        Response feedResponse = mRequest.parseNetworkResponse(mMockResponse);
        assertTrue(feedResponse.isSuccess());
    }

    public void testListEntryParsingFailure() {