Index

A B C D E F G H I J M N O P Q R S T V W _ 
All Classes|All Packages

A

ACTUAL - Static variable in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
 
applyForPaths(Configuration, ConfigurationWhen.PathsParam) - Method in interface net.javacrumbs.jsonunit.core.ConfigurationWhen.ApplicableForPath
 
ARRAY - net.javacrumbs.jsonunit.core.internal.Node.NodeType
 
arrayElements() - Method in interface net.javacrumbs.jsonunit.core.internal.Node
 
arrayElements() - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonList
 
asBoolean() - Method in interface net.javacrumbs.jsonunit.core.internal.Node
 
asBoolean() - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonList
 
asPrefix() - Method in class net.javacrumbs.jsonunit.core.internal.Path
 
assertIntegralNumber() - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
 
assertType(Node.NodeType) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
 
asText() - Method in interface net.javacrumbs.jsonunit.core.internal.Node
 
asText() - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonList
 

B

BOOLEAN - net.javacrumbs.jsonunit.core.internal.Node.NodeType
 

C

COMPARING_ONLY_STRUCTURE - net.javacrumbs.jsonunit.core.Option
Deprecated.
Use IGNORING_VALUES option instead
Configuration - Class in net.javacrumbs.jsonunit.core
Comparison configuration.
Configuration(BigDecimal, Options, String) - Constructor for class net.javacrumbs.jsonunit.core.Configuration
Deprecated.
ConfigurationWhen - Class in net.javacrumbs.jsonunit.core
ConfigurationWhen.ApplicableForPath - Interface in net.javacrumbs.jsonunit.core
 
ConfigurationWhen.PathsParam - Class in net.javacrumbs.jsonunit.core
 
contains(Option) - Method in class net.javacrumbs.jsonunit.core.internal.Options
 
convertToJson(Object, String) - Static method in class net.javacrumbs.jsonunit.core.internal.JsonUtils
Converts object to JSON.
convertToJson(Object, String, boolean) - Static method in class net.javacrumbs.jsonunit.core.internal.JsonUtils
Converts object to JSON.
convertToNode(Object, String, boolean) - Method in class net.javacrumbs.jsonunit.core.internal.JohnzonNodeFactory
 
copy(String) - Method in class net.javacrumbs.jsonunit.core.internal.Path
 
create(Object, Object, String, String, Configuration) - Static method in class net.javacrumbs.jsonunit.core.internal.Diff
 
create(Object, Object, String, Path, Configuration) - Static method in class net.javacrumbs.jsonunit.core.internal.Diff
 
create(String) - Static method in class net.javacrumbs.jsonunit.core.internal.Path
 
create(String, String) - Static method in class net.javacrumbs.jsonunit.core.internal.Path
 
createInternal(Object, Object, String, Path, Configuration, String) - Static method in class net.javacrumbs.jsonunit.core.internal.Diff
 

D

decimalValue() - Method in interface net.javacrumbs.jsonunit.core.internal.Node
 
decimalValue() - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonList
 
describedAs(String) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Sets the description of this object.
diff(Difference, DifferenceContext) - Method in interface net.javacrumbs.jsonunit.core.listener.DifferenceListener
 
Diff - Class in net.javacrumbs.jsonunit.core.internal
Compares JSON structures.
Difference - Interface in net.javacrumbs.jsonunit.core.listener
Describes differences between documents.
Difference.Type - Enum in net.javacrumbs.jsonunit.core.listener
 
DifferenceContext - Interface in net.javacrumbs.jsonunit.core.listener
 
DifferenceListener - Interface in net.javacrumbs.jsonunit.core.listener
Can listen on differences between documents.
differences() - Method in class net.javacrumbs.jsonunit.core.internal.Diff
 
DIFFERENT - net.javacrumbs.jsonunit.core.listener.Difference.Type
 
doConvertValue(Object) - Method in class net.javacrumbs.jsonunit.core.internal.JohnzonNodeFactory
 
dummyDifferenceListener() - Static method in class net.javacrumbs.jsonunit.core.Configuration
 

E

element(int) - Method in interface net.javacrumbs.jsonunit.core.internal.Node
 
element(int) - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonList
 
empty() - Static method in class net.javacrumbs.jsonunit.core.Configuration
Returns an empty configuration.
empty() - Static method in class net.javacrumbs.jsonunit.core.internal.Options
 
