package jp.agentec.adf.util;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import jp.agentec.abook.abv.bl.acms.type.DownloadStatusType;
import jp.agentec.adf.util.ArrayUtil;
import jp.agentec.adf.util.StringUtil;

import org.junit.Test;

public class ArrayUtilTest {
	@Test
	public void testIsNullOrEmpty() {
		DownloadStatusType target = DownloadStatusType.Canceled;
		
		assertTrue(ArrayUtil.equalsAny(target, new Object[]{DownloadStatusType.Canceled, DownloadStatusType.Succeeded, DownloadStatusType.Failed}));
		assertFalse(ArrayUtil.equalsAny(target, new Object[]{DownloadStatusType.Succeeded, DownloadStatusType.Failed}));
	}

}