// Path: http/src/main/java/org/kaazing/netx/http/internal/HttpRedirectPolicyUtils.java
// public static boolean shouldFollowRedirect(HttpRedirectPolicy redirectPolicy, URL currentURL, URL redirectURL) {
//     return POLICY_CHECKERS.get(redirectPolicy).compare(currentURL, redirectURL) == 0;
// }


import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.kaazing.netx.http.HttpRedirectPolicy.ALWAYS;
import static org.kaazing.netx.http.HttpRedirectPolicy.DOMAIN;
import static org.kaazing.netx.http.HttpRedirectPolicy.NEVER;
import static org.kaazing.netx.http.HttpRedirectPolicy.ORIGIN;
import static org.kaazing.netx.http.internal.HttpRedirectPolicyUtils.shouldFollowRedirect;
import java.net.URL;
import org.junit.Test;
/**
 * Copyright 2007-2015, Kaazing Corporation. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.kaazing.netx.http.internal;




public class HttpRedirectPolicyUtilsTest {

    @Test
    public void testAlways() throws Exception {
// Path: http/src/main/java/org/kaazing/netx/http/internal/HttpRedirectPolicyUtils.java
// public static boolean shouldFollowRedirect(HttpRedirectPolicy redirectPolicy, URL currentURL, URL redirectURL) {
//     return POLICY_CHECKERS.get(redirectPolicy).compare(currentURL, redirectURL) == 0;
// }


// Path: http/src/test/java/org/kaazing/netx/http/internal/HttpRedirectPolicyUtilsTest.java
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.kaazing.netx.http.HttpRedirectPolicy.ALWAYS;
import static org.kaazing.netx.http.HttpRedirectPolicy.DOMAIN;
import static org.kaazing.netx.http.HttpRedirectPolicy.NEVER;
import static org.kaazing.netx.http.HttpRedirectPolicy.ORIGIN;
import static org.kaazing.netx.http.internal.HttpRedirectPolicyUtils.shouldFollowRedirect;
import java.net.URL;
import org.junit.Test;

/**
 * Copyright 2007-2015, Kaazing Corporation. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.kaazing.netx.http.internal;




public class HttpRedirectPolicyUtilsTest {

    @Test
    public void testAlways() throws Exception {
        URL currentURL = new URL("http://example.com:8080/path");