package jp.agentec.abook.abv.bl.acms.client.json;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class ServiceOptionsJSONTest {

	@Test
	public void testServiceOptionsJSON() {
		String jsonString = "{\"httpStatus\":200,\"serviceOptionList\":[{\"ServiceOptionId\":15,\"serviceName\":\"content_nonprotect\",\"value\":\"N\"},{\"ServiceOptionId\":16,\"serviceName\":\"userid_auto_register\",\"value\":\"Y\"},{\"ServiceOptionId\":17,\"serviceName\":\"detect_ext_connect\",\"value\":\"N\"},{\"ServiceOptionId\":302,\"serviceName\":\"ipad\",\"value\":\"Y\"},{\"ServiceOptionId\":303,\"serviceName\":\"iphone\",\"value\":\"N\"},{\"ServiceOptionId\":404,\"serviceName\":\"android\",\"value\":\"Y\"},{\"ServiceOptionId\":21,\"serviceName\":\"force_pw_change_on_login\",\"value\":\"1\"},{\"ServiceOptionId\":22,\"serviceName\":\"force_pw_change_periodically\",\"value\":\"1\"},{\"ServiceOptionId\":23,\"serviceName\":\"force_login_periodically\",\"value\":\"N\"},{\"ServiceOptionId\":24,\"serviceName\":\"mbook_mode\",\"value\":\"0\"},{\"ServiceOptionId\":11,\"serviceName\":\"transcoder\",\"value\":\"Y\"},{\"ServiceOptionId\":12,\"serviceName\":\"apns\",\"value\":\"Y\"},{\"ServiceOptionId\":13,\"serviceName\":\"undeliverable_delete\",\"value\":\"N\"},{\"ServiceOptionId\":14,\"serviceName\":\"noauth_delete\",\"value\":\"N\"}]}";
		
		try {
			ServiceOptionsJSON json = new ServiceOptionsJSON(jsonString);
			System.out.println(json.httpStatus);
//			for (ServiceOptionJSON option : json.getServiceOptions()) {
//				System.out.println(option.toString());
//			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		assertTrue(true);
	}

}
