@Test public void testgetClustersDetails() { Object obj = StubFactory.getClustersDetails(); assertTrue("Expected Clusters object", obj instanceof Clusters); }
public static Clusters getClustersDetails() { Cluster cluster = new Cluster(); cluster.setDataCenter(DataCenter.DFW); cluster.setDescription("aDesc"); cluster.setName("aClusterName"); Cluster cluster2 = new Cluster(); cluster2.setDataCenter((DataCenter) rndChoice(DataCenter.values())); cluster2.setDescription("aDesc"); cluster2.setName("aSecondCluster"); Clusters clusters = new Clusters(); clusters.getClusters().add(cluster); clusters.getClusters().add(cluster2); return clusters; }
StubFactory { public static Clusters getClustersDetails() { Cluster cluster = new Cluster(); cluster.setDataCenter(DataCenter.DFW); cluster.setDescription("aDesc"); cluster.setName("aClusterName"); Cluster cluster2 = new Cluster(); cluster2.setDataCenter((DataCenter) rndChoice(DataCenter.values())); cluster2.setDescription("aDesc"); cluster2.setName("aSecondCluster"); Clusters clusters = new Clusters(); clusters.getClusters().add(cluster); clusters.getClusters().add(cluster2); return clusters; } }
StubFactory { public static Clusters getClustersDetails() { Cluster cluster = new Cluster(); cluster.setDataCenter(DataCenter.DFW); cluster.setDescription("aDesc"); cluster.setName("aClusterName"); Cluster cluster2 = new Cluster(); cluster2.setDataCenter((DataCenter) rndChoice(DataCenter.values())); cluster2.setDescription("aDesc"); cluster2.setName("aSecondCluster"); Clusters clusters = new Clusters(); clusters.getClusters().add(cluster); clusters.getClusters().add(cluster2); return clusters; }  }
StubFactory { public static Clusters getClustersDetails() { Cluster cluster = new Cluster(); cluster.setDataCenter(DataCenter.DFW); cluster.setDescription("aDesc"); cluster.setName("aClusterName"); Cluster cluster2 = new Cluster(); cluster2.setDataCenter((DataCenter) rndChoice(DataCenter.values())); cluster2.setDescription("aDesc"); cluster2.setName("aSecondCluster"); Clusters clusters = new Clusters(); clusters.getClusters().add(cluster); clusters.getClusters().add(cluster2); return clusters; }  static Clusters getClustersDetails(); static VirtualIps getVirtualIpsDetails(); static VirtualIpAvailabilityReport retrieveRndVipsAvailabilityReport(); static VirtualIpAvailabilityReport retrieveVipsAvailabilityReport(int id); static VirtualIpAvailabilityReports retrieveRndVipsAvailabilityReports(int max); static VirtualIpAvailabilityReports retrieveVipsAvailabilityReports(int id); static VirtualIp getClusterVirtualIpDetails(int id, int lbid, int cid, String address, IpVersion version, VipType vipType); static Suspension getLoadBalancerSuspensionDetails(String reason, int ticketId, String user); static Backup getLoadbalancerBackupDetails(); static Host getHostDetails(); static VirtualIp getLoadbalancerVirtualIpDetails(int id, int loadBalancerId, int clusterId, String address, VipType vipType); static RateLimit getRateLimitDetails(int ticketId, int maxRequestsPerSecond); static Integer rndInt(int lo, int hi); static Long rndLong(int lo, int hi); static String rndIp(); static Double rndDouble(double lo, double hi); static Object rndChoice(List oList); static Object rndChoice(Object[] oArray); static Backup rndBackup(); static Backups rndBackups(); static HostMachineDetails newHostMachineDetails(); static HostCapacityReport rndHostCapacityReport(); static Host rndHostPut(); static HostCapacityReports rndHostCapacityReports(int max); static Host rndHostPost(); static ConnectionThrottle rndConnectionThrottle(); static LoadBalancerUsageRecord rndCurrentUsage(); static Hosts rndHosts(int max); static Node rndNode(); static Nodes rndNodes(int max); static RateLimit rndRateLimit(); static SessionPersistence rndSessionPersistance(); static LoadBalancer rndLoadBalancer(); static VirtualIpBlock getVirtualIpBlock(String lo, String hi); static VirtualIpBlocks getVirtualIpBlocks(); static NetInterface newNetInterface(String name, String... blocks); static CertInfo newCertInfo(int i, ZonedDateTime notBefore, ZonedDateTime notAfter); }
StubFactory { public static Clusters getClustersDetails() { Cluster cluster = new Cluster(); cluster.setDataCenter(DataCenter.DFW); cluster.setDescription("aDesc"); cluster.setName("aClusterName"); Cluster cluster2 = new Cluster(); cluster2.setDataCenter((DataCenter) rndChoice(DataCenter.values())); cluster2.setDescription("aDesc"); cluster2.setName("aSecondCluster"); Clusters clusters = new Clusters(); clusters.getClusters().add(cluster); clusters.getClusters().add(cluster2); return clusters; }  static Clusters getClustersDetails(); static VirtualIps getVirtualIpsDetails(); static VirtualIpAvailabilityReport retrieveRndVipsAvailabilityReport(); static VirtualIpAvailabilityReport retrieveVipsAvailabilityReport(int id); static VirtualIpAvailabilityReports retrieveRndVipsAvailabilityReports(int max); static VirtualIpAvailabilityReports retrieveVipsAvailabilityReports(int id); static VirtualIp getClusterVirtualIpDetails(int id, int lbid, int cid, String address, IpVersion version, VipType vipType); static Suspension getLoadBalancerSuspensionDetails(String reason, int ticketId, String user); static Backup getLoadbalancerBackupDetails(); static Host getHostDetails(); static VirtualIp getLoadbalancerVirtualIpDetails(int id, int loadBalancerId, int clusterId, String address, VipType vipType); static RateLimit getRateLimitDetails(int ticketId, int maxRequestsPerSecond); static Integer rndInt(int lo, int hi); static Long rndLong(int lo, int hi); static String rndIp(); static Double rndDouble(double lo, double hi); static Object rndChoice(List oList); static Object rndChoice(Object[] oArray); static Backup rndBackup(); static Backups rndBackups(); static HostMachineDetails newHostMachineDetails(); static HostCapacityReport rndHostCapacityReport(); static Host rndHostPut(); static HostCapacityReports rndHostCapacityReports(int max); static Host rndHostPost(); static ConnectionThrottle rndConnectionThrottle(); static LoadBalancerUsageRecord rndCurrentUsage(); static Hosts rndHosts(int max); static Node rndNode(); static Nodes rndNodes(int max); static RateLimit rndRateLimit(); static SessionPersistence rndSessionPersistance(); static LoadBalancer rndLoadBalancer(); static VirtualIpBlock getVirtualIpBlock(String lo, String hi); static VirtualIpBlocks getVirtualIpBlocks(); static NetInterface newNetInterface(String name, String... blocks); static CertInfo newCertInfo(int i, ZonedDateTime notBefore, ZonedDateTime notAfter);  }