EXTRA - net.javacrumbs.jsonunit.core.listener.Difference.Type
 

F

failIfDifferent() - Method in class net.javacrumbs.jsonunit.core.internal.Diff
 
failIfDifferent(String) - Method in class net.javacrumbs.jsonunit.core.internal.Diff
 
failOnType(Node, String) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
 
fields() - Method in interface net.javacrumbs.jsonunit.core.internal.Node
 
fields() - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonList
 

G

get(String) - Method in interface net.javacrumbs.jsonunit.core.internal.Node
 
get(String) - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonList
 
getActual() - Method in interface net.javacrumbs.jsonunit.core.listener.Difference
Actual node serialized as Map<String, Object> for objects, BigDecimal for numbers, ...
getActualPath() - Method in interface net.javacrumbs.jsonunit.core.listener.Difference
Path to the difference
getActualSource() - Method in interface net.javacrumbs.jsonunit.core.listener.DifferenceContext
Actual source serialized as Map<String, Object> for objects, BigDecimal for numbers, ...
getConfiguration() - Method in interface net.javacrumbs.jsonunit.core.listener.DifferenceContext
Configuration used for comparison.
getDescription() - Method in enum net.javacrumbs.jsonunit.core.internal.Node.NodeType
 
getDifferenceListener() - Method in class net.javacrumbs.jsonunit.core.Configuration
 
getExpected() - Method in interface net.javacrumbs.jsonunit.core.listener.Difference
Expected node serialized as Map<String, Object> for objects, BigDecimal for numbers, ...
getExpectedPath() - Method in interface net.javacrumbs.jsonunit.core.listener.Difference
Path to the expected element (may be different than actual path if IGNORE_ARRAY_ORDER is used)
getExpectedSource() - Method in interface net.javacrumbs.jsonunit.core.listener.DifferenceContext
Expected source serialized as Map<String, Object> for objects, BigDecimal for numbers, ...
getIgnorePlaceholder() - Method in class net.javacrumbs.jsonunit.core.Configuration
 
getJson() - Method in interface net.javacrumbs.jsonunit.core.internal.JsonSource
 
getKey() - Method in class net.javacrumbs.jsonunit.core.internal.Node.KeyValue
 
getMatcher(String) - Method in class net.javacrumbs.jsonunit.core.Configuration
 
getMatchingPaths() - Method in interface net.javacrumbs.jsonunit.core.internal.JsonSource
 
getNode(Object, String) - Static method in class net.javacrumbs.jsonunit.core.internal.JsonUtils
Returns node with given path.
getNode(Object, Path) - Static method in class net.javacrumbs.jsonunit.core.internal.JsonUtils
Returns node with given path.
getNodeType() - Method in interface net.javacrumbs.jsonunit.core.internal.Node
 
getNodeType() - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonList
 
getObjectMapper(boolean) - Method in interface net.javacrumbs.jsonunit.providers.Jackson2ObjectMapperProvider
Provides ObjectMapper
getOptions() - Method in class net.javacrumbs.jsonunit.core.Configuration
 
getOptions() - Method in class net.javacrumbs.jsonunit.core.internal.PathOption
 
getPathOptions() - Method in class net.javacrumbs.jsonunit.core.Configuration
 
getPathPrefix() - Method in interface net.javacrumbs.jsonunit.core.internal.JsonSource
 
getPathPrefix(Object) - Static method in class net.javacrumbs.jsonunit.core.internal.JsonUtils
 
getPaths() - Method in class net.javacrumbs.jsonunit.core.internal.PathOption
 
getPathsToBeIgnored() - Method in class net.javacrumbs.jsonunit.core.Configuration
 
getTolerance() - Method in class net.javacrumbs.jsonunit.core.Configuration
 
getType() - Method in interface net.javacrumbs.jsonunit.core.listener.Difference
Type of the difference
getValue() - Method in interface net.javacrumbs.jsonunit.core.internal.Node
 
getValue() - Method in class net.javacrumbs.jsonunit.core.internal.Node.KeyValue
 
getValue() - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonList
 
getValue(Node) - Method in interface net.javacrumbs.jsonunit.core.internal.Node.ValueExtractor
 
getWrappedNode() - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonList
 
getWrappedNode() - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonMap
 

H

