com.github.mjeanroy.restassert.unit.api.cookie.CookieAssert Maven / Gradle / Ivy
The newest version!
/**
* 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 CookieAssert {
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 CookieAssert() {
}
/**
* @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(com.github.mjeanroy.restassert.core.internal.data.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, com.github.mjeanroy.restassert.core.internal.data.Cookie actual, java.lang.String domain) {
check(message, assertions.hasDomain(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(com.github.mjeanroy.restassert.core.internal.data.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, com.github.mjeanroy.restassert.core.internal.data.Cookie actual, long maxAge) {
check(message, assertions.hasMaxAge(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(com.github.mjeanroy.restassert.core.internal.data.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, com.github.mjeanroy.restassert.core.internal.data.Cookie actual, java.lang.String name) {
check(message, assertions.hasName(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(com.github.mjeanroy.restassert.core.internal.data.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, com.github.mjeanroy.restassert.core.internal.data.Cookie actual, java.lang.String path) {
check(message, assertions.hasPath(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(com.github.mjeanroy.restassert.core.internal.data.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, com.github.mjeanroy.restassert.core.internal.data.Cookie actual, java.lang.String value) {
check(message, assertions.hasValue(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(com.github.mjeanroy.restassert.core.internal.data.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, com.github.mjeanroy.restassert.core.internal.data.Cookie actual) {
check(message, assertions.isHttpOnly(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(com.github.mjeanroy.restassert.core.internal.data.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, com.github.mjeanroy.restassert.core.internal.data.Cookie actual) {
check(message, assertions.isNotHttpOnly(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(com.github.mjeanroy.restassert.core.internal.data.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, com.github.mjeanroy.restassert.core.internal.data.Cookie actual) {
check(message, assertions.isNotSecured(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(com.github.mjeanroy.restassert.core.internal.data.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, com.github.mjeanroy.restassert.core.internal.data.Cookie actual) {
check(message, assertions.isSecured(actual));
}
}