package com.github.avarabyeu.restendpoint.http.endpoint;

import com.google.mockwebserver.MockResponse;
import com.google.mockwebserver.RecordedRequest;
import org.junit.Assert;

/**
 * Created by andrey.vorobyov on 17/04/14.
 */
public class BaseRestEndointTest {

    public static final String SERIALIZED_STRING = "{\"intField\":100,\"stringField\":\"test string\"}";
    public static final String SERIALIZED_STRING_PATTERN = "{\"intField\":%d,\"stringField\":\"%s\"}";

    protected void validateHeader(RecordedRequest request) {
        Assert.assertTrue(request.getHeaders().contains("Content-Type: application/json; charset=UTF-8"));
    }

    protected MockResponse prepareResponse(String body) {
        return new MockResponse().setBody(body).setHeader("Content-Type", "application/json");
    }
}

@@ -170,16 +170,64 @@
 .Assert;
+%0Aimport org.junit.Ignore;%0Aimport org.junit.Test;
 %0A%0A/**%0A *
@@ -271,16 +271,24 @@
 14.%0A */%0A
+@Ignore%0A
 public c

fix unit test