Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* The MIT License (MIT)
*
* Copyright (c) 2014-2018 Mickael Jeanroy
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.github.mjeanroy.restassert.unit.api.cookie;
import static com.github.mjeanroy.restassert.unit.api.AssertUtil.check;
/**
* Static assertions.
* This class is generated.
*/
public final class ApacheHttpCookieAssert {
private static final com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions assertions = com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions.instance();
// Private constructor to ensure no instantiation
private ApacheHttpCookieAssert() {
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#hasDomain
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertHasDomain(org.apache.http.cookie.Cookie actual, java.lang.String domain) {
assertHasDomain(null, actual, domain);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#hasDomain
* Throws an {@link AssertionError} with given message if test failed.
*
* @param message The identifying message for the {@link AssertionError}.
* @param actual Actual object.
*/
public static void assertHasDomain(String message, org.apache.http.cookie.Cookie actual, java.lang.String domain) {
check(message, assertions.hasDomain(com.github.mjeanroy.restassert.core.internal.data.bindings.apache.ApacheHttpCookie.create(actual), domain));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#hasMaxAge
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertHasMaxAge(org.apache.http.cookie.Cookie actual, long maxAge) {
assertHasMaxAge(null, actual, maxAge);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#hasMaxAge
* Throws an {@link AssertionError} with given message if test failed.
*
* @param message The identifying message for the {@link AssertionError}.
* @param actual Actual object.
*/
public static void assertHasMaxAge(String message, org.apache.http.cookie.Cookie actual, long maxAge) {
check(message, assertions.hasMaxAge(com.github.mjeanroy.restassert.core.internal.data.bindings.apache.ApacheHttpCookie.create(actual), maxAge));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#hasName
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertHasName(org.apache.http.cookie.Cookie actual, java.lang.String name) {
assertHasName(null, actual, name);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#hasName
* Throws an {@link AssertionError} with given message if test failed.
*
* @param message The identifying message for the {@link AssertionError}.
* @param actual Actual object.
*/
public static void assertHasName(String message, org.apache.http.cookie.Cookie actual, java.lang.String name) {
check(message, assertions.hasName(com.github.mjeanroy.restassert.core.internal.data.bindings.apache.ApacheHttpCookie.create(actual), name));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#hasPath
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertHasPath(org.apache.http.cookie.Cookie actual, java.lang.String path) {
assertHasPath(null, actual, path);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#hasPath
* Throws an {@link AssertionError} with given message if test failed.
*
* @param message The identifying message for the {@link AssertionError}.
* @param actual Actual object.
*/
public static void assertHasPath(String message, org.apache.http.cookie.Cookie actual, java.lang.String path) {
check(message, assertions.hasPath(com.github.mjeanroy.restassert.core.internal.data.bindings.apache.ApacheHttpCookie.create(actual), path));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#hasValue
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertHasValue(org.apache.http.cookie.Cookie actual, java.lang.String value) {
assertHasValue(null, actual, value);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#hasValue
* Throws an {@link AssertionError} with given message if test failed.
*
* @param message The identifying message for the {@link AssertionError}.
* @param actual Actual object.
*/
public static void assertHasValue(String message, org.apache.http.cookie.Cookie actual, java.lang.String value) {
check(message, assertions.hasValue(com.github.mjeanroy.restassert.core.internal.data.bindings.apache.ApacheHttpCookie.create(actual), value));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#isHttpOnly
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertIsHttpOnly(org.apache.http.cookie.Cookie actual) {
assertIsHttpOnly(null, actual);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#isHttpOnly
* Throws an {@link AssertionError} with given message if test failed.
*
* @param message The identifying message for the {@link AssertionError}.
* @param actual Actual object.
*/
public static void assertIsHttpOnly(String message, org.apache.http.cookie.Cookie actual) {
check(message, assertions.isHttpOnly(com.github.mjeanroy.restassert.core.internal.data.bindings.apache.ApacheHttpCookie.create(actual)));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#isNotHttpOnly
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertIsNotHttpOnly(org.apache.http.cookie.Cookie actual) {
assertIsNotHttpOnly(null, actual);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#isNotHttpOnly
* Throws an {@link AssertionError} with given message if test failed.
*
* @param message The identifying message for the {@link AssertionError}.
* @param actual Actual object.
*/
public static void assertIsNotHttpOnly(String message, org.apache.http.cookie.Cookie actual) {
check(message, assertions.isNotHttpOnly(com.github.mjeanroy.restassert.core.internal.data.bindings.apache.ApacheHttpCookie.create(actual)));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#isNotSecured
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertIsNotSecured(org.apache.http.cookie.Cookie actual) {
assertIsNotSecured(null, actual);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#isNotSecured
* Throws an {@link AssertionError} with given message if test failed.
*
* @param message The identifying message for the {@link AssertionError}.
* @param actual Actual object.
*/
public static void assertIsNotSecured(String message, org.apache.http.cookie.Cookie actual) {
check(message, assertions.isNotSecured(com.github.mjeanroy.restassert.core.internal.data.bindings.apache.ApacheHttpCookie.create(actual)));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#isSecured
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertIsSecured(org.apache.http.cookie.Cookie actual) {
assertIsSecured(null, actual);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.CookieAssertions#isSecured
* Throws an {@link AssertionError} with given message if test failed.
*
* @param message The identifying message for the {@link AssertionError}.
* @param actual Actual object.
*/
public static void assertIsSecured(String message, org.apache.http.cookie.Cookie actual) {
check(message, assertions.isSecured(com.github.mjeanroy.restassert.core.internal.data.bindings.apache.ApacheHttpCookie.create(actual)));
}
}