com.github.mjeanroy.restassert.assertj.api.AbstractCookieAssert Maven / Gradle / Ivy
/**
* 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.assertj.api;
import org.assertj.core.api.AbstractAssert;
/**
* Base class for all implementations of assertions for {@link com.github.mjeanroy.restassert.core.internal.data.Cookie}.
*
* @param the "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation"
* for more details.
*
* This class is generated.
*/
public abstract class AbstractCookieAssert> extends AbstractAssert {
private final com.github.mjeanroy.restassert.assertj.internal.Cookies assertions = com.github.mjeanroy.restassert.assertj.internal.Cookies.instance();
protected AbstractCookieAssert(com.github.mjeanroy.restassert.core.internal.data.Cookie actual, Class> selfType) {
super(actual, selfType);
}
public S hasDomain(java.lang.String domain) {
assertions.assertHasDomain(info, actual, domain);
return myself;
}
public S hasMaxAge(long maxAge) {
assertions.assertHasMaxAge(info, actual, maxAge);
return myself;
}
public S hasName(java.lang.String name) {
assertions.assertHasName(info, actual, name);
return myself;
}
public S hasPath(java.lang.String path) {
assertions.assertHasPath(info, actual, path);
return myself;
}
public S hasValue(java.lang.String value) {
assertions.assertHasValue(info, actual, value);
return myself;
}
public S isHttpOnly() {
assertions.assertIsHttpOnly(info, actual);
return myself;
}
public S isNotHttpOnly() {
assertions.assertIsNotHttpOnly(info, actual);
return myself;
}
public S isNotSecured() {
assertions.assertIsNotSecured(info, actual);
return myself;
}
public S isSecured() {
assertions.assertIsSecured(info, actual);
return myself;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy