// Path: agathon-manager/src/main/java/com/brighttag/agathon/model/CassandraRing.java
// public class CassandraRing {
// 
//   private final String name;
//   private final ImmutableSet<CassandraInstance> instances;
// 
//   private CassandraRing(@JsonProperty("name") String name,
//       @JsonProperty("instances") Set<CassandraInstance> instances) {
//     this(new Builder()
//         .name(name)
//         .instances(instances));
//   }
// 
//   private CassandraRing(Builder builder) {
//     this.name = builder.name;
//     this.instances = builder.instances.build();
//   }
// 
//   public @NotEmpty String getName() {
//     return name;
//   }
// 
//   public @NotEmpty ImmutableSet<CassandraInstance> getInstances() {
//     return instances;
//   }
// 
//   @Override
//   public int hashCode() {
//     return Objects.hashCode(significantAttributes());
//   }
// 
//   @Override
//   public boolean equals(Object obj) {
//     if (obj == null) {
//       return false;
//     } else if (obj == this) {
//       return true;
//     } else if (!getClass().isAssignableFrom(obj.getClass())) {
//       return false;
//     }
//     return Arrays.equals(significantAttributes(), getClass().cast(obj).significantAttributes());
//   }
// 
//   @Override
//   public String toString() {
//     return Objects.toStringHelper(this)
//         .add("name", name)
//         .add("instances", instances)
//         .toString();
//   }
// 
//   Object[] significantAttributes() {
//     return new Object[] { name, instances };
//   }
// 
//   /**
//    * Fluent builder for {@link CassandraRing}s.
//    *
//    * @author codyaray
//    * @since 9/16/2013
//    */
//   public static class Builder {
// 
//     private String name;
//     private final ImmutableSet.Builder<CassandraInstance> instances = ImmutableSet.builder();
// 
//     public Builder instances(Collection<CassandraInstance> instances) {
//       this.instances.addAll(instances);
//       return this;
//     }
// 
//     public Builder name(String name) {
//       this.name = name;
//       return this;
//     }
// 
//     public CassandraRing build() {
//       checkNotNull(name);
//       return new CassandraRing(this);
//     }
// 
//   }
// 
// }
// 
// Path: agathon-manager/src/main/java/com/brighttag/agathon/service/SeedService.java
// public interface SeedService {
// 
//   /**
//    * Returns the seeds for a Cassandra ring.
//    *
//    * @param ring the Cassandra ring
//    * @return the seeds for the Cassandra ring
//    */
//   ImmutableSet<String> getSeeds(CassandraRing ring);
// 
// }


import com.google.common.collect.ImmutableSet;
import org.easymock.EasyMockSupport;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.brighttag.agathon.model.CassandraRing;
import com.brighttag.agathon.service.SeedService;
import static org.easymock.EasyMock.expect;
import static org.junit.Assert.assertEquals;
/*
 * Copyright 2014 BrightTag, Inc.
 *
 *    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 com.brighttag.agathon.resources;





/**
 * @author codyaray
 * @since 5/25/12
 */
public class SeedResourceTest extends EasyMockSupport {

  private SeedService service;
  private SeedResource resource;
  private CassandraRing ring;

  @Before
  public void setUp() {
    service = createMock(SeedService.class);
    ring = createMock(CassandraRing.class);
    resource = new SeedResource(service, ring);
  }

  @After
  public void tearDown() {
// Path: agathon-manager/src/main/java/com/brighttag/agathon/model/CassandraRing.java
// public class CassandraRing {
// 
//   private final String name;
//   private final ImmutableSet<CassandraInstance> instances;
// 
//   private CassandraRing(@JsonProperty("name") String name,
//       @JsonProperty("instances") Set<CassandraInstance> instances) {
//     this(new Builder()
//         .name(name)
//         .instances(instances));
//   }
// 
//   private CassandraRing(Builder builder) {
//     this.name = builder.name;
//     this.instances = builder.instances.build();
//   }
// 
//   public @NotEmpty String getName() {
//     return name;
//   }
// 
//   public @NotEmpty ImmutableSet<CassandraInstance> getInstances() {
//     return instances;
//   }
// 
//   @Override
//   public int hashCode() {
//     return Objects.hashCode(significantAttributes());
//   }
// 
//   @Override
//   public boolean equals(Object obj) {
//     if (obj == null) {
//       return false;
//     } else if (obj == this) {
//       return true;
//     } else if (!getClass().isAssignableFrom(obj.getClass())) {
//       return false;
//     }
//     return Arrays.equals(significantAttributes(), getClass().cast(obj).significantAttributes());
//   }
// 
//   @Override
//   public String toString() {
//     return Objects.toStringHelper(this)
//         .add("name", name)
//         .add("instances", instances)
//         .toString();
//   }
// 
//   Object[] significantAttributes() {
//     return new Object[] { name, instances };
//   }
// 
//   /**
//    * Fluent builder for {@link CassandraRing}s.
//    *
//    * @author codyaray
//    * @since 9/16/2013
//    */
//   public static class Builder {
// 
//     private String name;
//     private final ImmutableSet.Builder<CassandraInstance> instances = ImmutableSet.builder();
// 
//     public Builder instances(Collection<CassandraInstance> instances) {
//       this.instances.addAll(instances);
//       return this;
//     }
// 
//     public Builder name(String name) {
//       this.name = name;
//       return this;
//     }
// 
//     public CassandraRing build() {
//       checkNotNull(name);
//       return new CassandraRing(this);
//     }
// 
//   }
// 
// }
// 
// Path: agathon-manager/src/main/java/com/brighttag/agathon/service/SeedService.java
// public interface SeedService {
// 
//   /**
//    * Returns the seeds for a Cassandra ring.
//    *
//    * @param ring the Cassandra ring
//    * @return the seeds for the Cassandra ring
//    */
//   ImmutableSet<String> getSeeds(CassandraRing ring);
// 
// }


// Path: agathon-manager/src/test/java/com/brighttag/agathon/resources/SeedResourceTest.java
import com.google.common.collect.ImmutableSet;
import org.easymock.EasyMockSupport;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.brighttag.agathon.model.CassandraRing;
import com.brighttag.agathon.service.SeedService;
import static org.easymock.EasyMock.expect;
import static org.junit.Assert.assertEquals;

/*
 * Copyright 2014 BrightTag, Inc.
 *
 *    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 com.brighttag.agathon.resources;





/**
 * @author codyaray
 * @since 5/25/12
 */
public class SeedResourceTest extends EasyMockSupport {

  private SeedService service;
  private SeedResource resource;
  private CassandraRing ring;

  @Before
  public void setUp() {
    service = createMock(SeedService.class);
    ring = createMock(CassandraRing.class);
    resource = new SeedResource(service, ring);
  }

  @After
  public void tearDown() {
    verifyAll();