// Path: order-context-parent/publisher-contract-command/src/main/java/se/citerus/cqrs/bookstore/ordercontext/api/RegisterPublisherContractRequest.java
// public class RegisterPublisherContractRequest extends TransportObject {
// 
//   @NotEmpty
//   @Pattern(regexp = ID_PATTERN)
//   public String publisherContractId;
// 
//   @NotNull
//   public String publisherName;
// 
//   @Min(1)
//   public double feePercentage;
// 
//   @Min(1)
//   public long limit;
// 
// }


import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.io.Resources;
import org.junit.Ignore;
import se.citerus.cqrs.bookstore.ordercontext.api.RegisterPublisherContractRequest;
import java.util.List;
import static com.google.common.base.Charsets.UTF_8;
import static com.google.common.io.Resources.getResource;
package se.citerus.cqrs.bookstore.ordercontext.application;




@Ignore
public class TestContractDataImporter {

  private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
  private static final String SERVER_RESOURCE = "http://localhost:8070/service/publisher-contract-requests";
  public static final String DEFAULT_PATH = "test-publisher-contracts.json";

  public static void main(String[] args) {
    try {
      TestHttpClient publisherClient = new TestHttpClient(SERVER_RESOURCE).init();

      String contractsJson = Resources.toString(getResource(DEFAULT_PATH), UTF_8);
// Path: order-context-parent/publisher-contract-command/src/main/java/se/citerus/cqrs/bookstore/ordercontext/api/RegisterPublisherContractRequest.java
// public class RegisterPublisherContractRequest extends TransportObject {
// 
//   @NotEmpty
//   @Pattern(regexp = ID_PATTERN)
//   public String publisherContractId;
// 
//   @NotNull
//   public String publisherName;
// 
//   @Min(1)
//   public double feePercentage;
// 
//   @Min(1)
//   public long limit;
// 
// }


// Path: order-context-parent/order-application/src/test/java/se/citerus/cqrs/bookstore/ordercontext/application/TestContractDataImporter.java
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.io.Resources;
import org.junit.Ignore;
import se.citerus.cqrs.bookstore.ordercontext.api.RegisterPublisherContractRequest;
import java.util.List;
import static com.google.common.base.Charsets.UTF_8;
import static com.google.common.io.Resources.getResource;

package se.citerus.cqrs.bookstore.ordercontext.application;




@Ignore
public class TestContractDataImporter {

  private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
  private static final String SERVER_RESOURCE = "http://localhost:8070/service/publisher-contract-requests";
  public static final String DEFAULT_PATH = "test-publisher-contracts.json";

  public static void main(String[] args) {
    try {
      TestHttpClient publisherClient = new TestHttpClient(SERVER_RESOURCE).init();

      String contractsJson = Resources.toString(getResource(DEFAULT_PATH), UTF_8);
      TypeReference<List<RegisterPublisherContractRequest>> listOfRegisterPublisherRequests =