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.json;
import static com.github.mjeanroy.restassert.unit.api.AssertUtil.check;
/**
* Static assertions.
* This class is generated.
*/
public final class JsonAssert {
private static final com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions assertions = com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions.instance();
// Private constructor to ensure no instantiation
private JsonAssert() {
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#contains
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertContains(java.lang.String actual, java.lang.String key, java.lang.String... other) {
assertContains(null, actual, key, other);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#contains
* 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 assertContains(String message, java.lang.String actual, java.lang.String key, java.lang.String... other) {
check(message, assertions.contains(actual, key, other));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#contains
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertContains(java.lang.String actual, java.lang.Iterable keys) {
assertContains(null, actual, keys);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#contains
* 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 assertContains(String message, java.lang.String actual, java.lang.Iterable keys) {
check(message, assertions.contains(actual, keys));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#containsEntries
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertContainsEntries(java.lang.String actual, com.github.mjeanroy.restassert.core.internal.data.JsonEntry entry, com.github.mjeanroy.restassert.core.internal.data.JsonEntry... other) {
assertContainsEntries(null, actual, entry, other);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#containsEntries
* 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 assertContainsEntries(String message, java.lang.String actual, com.github.mjeanroy.restassert.core.internal.data.JsonEntry entry, com.github.mjeanroy.restassert.core.internal.data.JsonEntry... other) {
check(message, assertions.containsEntries(actual, entry, other));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#containsEntries
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertContainsEntries(java.lang.String actual, java.lang.Iterable entries) {
assertContainsEntries(null, actual, entries);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#containsEntries
* 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 assertContainsEntries(String message, java.lang.String actual, java.lang.Iterable entries) {
check(message, assertions.containsEntries(actual, entries));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualTo
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertIsEqualTo(java.lang.String actual, java.nio.file.Path path) {
assertIsEqualTo(null, actual, path);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualTo
* 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 assertIsEqualTo(String message, java.lang.String actual, java.nio.file.Path path) {
check(message, assertions.isEqualTo(actual, path));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualTo
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertIsEqualTo(java.lang.String actual, java.net.URL url) {
assertIsEqualTo(null, actual, url);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualTo
* 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 assertIsEqualTo(String message, java.lang.String actual, java.net.URL url) {
check(message, assertions.isEqualTo(actual, url));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualTo
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertIsEqualTo(java.lang.String actual, java.lang.String expected) {
assertIsEqualTo(null, actual, expected);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualTo
* 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 assertIsEqualTo(String message, java.lang.String actual, java.lang.String expected) {
check(message, assertions.isEqualTo(actual, expected));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualTo
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertIsEqualTo(java.lang.String actual, java.io.File file) {
assertIsEqualTo(null, actual, file);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualTo
* 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 assertIsEqualTo(String message, java.lang.String actual, java.io.File file) {
check(message, assertions.isEqualTo(actual, file));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualTo
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertIsEqualTo(java.lang.String actual, java.net.URI uri) {
assertIsEqualTo(null, actual, uri);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualTo
* 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 assertIsEqualTo(String message, java.lang.String actual, java.net.URI uri) {
check(message, assertions.isEqualTo(actual, uri));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualToIgnoring
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertIsEqualToIgnoring(java.lang.String actual, java.io.File file, java.lang.Iterable entries) {
assertIsEqualToIgnoring(null, actual, file, entries);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualToIgnoring
* 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 assertIsEqualToIgnoring(String message, java.lang.String actual, java.io.File file, java.lang.Iterable entries) {
check(message, assertions.isEqualToIgnoring(actual, file, entries));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualToIgnoring
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertIsEqualToIgnoring(java.lang.String actual, java.nio.file.Path path, java.lang.Iterable entries) {
assertIsEqualToIgnoring(null, actual, path, entries);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualToIgnoring
* 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 assertIsEqualToIgnoring(String message, java.lang.String actual, java.nio.file.Path path, java.lang.Iterable entries) {
check(message, assertions.isEqualToIgnoring(actual, path, entries));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualToIgnoring
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertIsEqualToIgnoring(java.lang.String actual, java.net.URI uri, java.lang.Iterable entries) {
assertIsEqualToIgnoring(null, actual, uri, entries);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualToIgnoring
* 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 assertIsEqualToIgnoring(String message, java.lang.String actual, java.net.URI uri, java.lang.Iterable entries) {
check(message, assertions.isEqualToIgnoring(actual, uri, entries));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualToIgnoring
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertIsEqualToIgnoring(java.lang.String actual, java.lang.String expected, java.lang.Iterable entries) {
assertIsEqualToIgnoring(null, actual, expected, entries);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualToIgnoring
* 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 assertIsEqualToIgnoring(String message, java.lang.String actual, java.lang.String expected, java.lang.Iterable entries) {
check(message, assertions.isEqualToIgnoring(actual, expected, entries));
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualToIgnoring
* Throws an {@link AssertionError} with default message if test failed.
*
* @param actual Actual object.
*/
public static void assertIsEqualToIgnoring(java.lang.String actual, java.net.URL url, java.lang.Iterable entries) {
assertIsEqualToIgnoring(null, actual, url, entries);
}
/**
* @see com.github.mjeanroy.restassert.core.internal.assertions.JsonAssertions#isEqualToIgnoring
* 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 assertIsEqualToIgnoring(String message, java.lang.String actual, java.net.URL url, java.lang.Iterable entries) {
check(message, assertions.isEqualToIgnoring(actual, url, entries));
}
}