hasSameStructureAs(Object) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Compares JSON structure.

I

IGNORING_ARRAY_ORDER - net.javacrumbs.jsonunit.core.Option
When comparing arrays, ignores array order.
IGNORING_EXTRA_ARRAY_ITEMS - net.javacrumbs.jsonunit.core.Option
Passes even if array in compared document has more items than expected.
IGNORING_EXTRA_FIELDS - net.javacrumbs.jsonunit.core.Option
Ignores extra fields in the actual value.
IGNORING_VALUES - net.javacrumbs.jsonunit.core.Option
Ignores values but fails if value types are different.
InternalMatcher - Class in net.javacrumbs.jsonunit.core.internal.matchers
Internal class, please do not use outside the library
InternalMatcher(Object, Path, String, Configuration) - Constructor for class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
 
InternalMatcher.ArrayMatcher - Class in net.javacrumbs.jsonunit.core.internal.matchers
Array assertions
isAbsent() - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Fails if the node exists.
isArray() - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Fails if the selected JSON is not an Array or is not present.
isEmpty() - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher.ArrayMatcher
 
isEqualTo(Object) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
 
isIntegralNumber() - Method in interface net.javacrumbs.jsonunit.core.internal.Node
Returns true if the value is an integer.
isMissingNode() - Method in interface net.javacrumbs.jsonunit.core.internal.Node
 
isMissingNode() - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonList
 
isNotEmpty() - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher.ArrayMatcher
 
isNotEqualTo(Object) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Fails if compared documents are equal.
isNotNull() - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
 
isNull() - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
 
isNull() - Method in interface net.javacrumbs.jsonunit.core.internal.Node
 
isNull() - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonList
 
isObject() - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Fails if the selected JSON is not an Object or is not present.
isPreferredFor(Object) - Method in class net.javacrumbs.jsonunit.core.internal.JohnzonNodeFactory
 
isPresent() - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Fails if the node is missing.
isPresent(String) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
 
isString() - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Fails if the selected JSON is not a String or is not present.
isStringEqualTo(String) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Fails if the selected JSON is not a String or is not present or the value is not equal to expected value.

J

Jackson2ObjectMapperProvider - Interface in net.javacrumbs.jsonunit.providers
Interface for customizing Jackson 2 ObjectMapper.
JohnzonNodeFactory - Class in net.javacrumbs.jsonunit.core.internal
 
JohnzonNodeFactory() - Constructor for class net.javacrumbs.jsonunit.core.internal.JohnzonNodeFactory
 
jsonSource(Object, String) - Static method in class net.javacrumbs.jsonunit.core.internal.JsonUtils
 
jsonSource(Object, String, List<String>) - Static method in class net.javacrumbs.jsonunit.core.internal.JsonUtils
 
JsonSource - Interface in net.javacrumbs.jsonunit.core.internal
For internal use only!!! Wraps JSON source and its description
JsonUtils - Class in net.javacrumbs.jsonunit.core.internal
Internal utility class to parse JSON values.
JsonUtils() - Constructor for class net.javacrumbs.jsonunit.core.internal.JsonUtils
 

M

matches(Matcher<?>) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Matches the node using Hamcrest matcher.
MISSING - net.javacrumbs.jsonunit.core.listener.Difference.Type
 
MISSING_NODE - Static variable in interface net.javacrumbs.jsonunit.core.internal.Node
 
missingNode() - Static method in class net.javacrumbs.jsonunit.core.internal.JsonUtils
 

N

net.javacrumbs.jsonunit.core - package net.javacrumbs.jsonunit.core
 
net.javacrumbs.jsonunit.core.internal - package net.javacrumbs.jsonunit.core.internal
 
net.javacrumbs.jsonunit.core.internal.matchers - package net.javacrumbs.jsonunit.core.internal.matchers
 
net.javacrumbs.jsonunit.core.listener - package net.javacrumbs.jsonunit.core.listener
 
net.javacrumbs.jsonunit.core.util - package net.javacrumbs.jsonunit.core.util
 
net.javacrumbs.jsonunit.providers - package net.javacrumbs.jsonunit.providers
 
newParseException(String, Reader, Exception) - Method in class net.javacrumbs.jsonunit.core.internal.JohnzonNodeFactory
 
