Package com.openshift.client.utils

Source Code of com.openshift.client.utils.GearProfileTestUtils

package com.openshift.client.utils;

import com.openshift.client.IDomain;
import com.openshift.client.IGearProfile;
import com.openshift.internal.client.GearProfile;

import java.util.List;

/**
* Created by corey on 2/17/14.
*/
public class GearProfileTestUtils {
  public static IGearProfile getFirstAvailableGearProfile(IDomain domain) {
    IGearProfile gear = null;
    List<IGearProfile> gears = domain.getAvailableGearProfiles();
    if (gears != null
        && !gears.isEmpty()) {
      gear = gears.get(0);
    }
    return gear;
  }
}
TOP

Related Classes of com.openshift.client.utils.GearProfileTestUtils

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.