package com.stripe.functional;

import com.stripe.BaseStripeFunctionalTest;
import com.stripe.exception.StripeException;
import com.stripe.model.ApplicationFee;
import org.junit.Test;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import static org.junit.Assert.assertEquals;

public class ApplicationFeeTest extends BaseStripeFunctionalTest {
	@Test
	public void testApplicationFeeList() throws StripeException {
		Map<String, Object> listParams = new HashMap<String, Object>();
		listParams.put("count", 0);
		List<ApplicationFee> fees = ApplicationFee.all(listParams).getData();
		assertEquals(fees.size(), 0);
	}
}

@@ -154,16 +154,66 @@
 ionFee;%0A
+import com.stripe.model.ApplicationFeeCollection;%0A
 import o
@@ -555,43 +555,8 @@
 ;%0A%09%09
-listParams.put(%22count%22, 0);%0A%09%09List%3C
 Appl
@@ -565,17 +565,26 @@
 ationFee
-%3E
+Collection
  fees = 
@@ -602,11 +602,12 @@
 Fee.
-all
+list
 (lis
@@ -618,18 +618,8 @@
 ams)
-.getData()
 ;%0A%09%09
@@ -635,22 +635,45 @@
 als(
-fees.size(), 0
+%22/v1/application_fees%22, fees.getURL()
 );%0A%09

Fix a failing test case in stripe-java's build