node(String) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Creates an assert object that only compares given node.
Node - Interface in net.javacrumbs.jsonunit.core.internal
For internal use only!!! Abstract node representation.
Node.JsonList - Class in net.javacrumbs.jsonunit.core.internal
 
Node.JsonMap - Class in net.javacrumbs.jsonunit.core.internal
 
Node.KeyValue - Class in net.javacrumbs.jsonunit.core.internal
 
Node.NodeType - Enum in net.javacrumbs.jsonunit.core.internal
 
Node.ValueExtractor - Interface in net.javacrumbs.jsonunit.core.internal
 
nodeAbsent(Object, String, Configuration) - Static method in class net.javacrumbs.jsonunit.core.internal.JsonUtils
 
nodeAbsent(Object, Path, Configuration) - Static method in class net.javacrumbs.jsonunit.core.internal.JsonUtils
 
nodeExists(Object, String) - Static method in class net.javacrumbs.jsonunit.core.internal.JsonUtils
Deprecated.
NULL - net.javacrumbs.jsonunit.core.internal.Node.NodeType
 
nullNode() - Method in class net.javacrumbs.jsonunit.core.internal.JohnzonNodeFactory
 
NUMBER - net.javacrumbs.jsonunit.core.internal.Node.NodeType
 

O

OBJECT - net.javacrumbs.jsonunit.core.internal.Node.NodeType
 
ofLength(int) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher.ArrayMatcher
Fails if the array has different length.
Option - Enum in net.javacrumbs.jsonunit.core
Comparison options.
Options - Class in net.javacrumbs.jsonunit.core.internal
Options enum set wrapper
Options(Option, Option...) - Constructor for class net.javacrumbs.jsonunit.core.internal.Options
 

P

ParametrizedMatcher - Interface in net.javacrumbs.jsonunit.core
Implement this interface to use with parametrized matchers.
path(String) - Static method in class net.javacrumbs.jsonunit.core.ConfigurationWhen
Adds path conditions.
Path - Class in net.javacrumbs.jsonunit.core.internal
 
PathOption - Class in net.javacrumbs.jsonunit.core.internal
 
PathOption(List<String>, Set<Option>, boolean) - Constructor for class net.javacrumbs.jsonunit.core.internal.PathOption
 
paths(String...) - Static method in class net.javacrumbs.jsonunit.core.ConfigurationWhen
 

Q

quoteTextValue(Object) - Static method in class net.javacrumbs.jsonunit.core.internal.Diff
If the value is String than it's quoted in ".

R

readValue(Reader, String, boolean) - Method in class net.javacrumbs.jsonunit.core.internal.JohnzonNodeFactory
 
resource(String) - Static method in class net.javacrumbs.jsonunit.core.util.ResourceUtils
Helper method to read a classpath resource.
ResourceUtils - Class in net.javacrumbs.jsonunit.core.util
Resource reading utility
ResourceUtils() - Constructor for class net.javacrumbs.jsonunit.core.util.ResourceUtils
 
root() - Static method in class net.javacrumbs.jsonunit.core.internal.Path
 
rootPath() - Static method in class net.javacrumbs.jsonunit.core.ConfigurationWhen
 

S

setParameter(String) - Method in interface net.javacrumbs.jsonunit.core.ParametrizedMatcher
 
shouldIgnore(String) - Method in class net.javacrumbs.jsonunit.core.Configuration
 
similar() - Method in class net.javacrumbs.jsonunit.core.internal.Diff
 
size() - Method in interface net.javacrumbs.jsonunit.core.internal.Node
Array length
size() - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonList
 
STRING - net.javacrumbs.jsonunit.core.internal.Node.NodeType
 

T

thatContains(Object) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher.ArrayMatcher
 
then(Option, Option...) - Static method in class net.javacrumbs.jsonunit.core.ConfigurationWhen
Applies specified options to the object.
thenIgnore() - Static method in class net.javacrumbs.jsonunit.core.ConfigurationWhen
Marks that the object should be ignored.
thenNot(Option, Option...) - Static method in class net.javacrumbs.jsonunit.core.ConfigurationWhen
Explicitly remove options from the objects.
to(String) - Method in class net.javacrumbs.jsonunit.core.internal.Path
 
toString() - Method in class net.javacrumbs.jsonunit.core.internal.Diff
 
toString() - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonMap
 
toString() - Method in class net.javacrumbs.jsonunit.core.internal.Node.KeyValue
 
toString() - Method in class net.javacrumbs.jsonunit.core.internal.Path
 
TREATING_NULL_AS_ABSENT - net.javacrumbs.jsonunit.core.Option
Treats null nodes in actual value as absent.

V

valueOf(String) - Static method in enum net.javacrumbs.jsonunit.core.internal.Node.NodeType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.javacrumbs.jsonunit.core.listener.Difference.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.javacrumbs.jsonunit.core.Option
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.javacrumbs.jsonunit.core.internal.Node.NodeType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Method in class net.javacrumbs.jsonunit.core.internal.Options
 
values() - Static method in enum net.javacrumbs.jsonunit.core.listener.Difference.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.javacrumbs.jsonunit.core.Option
Returns an array containing the constants of this enum type, in the order they are declared.
valueToNode(Object) - Method in class net.javacrumbs.jsonunit.core.internal.JohnzonNodeFactory
 
valueToNode(Object) - Static method in class net.javacrumbs.jsonunit.core.internal.JsonUtils
Converts value to Json node.

W

when(ConfigurationWhen.PathsParam, ConfigurationWhen.ApplicableForPath...) - Method in class net.javacrumbs.jsonunit.core.Configuration
Defines general comparison options.
when(ConfigurationWhen.PathsParam, ConfigurationWhen.ApplicableForPath...) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Sets advanced/local options.
when(Option, Option...) - Method in class net.javacrumbs.jsonunit.core.Configuration
Adds comparison options.
whenIgnoringPaths(String...) - Method in class net.javacrumbs.jsonunit.core.Configuration
Makes JsonUnit ignore the specified paths in the actual value.
whenIgnoringPaths(String...) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
 
whenIgnoringPaths(Collection<String>) - Method in class net.javacrumbs.jsonunit.core.Configuration
 
with(Option, Option...) - Method in class net.javacrumbs.jsonunit.core.internal.Options
 
withDifferenceListener(DifferenceListener) - Method in class net.javacrumbs.jsonunit.core.Configuration
Sets difference listener
withDifferenceListener(DifferenceListener) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
 
withIgnorePlaceholder(String) - Method in class net.javacrumbs.jsonunit.core.Configuration
Sets ignore placeholder.
withIgnorePlaceholder(String) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Sets the placeholder that can be used to ignore values.
withMatcher(String, Matcher<?>) - Method in class net.javacrumbs.jsonunit.core.Configuration
Adds a matcher to be used in ${json-unit.matches:matcherName} macro.
withMatcher(String, Matcher<?>) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Adds a internalMatcher to be used in ${json-unit.matches:matcherName} macro.
withOptions(Options) - Method in class net.javacrumbs.jsonunit.core.Configuration
Sets comparison options.
withOptions(Option, Option...) - Method in class net.javacrumbs.jsonunit.core.Configuration
Adds comparison options.
withOptions(Option, Option...) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Sets options changing comparison behavior.
without(Option) - Method in class net.javacrumbs.jsonunit.core.internal.Options
 
withPathOptions(List<PathOption>) - Method in class net.javacrumbs.jsonunit.core.Configuration
 
withPaths(List<String>) - Method in class net.javacrumbs.jsonunit.core.internal.PathOption
 
withTolerance(double) - Method in class net.javacrumbs.jsonunit.core.Configuration
Sets numerical comparison tolerance.
withTolerance(double) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Sets the tolerance for floating number comparison.
withTolerance(BigDecimal) - Method in class net.javacrumbs.jsonunit.core.Configuration
Sets numerical comparison tolerance.
withTolerance(BigDecimal) - Method in class net.javacrumbs.jsonunit.core.internal.matchers.InternalMatcher
Sets the tolerance for floating number comparison.
wrapDeserializedObject(Object) - Static method in class net.javacrumbs.jsonunit.core.internal.JsonUtils
Wraps deserialized object - supports null, String, numbers, maps, lists, ...

_

___do_not_implement_this_interface_seriously() - Method in interface net.javacrumbs.jsonunit.core.internal.Node
 
___do_not_implement_this_interface_seriously() - Method in class net.javacrumbs.jsonunit.core.internal.Node.JsonList
 
A B C D E F G H I J M N O P Q R S T V W _ 
All Classes|All Packages