All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.mjeanroy.restassert.unit.api.cookie.JavaxCookieAssert 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 JavaxCookieAssert {

	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 JavaxCookieAssert() {
	}

	/**
	 * @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(javax.servlet.http.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, javax.servlet.http.Cookie actual, java.lang.String domain) {
		check(message, assertions.hasDomain(com.github.mjeanroy.restassert.core.internal.data.bindings.javax.JavaxCookie.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(javax.servlet.http.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, javax.servlet.http.Cookie actual, long maxAge) {
		check(message, assertions.hasMaxAge(com.github.mjeanroy.restassert.core.internal.data.bindings.javax.JavaxCookie.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(javax.servlet.http.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, javax.servlet.http.Cookie actual, java.lang.String name) {
		check(message, assertions.hasName(com.github.mjeanroy.restassert.core.internal.data.bindings.javax.JavaxCookie.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(javax.servlet.http.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, javax.servlet.http.Cookie actual, java.lang.String path) {
		check(message, assertions.hasPath(com.github.mjeanroy.restassert.core.internal.data.bindings.javax.JavaxCookie.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(javax.servlet.http.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, javax.servlet.http.Cookie actual, java.lang.String value) {
		check(message, assertions.hasValue(com.github.mjeanroy.restassert.core.internal.data.bindings.javax.JavaxCookie.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(javax.servlet.http.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, javax.servlet.http.Cookie actual) {
		check(message, assertions.isHttpOnly(com.github.mjeanroy.restassert.core.internal.data.bindings.javax.JavaxCookie.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(javax.servlet.http.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, javax.servlet.http.Cookie actual) {
		check(message, assertions.isNotHttpOnly(com.github.mjeanroy.restassert.core.internal.data.bindings.javax.JavaxCookie.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(javax.servlet.http.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, javax.servlet.http.Cookie actual) {
		check(message, assertions.isNotSecured(com.github.mjeanroy.restassert.core.internal.data.bindings.javax.JavaxCookie.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(javax.servlet.http.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, javax.servlet.http.Cookie actual) {
		check(message, assertions.isSecured(com.github.mjeanroy.restassert.core.internal.data.bindings.javax.JavaxCookie.create(actual)));
	}

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy