Bumping versions
This commit is contained in:
@@ -33,91 +33,78 @@ class HttpHeadersTests {
|
||||
@Test
|
||||
public void ACCEPT_CHARSET() {
|
||||
BDDAssertions.then(HttpHeaders.ACCEPT_CHARSET).isEqualTo("Accept-Charset");
|
||||
BDDAssertions.then(new HttpHeaders().acceptCharset())
|
||||
.isEqualTo(HttpHeaders.ACCEPT_CHARSET);
|
||||
BDDAssertions.then(new HttpHeaders().acceptCharset()).isEqualTo(HttpHeaders.ACCEPT_CHARSET);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ACCEPT_ENCODING() {
|
||||
BDDAssertions.then(HttpHeaders.ACCEPT_ENCODING).isEqualTo("Accept-Encoding");
|
||||
BDDAssertions.then(new HttpHeaders().acceptEncoding())
|
||||
.isEqualTo(HttpHeaders.ACCEPT_ENCODING);
|
||||
BDDAssertions.then(new HttpHeaders().acceptEncoding()).isEqualTo(HttpHeaders.ACCEPT_ENCODING);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ACCEPT_LANGUAGE() {
|
||||
BDDAssertions.then(HttpHeaders.ACCEPT_LANGUAGE).isEqualTo("Accept-Language");
|
||||
BDDAssertions.then(new HttpHeaders().acceptLanguage())
|
||||
.isEqualTo(HttpHeaders.ACCEPT_LANGUAGE);
|
||||
BDDAssertions.then(new HttpHeaders().acceptLanguage()).isEqualTo(HttpHeaders.ACCEPT_LANGUAGE);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ACCEPT_RANGES() {
|
||||
BDDAssertions.then(HttpHeaders.ACCEPT_RANGES).isEqualTo("Accept-Ranges");
|
||||
BDDAssertions.then(new HttpHeaders().acceptRanges())
|
||||
.isEqualTo(HttpHeaders.ACCEPT_RANGES);
|
||||
BDDAssertions.then(new HttpHeaders().acceptRanges()).isEqualTo(HttpHeaders.ACCEPT_RANGES);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ACCESS_CONTROL_ALLOW_CREDENTIALS() {
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_ALLOW_CREDENTIALS)
|
||||
.isEqualTo("Access-Control-Allow-Credentials");
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_ALLOW_CREDENTIALS).isEqualTo("Access-Control-Allow-Credentials");
|
||||
BDDAssertions.then(new HttpHeaders().accessControlAllowCredentials())
|
||||
.isEqualTo(HttpHeaders.ACCESS_CONTROL_ALLOW_CREDENTIALS);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ACCESS_CONTROL_ALLOW_HEADERS() {
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_ALLOW_HEADERS)
|
||||
.isEqualTo("Access-Control-Allow-Headers");
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_ALLOW_HEADERS).isEqualTo("Access-Control-Allow-Headers");
|
||||
BDDAssertions.then(new HttpHeaders().accessControlAllowHeaders())
|
||||
.isEqualTo(HttpHeaders.ACCESS_CONTROL_ALLOW_HEADERS);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ACCESS_CONTROL_ALLOW_METHODS() {
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS)
|
||||
.isEqualTo("Access-Control-Allow-Methods");
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS).isEqualTo("Access-Control-Allow-Methods");
|
||||
BDDAssertions.then(new HttpHeaders().accessControlAllowMethods())
|
||||
.isEqualTo(HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ACCESS_CONTROL_ALLOW_ORIGIN() {
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN)
|
||||
.isEqualTo("Access-Control-Allow-Origin");
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN).isEqualTo("Access-Control-Allow-Origin");
|
||||
BDDAssertions.then(new HttpHeaders().accessControlAllowOrigin())
|
||||
.isEqualTo(HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ACCESS_CONTROL_EXPOSE_HEADERS() {
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS)
|
||||
.isEqualTo("Access-Control-Expose-Headers");
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS).isEqualTo("Access-Control-Expose-Headers");
|
||||
BDDAssertions.then(new HttpHeaders().accessControlExposeHeaders())
|
||||
.isEqualTo(HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ACCESS_CONTROL_MAX_AGE() {
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_MAX_AGE)
|
||||
.isEqualTo("Access-Control-Max-Age");
|
||||
BDDAssertions.then(new HttpHeaders().accessControlMaxAge())
|
||||
.isEqualTo(HttpHeaders.ACCESS_CONTROL_MAX_AGE);
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_MAX_AGE).isEqualTo("Access-Control-Max-Age");
|
||||
BDDAssertions.then(new HttpHeaders().accessControlMaxAge()).isEqualTo(HttpHeaders.ACCESS_CONTROL_MAX_AGE);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ACCESS_CONTROL_REQUEST_HEADERS() {
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_REQUEST_HEADERS)
|
||||
.isEqualTo("Access-Control-Request-Headers");
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_REQUEST_HEADERS).isEqualTo("Access-Control-Request-Headers");
|
||||
BDDAssertions.then(new HttpHeaders().accessControlRequestHeaders())
|
||||
.isEqualTo(HttpHeaders.ACCESS_CONTROL_REQUEST_HEADERS);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ACCESS_CONTROL_REQUEST_METHOD() {
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_REQUEST_METHOD)
|
||||
.isEqualTo("Access-Control-Request-Method");
|
||||
BDDAssertions.then(HttpHeaders.ACCESS_CONTROL_REQUEST_METHOD).isEqualTo("Access-Control-Request-Method");
|
||||
BDDAssertions.then(new HttpHeaders().accessControlRequestMethod())
|
||||
.isEqualTo(HttpHeaders.ACCESS_CONTROL_REQUEST_METHOD);
|
||||
}
|
||||
@@ -137,72 +124,61 @@ class HttpHeadersTests {
|
||||
@Test
|
||||
public void AUTHORIZATION() {
|
||||
BDDAssertions.then(HttpHeaders.AUTHORIZATION).isEqualTo("Authorization");
|
||||
BDDAssertions.then(new HttpHeaders().authorization())
|
||||
.isEqualTo(HttpHeaders.AUTHORIZATION);
|
||||
BDDAssertions.then(new HttpHeaders().authorization()).isEqualTo(HttpHeaders.AUTHORIZATION);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void CACHE_CONTROL() {
|
||||
BDDAssertions.then(HttpHeaders.CACHE_CONTROL).isEqualTo("Cache-Control");
|
||||
BDDAssertions.then(new HttpHeaders().cacheControl())
|
||||
.isEqualTo(HttpHeaders.CACHE_CONTROL);
|
||||
BDDAssertions.then(new HttpHeaders().cacheControl()).isEqualTo(HttpHeaders.CACHE_CONTROL);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void CONNECTION() {
|
||||
BDDAssertions.then(HttpHeaders.CONNECTION).isEqualTo("Connection");
|
||||
BDDAssertions.then(new HttpHeaders().connection())
|
||||
.isEqualTo(HttpHeaders.CONNECTION);
|
||||
BDDAssertions.then(new HttpHeaders().connection()).isEqualTo(HttpHeaders.CONNECTION);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void CONTENT_ENCODING() {
|
||||
BDDAssertions.then(HttpHeaders.CONTENT_ENCODING).isEqualTo("Content-Encoding");
|
||||
BDDAssertions.then(new HttpHeaders().contentEncoding())
|
||||
.isEqualTo(HttpHeaders.CONTENT_ENCODING);
|
||||
BDDAssertions.then(new HttpHeaders().contentEncoding()).isEqualTo(HttpHeaders.CONTENT_ENCODING);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void CONTENT_DISPOSITION() {
|
||||
BDDAssertions.then(HttpHeaders.CONTENT_DISPOSITION)
|
||||
.isEqualTo("Content-Disposition");
|
||||
BDDAssertions.then(new HttpHeaders().contentDisposition())
|
||||
.isEqualTo(HttpHeaders.CONTENT_DISPOSITION);
|
||||
BDDAssertions.then(HttpHeaders.CONTENT_DISPOSITION).isEqualTo("Content-Disposition");
|
||||
BDDAssertions.then(new HttpHeaders().contentDisposition()).isEqualTo(HttpHeaders.CONTENT_DISPOSITION);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void CONTENT_LANGUAGE() {
|
||||
BDDAssertions.then(HttpHeaders.CONTENT_LANGUAGE).isEqualTo("Content-Language");
|
||||
BDDAssertions.then(new HttpHeaders().contentLanguage())
|
||||
.isEqualTo(HttpHeaders.CONTENT_LANGUAGE);
|
||||
BDDAssertions.then(new HttpHeaders().contentLanguage()).isEqualTo(HttpHeaders.CONTENT_LANGUAGE);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void CONTENT_LENGTH() {
|
||||
BDDAssertions.then(HttpHeaders.CONTENT_LENGTH).isEqualTo("Content-Length");
|
||||
BDDAssertions.then(new HttpHeaders().contentLength())
|
||||
.isEqualTo(HttpHeaders.CONTENT_LENGTH);
|
||||
BDDAssertions.then(new HttpHeaders().contentLength()).isEqualTo(HttpHeaders.CONTENT_LENGTH);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void CONTENT_LOCATION() {
|
||||
BDDAssertions.then(HttpHeaders.CONTENT_LOCATION).isEqualTo("Content-Location");
|
||||
BDDAssertions.then(new HttpHeaders().contentLocation())
|
||||
.isEqualTo(HttpHeaders.CONTENT_LOCATION);
|
||||
BDDAssertions.then(new HttpHeaders().contentLocation()).isEqualTo(HttpHeaders.CONTENT_LOCATION);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void CONTENT_RANGE() {
|
||||
BDDAssertions.then(HttpHeaders.CONTENT_RANGE).isEqualTo("Content-Range");
|
||||
BDDAssertions.then(new HttpHeaders().contentRange())
|
||||
.isEqualTo(HttpHeaders.CONTENT_RANGE);
|
||||
BDDAssertions.then(new HttpHeaders().contentRange()).isEqualTo(HttpHeaders.CONTENT_RANGE);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void CONTENT_TYPE() {
|
||||
BDDAssertions.then(HttpHeaders.CONTENT_TYPE).isEqualTo("Content-Type");
|
||||
BDDAssertions.then(new HttpHeaders().contentType())
|
||||
.isEqualTo(HttpHeaders.CONTENT_TYPE);
|
||||
BDDAssertions.then(new HttpHeaders().contentType()).isEqualTo(HttpHeaders.CONTENT_TYPE);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -256,15 +232,13 @@ class HttpHeadersTests {
|
||||
@Test
|
||||
public void IF_MODIFIED_SINCE() {
|
||||
BDDAssertions.then(HttpHeaders.IF_MODIFIED_SINCE).isEqualTo("If-Modified-Since");
|
||||
BDDAssertions.then(new HttpHeaders().ifModifiedSince())
|
||||
.isEqualTo(HttpHeaders.IF_MODIFIED_SINCE);
|
||||
BDDAssertions.then(new HttpHeaders().ifModifiedSince()).isEqualTo(HttpHeaders.IF_MODIFIED_SINCE);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void IF_NONE_MATCH() {
|
||||
BDDAssertions.then(HttpHeaders.IF_NONE_MATCH).isEqualTo("If-None-Match");
|
||||
BDDAssertions.then(new HttpHeaders().ifNoneMatch())
|
||||
.isEqualTo(HttpHeaders.IF_NONE_MATCH);
|
||||
BDDAssertions.then(new HttpHeaders().ifNoneMatch()).isEqualTo(HttpHeaders.IF_NONE_MATCH);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -275,17 +249,14 @@ class HttpHeadersTests {
|
||||
|
||||
@Test
|
||||
public void IF_UNMODIFIED_SINCE() {
|
||||
BDDAssertions.then(HttpHeaders.IF_UNMODIFIED_SINCE)
|
||||
.isEqualTo("If-Unmodified-Since");
|
||||
BDDAssertions.then(new HttpHeaders().ifUnmodifiedSince())
|
||||
.isEqualTo(HttpHeaders.IF_UNMODIFIED_SINCE);
|
||||
BDDAssertions.then(HttpHeaders.IF_UNMODIFIED_SINCE).isEqualTo("If-Unmodified-Since");
|
||||
BDDAssertions.then(new HttpHeaders().ifUnmodifiedSince()).isEqualTo(HttpHeaders.IF_UNMODIFIED_SINCE);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void LAST_MODIFIED() {
|
||||
BDDAssertions.then(HttpHeaders.LAST_MODIFIED).isEqualTo("Last-Modified");
|
||||
BDDAssertions.then(new HttpHeaders().lastModified())
|
||||
.isEqualTo(HttpHeaders.LAST_MODIFIED);
|
||||
BDDAssertions.then(new HttpHeaders().lastModified()).isEqualTo(HttpHeaders.LAST_MODIFIED);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -303,8 +274,7 @@ class HttpHeadersTests {
|
||||
@Test
|
||||
public void MAX_FORWARDS() {
|
||||
BDDAssertions.then(HttpHeaders.MAX_FORWARDS).isEqualTo("Max-Forwards");
|
||||
BDDAssertions.then(new HttpHeaders().max_forwards())
|
||||
.isEqualTo(HttpHeaders.MAX_FORWARDS);
|
||||
BDDAssertions.then(new HttpHeaders().max_forwards()).isEqualTo(HttpHeaders.MAX_FORWARDS);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -321,18 +291,14 @@ class HttpHeadersTests {
|
||||
|
||||
@Test
|
||||
public void PROXY_AUTHENTICATE() {
|
||||
BDDAssertions.then(HttpHeaders.PROXY_AUTHENTICATE)
|
||||
.isEqualTo("Proxy-Authenticate");
|
||||
BDDAssertions.then(new HttpHeaders().proxyAuthenticate())
|
||||
.isEqualTo(HttpHeaders.PROXY_AUTHENTICATE);
|
||||
BDDAssertions.then(HttpHeaders.PROXY_AUTHENTICATE).isEqualTo("Proxy-Authenticate");
|
||||
BDDAssertions.then(new HttpHeaders().proxyAuthenticate()).isEqualTo(HttpHeaders.PROXY_AUTHENTICATE);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void PROXY_AUTHORIZATION() {
|
||||
BDDAssertions.then(HttpHeaders.PROXY_AUTHORIZATION)
|
||||
.isEqualTo("Proxy-Authorization");
|
||||
BDDAssertions.then(new HttpHeaders().proxyAuthorization())
|
||||
.isEqualTo(HttpHeaders.PROXY_AUTHORIZATION);
|
||||
BDDAssertions.then(HttpHeaders.PROXY_AUTHORIZATION).isEqualTo("Proxy-Authorization");
|
||||
BDDAssertions.then(new HttpHeaders().proxyAuthorization()).isEqualTo(HttpHeaders.PROXY_AUTHORIZATION);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -350,8 +316,7 @@ class HttpHeadersTests {
|
||||
@Test
|
||||
public void RETRY_AFTER() {
|
||||
BDDAssertions.then(HttpHeaders.RETRY_AFTER).isEqualTo("Retry-After");
|
||||
BDDAssertions.then(new HttpHeaders().retryAfter())
|
||||
.isEqualTo(HttpHeaders.RETRY_AFTER);
|
||||
BDDAssertions.then(new HttpHeaders().retryAfter()).isEqualTo(HttpHeaders.RETRY_AFTER);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -363,15 +328,13 @@ class HttpHeadersTests {
|
||||
@Test
|
||||
public void SET_COOKIE() {
|
||||
BDDAssertions.then(HttpHeaders.SET_COOKIE).isEqualTo("Set-Cookie");
|
||||
BDDAssertions.then(new HttpHeaders().setCookie())
|
||||
.isEqualTo(HttpHeaders.SET_COOKIE);
|
||||
BDDAssertions.then(new HttpHeaders().setCookie()).isEqualTo(HttpHeaders.SET_COOKIE);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void SET_COOKIE_2() {
|
||||
BDDAssertions.then(HttpHeaders.SET_COOKIE_2).isEqualTo("Set-Cookie2");
|
||||
BDDAssertions.then(new HttpHeaders().setCookie2())
|
||||
.isEqualTo(HttpHeaders.SET_COOKIE_2);
|
||||
BDDAssertions.then(new HttpHeaders().setCookie2()).isEqualTo(HttpHeaders.SET_COOKIE_2);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -389,8 +352,7 @@ class HttpHeadersTests {
|
||||
@Test
|
||||
public void TRANSFER_ENCODING() {
|
||||
BDDAssertions.then(HttpHeaders.TRANSFER_ENCODING).isEqualTo("Transfer-Encoding");
|
||||
BDDAssertions.then(new HttpHeaders().transferEncoding())
|
||||
.isEqualTo(HttpHeaders.TRANSFER_ENCODING);
|
||||
BDDAssertions.then(new HttpHeaders().transferEncoding()).isEqualTo(HttpHeaders.TRANSFER_ENCODING);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -402,8 +364,7 @@ class HttpHeadersTests {
|
||||
@Test
|
||||
public void USER_AGENT() {
|
||||
BDDAssertions.then(HttpHeaders.USER_AGENT).isEqualTo("User-Agent");
|
||||
BDDAssertions.then(new HttpHeaders().user_agent())
|
||||
.isEqualTo(HttpHeaders.USER_AGENT);
|
||||
BDDAssertions.then(new HttpHeaders().user_agent()).isEqualTo(HttpHeaders.USER_AGENT);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -427,8 +388,7 @@ class HttpHeadersTests {
|
||||
@Test
|
||||
public void WWW_AUTHENTICATE() {
|
||||
BDDAssertions.then(HttpHeaders.WWW_AUTHENTICATE).isEqualTo("WWW-Authenticate");
|
||||
BDDAssertions.then(new HttpHeaders().wwwAuthenticate())
|
||||
.isEqualTo(HttpHeaders.WWW_AUTHENTICATE);
|
||||
BDDAssertions.then(new HttpHeaders().wwwAuthenticate()).isEqualTo(HttpHeaders.WWW_AUTHENTICATE);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -27,57 +27,49 @@ class HttpMethodsTests {
|
||||
@Test
|
||||
public void GET() {
|
||||
BDDAssertions.then(HttpMethods.GET).isEqualTo("GET");
|
||||
BDDAssertions.then(new HttpMethods().GET().getMethodName())
|
||||
.isEqualTo(HttpMethods.GET);
|
||||
BDDAssertions.then(new HttpMethods().GET().getMethodName()).isEqualTo(HttpMethods.GET);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void HEAD() {
|
||||
BDDAssertions.then(HttpMethods.HEAD).isEqualTo("HEAD");
|
||||
BDDAssertions.then(new HttpMethods().HEAD().getMethodName())
|
||||
.isEqualTo(HttpMethods.HEAD);
|
||||
BDDAssertions.then(new HttpMethods().HEAD().getMethodName()).isEqualTo(HttpMethods.HEAD);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void POST() {
|
||||
BDDAssertions.then(HttpMethods.POST).isEqualTo("POST");
|
||||
BDDAssertions.then(new HttpMethods().POST().getMethodName())
|
||||
.isEqualTo(HttpMethods.POST);
|
||||
BDDAssertions.then(new HttpMethods().POST().getMethodName()).isEqualTo(HttpMethods.POST);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void PUT() {
|
||||
BDDAssertions.then(HttpMethods.PUT).isEqualTo("PUT");
|
||||
BDDAssertions.then(new HttpMethods().PUT().getMethodName())
|
||||
.isEqualTo(HttpMethods.PUT);
|
||||
BDDAssertions.then(new HttpMethods().PUT().getMethodName()).isEqualTo(HttpMethods.PUT);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void PATCH() {
|
||||
BDDAssertions.then(HttpMethods.PATCH).isEqualTo("PATCH");
|
||||
BDDAssertions.then(new HttpMethods().PATCH().getMethodName())
|
||||
.isEqualTo(HttpMethods.PATCH);
|
||||
BDDAssertions.then(new HttpMethods().PATCH().getMethodName()).isEqualTo(HttpMethods.PATCH);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void DELETE() {
|
||||
BDDAssertions.then(HttpMethods.DELETE).isEqualTo("DELETE");
|
||||
BDDAssertions.then(new HttpMethods().DELETE().getMethodName())
|
||||
.isEqualTo(HttpMethods.DELETE);
|
||||
BDDAssertions.then(new HttpMethods().DELETE().getMethodName()).isEqualTo(HttpMethods.DELETE);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void OPTIONS() {
|
||||
BDDAssertions.then(HttpMethods.OPTIONS).isEqualTo("OPTIONS");
|
||||
BDDAssertions.then(new HttpMethods().OPTIONS().getMethodName())
|
||||
.isEqualTo(HttpMethods.OPTIONS);
|
||||
BDDAssertions.then(new HttpMethods().OPTIONS().getMethodName()).isEqualTo(HttpMethods.OPTIONS);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void TRACE() {
|
||||
BDDAssertions.then(HttpMethods.TRACE).isEqualTo("TRACE");
|
||||
BDDAssertions.then(new HttpMethods().TRACE().getMethodName())
|
||||
.isEqualTo(HttpMethods.TRACE);
|
||||
BDDAssertions.then(new HttpMethods().TRACE().getMethodName()).isEqualTo(HttpMethods.TRACE);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -32,16 +32,13 @@ class MediaTypesTests {
|
||||
|
||||
@Test
|
||||
public void APPLICATION_ATOM_XML() {
|
||||
BDDAssertions.then(MediaTypes.APPLICATION_ATOM_XML)
|
||||
.isEqualTo("application/atom+xml");
|
||||
BDDAssertions.then(new MediaTypes().applicationAtomXml())
|
||||
.isEqualTo(MediaTypes.APPLICATION_ATOM_XML);
|
||||
BDDAssertions.then(MediaTypes.APPLICATION_ATOM_XML).isEqualTo("application/atom+xml");
|
||||
BDDAssertions.then(new MediaTypes().applicationAtomXml()).isEqualTo(MediaTypes.APPLICATION_ATOM_XML);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void APPLICATION_FORM_URLENCODED() {
|
||||
BDDAssertions.then(MediaTypes.APPLICATION_FORM_URLENCODED)
|
||||
.isEqualTo("application/x-www-form-urlencoded");
|
||||
BDDAssertions.then(MediaTypes.APPLICATION_FORM_URLENCODED).isEqualTo("application/x-www-form-urlencoded");
|
||||
BDDAssertions.then(new MediaTypes().applicationFormUrlencoded())
|
||||
.isEqualTo(MediaTypes.APPLICATION_FORM_URLENCODED);
|
||||
}
|
||||
@@ -49,46 +46,37 @@ class MediaTypesTests {
|
||||
@Test
|
||||
public void APPLICATION_JSON() {
|
||||
BDDAssertions.then(MediaTypes.APPLICATION_JSON).isEqualTo("application/json");
|
||||
BDDAssertions.then(new MediaTypes().applicationJson())
|
||||
.isEqualTo(MediaTypes.APPLICATION_JSON);
|
||||
BDDAssertions.then(new MediaTypes().applicationJson()).isEqualTo(MediaTypes.APPLICATION_JSON);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void APPLICATION_JSON_UTF8() {
|
||||
BDDAssertions.then(MediaTypes.APPLICATION_JSON_UTF8)
|
||||
.isEqualTo("application/json;charset=UTF-8");
|
||||
BDDAssertions.then(new MediaTypes().applicationJsonUtf8())
|
||||
.isEqualTo(MediaTypes.APPLICATION_JSON_UTF8);
|
||||
BDDAssertions.then(MediaTypes.APPLICATION_JSON_UTF8).isEqualTo("application/json;charset=UTF-8");
|
||||
BDDAssertions.then(new MediaTypes().applicationJsonUtf8()).isEqualTo(MediaTypes.APPLICATION_JSON_UTF8);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void APPLICATION_OCTET_STREAM() {
|
||||
BDDAssertions.then(MediaTypes.APPLICATION_OCTET_STREAM)
|
||||
.isEqualTo("application/octet-stream");
|
||||
BDDAssertions.then(new MediaTypes().applicationOctetStream())
|
||||
.isEqualTo(MediaTypes.APPLICATION_OCTET_STREAM);
|
||||
BDDAssertions.then(MediaTypes.APPLICATION_OCTET_STREAM).isEqualTo("application/octet-stream");
|
||||
BDDAssertions.then(new MediaTypes().applicationOctetStream()).isEqualTo(MediaTypes.APPLICATION_OCTET_STREAM);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void APPLICATION_PDF() {
|
||||
BDDAssertions.then(MediaTypes.APPLICATION_PDF).isEqualTo("application/pdf");
|
||||
BDDAssertions.then(new MediaTypes().applicationPdf())
|
||||
.isEqualTo(MediaTypes.APPLICATION_PDF);
|
||||
BDDAssertions.then(new MediaTypes().applicationPdf()).isEqualTo(MediaTypes.APPLICATION_PDF);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void APPLICATION_XHTML_XML() {
|
||||
BDDAssertions.then(MediaTypes.APPLICATION_XHTML_XML)
|
||||
.isEqualTo("application/xhtml+xml");
|
||||
BDDAssertions.then(new MediaTypes().applicationXhtmlXml())
|
||||
.isEqualTo(MediaTypes.APPLICATION_XHTML_XML);
|
||||
BDDAssertions.then(MediaTypes.APPLICATION_XHTML_XML).isEqualTo("application/xhtml+xml");
|
||||
BDDAssertions.then(new MediaTypes().applicationXhtmlXml()).isEqualTo(MediaTypes.APPLICATION_XHTML_XML);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void APPLICATION_XML() {
|
||||
BDDAssertions.then(MediaTypes.APPLICATION_XML).isEqualTo("application/xml");
|
||||
BDDAssertions.then(new MediaTypes().applicationXml())
|
||||
.isEqualTo(MediaTypes.APPLICATION_XML);
|
||||
BDDAssertions.then(new MediaTypes().applicationXml()).isEqualTo(MediaTypes.APPLICATION_XML);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -111,10 +99,8 @@ class MediaTypesTests {
|
||||
|
||||
@Test
|
||||
public void MULTIPART_FORM_DATA() {
|
||||
BDDAssertions.then(MediaTypes.MULTIPART_FORM_DATA)
|
||||
.isEqualTo("multipart/form-data");
|
||||
BDDAssertions.then(new MediaTypes().multipartFormData())
|
||||
.isEqualTo(MediaTypes.MULTIPART_FORM_DATA);
|
||||
BDDAssertions.then(MediaTypes.MULTIPART_FORM_DATA).isEqualTo("multipart/form-data");
|
||||
BDDAssertions.then(new MediaTypes().multipartFormData()).isEqualTo(MediaTypes.MULTIPART_FORM_DATA);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -126,8 +112,7 @@ class MediaTypesTests {
|
||||
@Test
|
||||
public void TEXT_MARKDOWN() {
|
||||
BDDAssertions.then(MediaTypes.TEXT_MARKDOWN).isEqualTo("text/markdown");
|
||||
BDDAssertions.then(new MediaTypes().textMarkdown())
|
||||
.isEqualTo(MediaTypes.TEXT_MARKDOWN);
|
||||
BDDAssertions.then(new MediaTypes().textMarkdown()).isEqualTo(MediaTypes.TEXT_MARKDOWN);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -26,8 +26,7 @@ class MessagingHeadersTests {
|
||||
|
||||
@Test
|
||||
public void MESSAGING_CONTENT_TYPE() {
|
||||
BDDAssertions.then(MessagingHeaders.MESSAGING_CONTENT_TYPE)
|
||||
.isEqualTo("contentType");
|
||||
BDDAssertions.then(MessagingHeaders.MESSAGING_CONTENT_TYPE).isEqualTo("contentType");
|
||||
BDDAssertions.then(new MessagingHeaders().messagingContentType())
|
||||
.isEqualTo(MessagingHeaders.MESSAGING_CONTENT_TYPE);
|
||||
}
|
||||
|
||||
@@ -90,8 +90,7 @@ public class XegerTest {
|
||||
List<String> secondRegexList = generateRegex(generator2, 100);
|
||||
|
||||
for (int i = 0; i < firstRegexList.size(); i++) {
|
||||
assertEquals("Index mismatch: " + i, firstRegexList.get(i),
|
||||
secondRegexList.get(i));
|
||||
assertEquals("Index mismatch: " + i, firstRegexList.get(i), secondRegexList.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user