// Path: src/test/java/com/googlecode/batchfb/test/util/TestBase.java
// public class TestBase {
// 	
// 	/** This should be set on the command line with a -DaccessToken=BLAH argument */
// 	protected static final String ACCESS_TOKEN = System.getProperty("accessToken", "");
// 	
// 	/** */
// 	protected Batcher authBatcher;
// 
// 	@BeforeMethod
// 	public void setUp() throws Exception {
// 		this.authBatcher = new FacebookBatcher(ACCESS_TOKEN);
// 	}
// 
// 	@AfterMethod
// 	public void tearDown() throws Exception {
// 		this.authBatcher = null;
// 	}
// }
// 
// Path: src/main/java/com/googlecode/batchfb/Later.java
// public interface Later<T> {
// 	/**
// 	 * <p>Get the value, triggering execution of the batch if necessary.  Once the batch
// 	 * has been executed, this method can be called repeatedly without incurring further
// 	 * calls to Facebook or triggering the execution of any subsequently created batches.
// 	 * It is as efficient as a simple value getter.</p>
// 	 * 
// 	 * <p>If the Facebook call produced an error, repeated calls to this method will produce
// 	 * the same exception.  BatchFB will *not* retry a Facebook call; you must create a
// 	 * new Later<?> object from the FacebookBatcher class.</p>
// 	 * 
// 	 * @throws FacebookException if anything went wrong with the Facebook interaction
// 	 */
// 	T get() throws FacebookException;
// }


import com.fasterxml.jackson.databind.node.ArrayNode;
import com.googlecode.batchfb.Later;
import java.net.URL;
import java.net.URLEncoder;
import com.googlecode.batchfb.test.util.TestBase;
import org.testng.annotations.Test;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

/*
 * Copyright (c) 2010 Jeff Schnitzer.
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package com.googlecode.batchfb.test;




/**
 * Testing a report that sometimes query results return the wrong size.
 * 
 * @author Jeff Schnitzer
 */
public class QueryResultSizeTest extends TestBase {

	/**
	 */
	@Test
	public void basicQuery() throws Exception {

// Path: src/test/java/com/googlecode/batchfb/test/util/TestBase.java
// public class TestBase {
// 	
// 	/** This should be set on the command line with a -DaccessToken=BLAH argument */
// 	protected static final String ACCESS_TOKEN = System.getProperty("accessToken", "");
// 	
// 	/** */
// 	protected Batcher authBatcher;
// 
// 	@BeforeMethod
// 	public void setUp() throws Exception {
// 		this.authBatcher = new FacebookBatcher(ACCESS_TOKEN);
// 	}
// 
// 	@AfterMethod
// 	public void tearDown() throws Exception {
// 		this.authBatcher = null;
// 	}
// }
// 
// Path: src/main/java/com/googlecode/batchfb/Later.java
// public interface Later<T> {
// 	/**
// 	 * <p>Get the value, triggering execution of the batch if necessary.  Once the batch
// 	 * has been executed, this method can be called repeatedly without incurring further
// 	 * calls to Facebook or triggering the execution of any subsequently created batches.
// 	 * It is as efficient as a simple value getter.</p>
// 	 * 
// 	 * <p>If the Facebook call produced an error, repeated calls to this method will produce
// 	 * the same exception.  BatchFB will *not* retry a Facebook call; you must create a
// 	 * new Later<?> object from the FacebookBatcher class.</p>
// 	 * 
// 	 * @throws FacebookException if anything went wrong with the Facebook interaction
// 	 */
// 	T get() throws FacebookException;
// }


// Path: src/test/java/com/googlecode/batchfb/test/QueryResultSizeTest.java
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.googlecode.batchfb.Later;
import java.net.URL;
import java.net.URLEncoder;
import com.googlecode.batchfb.test.util.TestBase;
import org.testng.annotations.Test;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

/*
 * Copyright (c) 2010 Jeff Schnitzer.
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package com.googlecode.batchfb.test;




/**
 * Testing a report that sometimes query results return the wrong size.
 * 
 * @author Jeff Schnitzer
 */
public class QueryResultSizeTest extends TestBase {

	/**
	 */
	@Test
	public void basicQuery() throws Exception {

		this.ensureQueryIsCorrectSize("SELECT aid FROM album WHERE owner = me()");
