// Path: src/main/java/com/lookfirst/wepay/WePayApi.java
// @AllArgsConstructor
// public enum Scope {
// 	MANAGE_ACCOUNTS		("manage_accounts"),	// Open and interact with accounts
// 	VIEW_BALANCE		("view_balance"),		// View account balances
// 	COLLECT_PAYMENTS	("collect_payments"),	// Create and interact with checkouts
// 	REFUND_PAYMENTS		("refund_payments"),	// Refund checkouts
// 	VIEW_USER			("view_user"),			// Get details about authenticated user
// 	PREAPPROVE_PAYMENTS	("preapprove_payments"),// preapproval
// 	SEND_MONEY			("send_money");			// /disbursement & /transfer
// 
// 	private String scope;
// 
// 	public static List<Scope> getAll() {
// 		return Arrays.asList(values());
// 	}
// 
// 	public String toString() {
// 		return scope;
// 	}
// }


import com.lookfirst.wepay.WePayApi.Scope;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.Test;
package com.lookfirst.wepay;


/**
 * Testing the api class.
 */
@Test
public class WePayApiTest {

	private WePayApi api;

	@BeforeSuite
	public void setup() {
		WePayKey key = new WePayKey(false, 123L, "secret");
		api = new WePayApi(key);
	}

	public void testGetAuthorizationUri() {
// Path: src/main/java/com/lookfirst/wepay/WePayApi.java
// @AllArgsConstructor
// public enum Scope {
// 	MANAGE_ACCOUNTS		("manage_accounts"),	// Open and interact with accounts
// 	VIEW_BALANCE		("view_balance"),		// View account balances
// 	COLLECT_PAYMENTS	("collect_payments"),	// Create and interact with checkouts
// 	REFUND_PAYMENTS		("refund_payments"),	// Refund checkouts
// 	VIEW_USER			("view_user"),			// Get details about authenticated user
// 	PREAPPROVE_PAYMENTS	("preapprove_payments"),// preapproval
// 	SEND_MONEY			("send_money");			// /disbursement & /transfer
// 
// 	private String scope;
// 
// 	public static List<Scope> getAll() {
// 		return Arrays.asList(values());
// 	}
// 
// 	public String toString() {
// 		return scope;
// 	}
// }


// Path: src/test/java/com/lookfirst/wepay/WePayApiTest.java
import com.lookfirst.wepay.WePayApi.Scope;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.Test;

package com.lookfirst.wepay;


/**
 * Testing the api class.
 */
@Test
public class WePayApiTest {

	private WePayApi api;

	@BeforeSuite
	public void setup() {
		WePayKey key = new WePayKey(false, 123L, "secret");
		api = new WePayApi(key);
	}

	public void testGetAuthorizationUri() {
		String result = api.getAuthorizationUri(Scope.getAll(), "http://test/redirect", "state");