Package org.openbravo.test.matchers.json
Class JSONMatchersTest
- java.lang.Object
-
- org.openbravo.test.matchers.json.JSONMatchersTest
-
public class JSONMatchersTest extends Object
Tests the correct behavior of the matchers exposed byJSONMatchers
-
-
Constructor Summary
Constructors Constructor Description JSONMatchersTest()
-
Method Summary
-
-
-
Method Detail
-
areEqual
public void areEqual()
-
innerObjectsAreEqual
public void innerObjectsAreEqual()
-
withPropsWithSameNumericalValueAreEqual
public void withPropsWithSameNumericalValueAreEqual()
-
withPropsWithSameTimestampValueAreEqual
public void withPropsWithSameTimestampValueAreEqual()
-
withMatherAreEqual
public void withMatherAreEqual()
-
withAdditionalPropsAreNotEqual
public void withAdditionalPropsAreNotEqual()
-
withMissingPropsAreNotEqual
public void withMissingPropsAreNotEqual()
-
withDifferentPropValueAreNotEqual1
public void withDifferentPropValueAreNotEqual1()
-
withDifferentPropValueAreNotEqual2
public void withDifferentPropValueAreNotEqual2()
-
withDifferentPropValueAreNotEqual3
public void withDifferentPropValueAreNotEqual3() throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
-
innerObjectsAreNotEqual
public void innerObjectsAreNotEqual()
-
withMatherAreNotEqual
public void withMatherAreNotEqual()
-
match
public void match()
-
matchWithPropertyMatcher
public void matchWithPropertyMatcher()
-
matchWithSubset
public void matchWithSubset()
-
matchWithSubset2
public void matchWithSubset2()
-
emptyJSONObjectsMatch
public void emptyJSONObjectsMatch()
-
withMissingPropsNoMatch
public void withMissingPropsNoMatch()
-
withDifferentPropValueNoMatch1
public void withDifferentPropValueNoMatch1()
-
withDifferentPropValueNoMatch2
public void withDifferentPropValueNoMatch2() throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
-
withSameNumberOfPropsButDifferentShouldNotMatch
public void withSameNumberOfPropsButDifferentShouldNotMatch()
-
compareMatchingArrayProperties
public void compareMatchingArrayProperties()
-
compareMatchingArrayPropertiesWithDifferenTypes
public void compareMatchingArrayPropertiesWithDifferenTypes()
-
compareMatchingArrayPropertiesWithMatchers
public void compareMatchingArrayPropertiesWithMatchers()
-
compareNonMatchingArrayProperties
public void compareNonMatchingArrayProperties()
-
compareNonMatchingArrayPropertiesWithDifferentTypes
public void compareNonMatchingArrayPropertiesWithDifferentTypes()
-
compareNonMatchingArrayPropertiesWithMatchers
public void compareNonMatchingArrayPropertiesWithMatchers()
-
arrayHasItems
public void arrayHasItems()
-
arrayHasItemsWithPropertyMatcher
public void arrayHasItemsWithPropertyMatcher() throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
-
arrayHasItemsWithDifferenTypes
public void arrayHasItemsWithDifferenTypes()
-
arrayDoesNotHaveItems
public void arrayDoesNotHaveItems()
-
arrayDoesNotHaveItemsWithDifferenTypes
public void arrayDoesNotHaveItemsWithDifferenTypes()
-
arrayDoesNotHaveItemsWithPropertyMatcher
public void arrayDoesNotHaveItemsWithPropertyMatcher() throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
-
matchItems
public void matchItems() throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
-
matchItemsRegardlessTheOrder
public void matchItemsRegardlessTheOrder() throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
-
matchItemsWithDifferentMatcherTypes
public void matchItemsWithDifferentMatcherTypes() throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
-
itemsDoNotMatch
public void itemsDoNotMatch() throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
-
itemsDoNotMatchWithDifferentMatcherTypes
public void itemsDoNotMatchWithDifferentMatcherTypes() throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
-
nonEmptyJSONMatchesWithEmptyJSON
public void nonEmptyJSONMatchesWithEmptyJSON()
-
emptyJSONDoesNotMatchWithNonEmptyJSON
public void emptyJSONDoesNotMatchWithNonEmptyJSON()
-
nonEmptyJSONNotEqualToEmptyJSON
public void nonEmptyJSONNotEqualToEmptyJSON()
-
-