// Path: common/src/main/java/org/openshift/ping/common/compatibility/CompatibilityUtils.java
// public class CompatibilityUtils {
// 
//    private CompatibilityUtils() {
//    }
// 
//    /**
//     * @return <code>true</code> when JGroups 4 is on the classpath. <code>false</code> otherwise.
//     */
//    public static boolean isJGroups4() {
//       final short[] decodedVersion = Version.decode(Version.version);
//       return decodedVersion[0] == 4;
//    }
// }


import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import org.jgroups.Channel;
import org.jgroups.JChannel;
import org.jgroups.util.Util;
import org.junit.Assert;
import org.junit.Test;
import org.openshift.ping.common.compatibility.CompatibilityException;
import org.openshift.ping.common.compatibility.CompatibilityUtils;
/**
 *  Copyright 2014 Red Hat, Inc.
 *
 *  Red Hat licenses this file to you 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.openshift.ping.kube.test;



/**
 * @author <a href="mailto:ales.justin@jboss.org">Ales Justin</a>
 */
public abstract class PingTestBase extends TestBase {

    //handles via reflection because of JGroups 3/4 incompatibility.
    private static final Method waitForViewMethod;

    static {
        try {
// Path: common/src/main/java/org/openshift/ping/common/compatibility/CompatibilityUtils.java
// public class CompatibilityUtils {
// 
//    private CompatibilityUtils() {
//    }
// 
//    /**
//     * @return <code>true</code> when JGroups 4 is on the classpath. <code>false</code> otherwise.
//     */
//    public static boolean isJGroups4() {
//       final short[] decodedVersion = Version.decode(Version.version);
//       return decodedVersion[0] == 4;
//    }
// }


// Path: kube/src/test/java/org/openshift/ping/kube/test/PingTestBase.java
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import org.jgroups.Channel;
import org.jgroups.JChannel;
import org.jgroups.util.Util;
import org.junit.Assert;
import org.junit.Test;
import org.openshift.ping.common.compatibility.CompatibilityException;
import org.openshift.ping.common.compatibility.CompatibilityUtils;

/**
 *  Copyright 2014 Red Hat, Inc.
 *
 *  Red Hat licenses this file to you 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.openshift.ping.kube.test;



/**
 * @author <a href="mailto:ales.justin@jboss.org">Ales Justin</a>
 */
public abstract class PingTestBase extends TestBase {

    //handles via reflection because of JGroups 3/4 incompatibility.
    private static final Method waitForViewMethod;

    static {
        try {
            if (CompatibilityUtils.isJGroups4()) {