public class EPAssertionUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
EPAssertionUtil.AssertionCollectionValueString
Callback for extracting individual collection items for assertion.
|
Constructor and Description |
---|
EPAssertionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
assertAllBooleanTrue(java.lang.Object[] objects)
Asserts that all values in the given object array are boolean-typed values and are true
|
static void |
assertAllPropsSortedByName(EventBean received,
java.lang.Object[] expected)
Asserts that the property values of a single event, using property names as provided by the event type in sorted order by property name, match against the expected values.
|
static void |
assertContains(java.lang.String[] stringSet,
java.lang.String... values)
Assert that a string set does contain each of one or more values.
|
static void |
assertEqualsAllowArray(java.lang.String message,
java.lang.Object expected,
java.lang.Object actual)
Assert that two property values are the same, allowing arrays as properties.
|
static void |
assertEqualsAnyOrder(EventBean[][] expected,
EventBean[][] actual)
Compare two 2-dimensional event arrays.
|
static void |
assertEqualsAnyOrder(int[] expected,
int[] actual)
Compare the two integer arrays allowing any order.
|
static void |
assertEqualsAnyOrder(int[] expected,
java.util.Set<java.lang.Integer> actual)
Assert that each integer value in the expected array is contained in the actual array.
|
static void |
assertEqualsAnyOrder(java.lang.Object[] expected,
java.lang.Object[] actual)
Compare the two object arrays allowing any order.
|
static void |
assertEqualsExactOrder(boolean[] expected,
boolean[] actual)
Compare the boolean values in the two bool arrays assuming the exact same order.
|
static void |
assertEqualsExactOrder(java.util.Collection<java.lang.Object[]> actual,
java.lang.String[] propertyNames,
java.lang.Object[][] expected)
Compare the collection of object arrays, and using property names for messages, against expected values.
|
static void |
assertEqualsExactOrder(EventBean[] expected,
java.util.Iterator<EventBean> actual)
Compare the iterator-returned events against the expected events
|
static void |
assertEqualsExactOrder(int[] expected,
int[] actual)
Compare the integer values in the two int arrays assuming the exact same order.
|
static void |
assertEqualsExactOrder(int[] expected,
java.lang.Integer[] actual)
Compare the integer values in the two int arrays assuming the exact same order.
|
static void |
assertEqualsExactOrder(long[] expected,
long[] actual)
Compare the long values in the long arrays assuming the exact same order.
|
static void |
assertEqualsExactOrder(java.lang.Object[][] expected,
java.util.List<java.lang.Object[]> actual)
Compare the objects in the 2-dimension object arrays assuming the exact same order.
|
static void |
assertEqualsExactOrder(java.lang.Object[][] actual,
java.lang.String[] propertyNames,
java.lang.Object[][] expected)
Compare two 2-dimensional arrays, and using property names for messages, against expected values.
|
static void |
assertEqualsExactOrder(java.lang.Object[] expected,
java.util.Collection actual)
Compare the objects in the expected arrays and actual collection assuming the exact same order.
|
static void |
assertEqualsExactOrder(java.lang.Object[] expected,
java.util.Iterator actual)
Compare the objects returned by the iterator to the an object array.
|
static void |
assertEqualsExactOrder(java.lang.Object[] expected,
java.lang.Object[] actual)
Compare the objects in the two object arrays assuming the exact same order.
|
static void |
assertEqualsExactOrder(short[] expected,
short[] actual)
Compare the short values in the two short arrays assuming the exact same order.
|
static void |
assertEqualsExactOrder(java.lang.String[][] expected,
java.lang.String[][] actual)
Deep compare two 2-dimensional string arrays for the exact same length of arrays and order.
|
static void |
assertEqualsExactOrder(java.lang.String[] expected,
java.lang.String[] actual)
Compare the String values in the two String arrays assuming the exact same order.
|
static void |
assertEqualsExactOrder(java.lang.String message,
java.lang.Object[] expected,
java.lang.Object[] actual)
Compare the objects in the two object arrays assuming the exact same order.
|
static void |
assertEqualsExactOrderUnderlying(java.lang.Object[] expected,
EventBean[] actual)
Comparing the underlying events to the expected events using equals-semantics.
|
static void |
assertEqualsExactOrderUnderlying(java.lang.Object[] expected,
java.util.Iterator<EventBean> actual)
Compare the underlying events returned by the iterator to the expected values.
|
static void |
assertEqualsIgnoreNewline(java.lang.String expected,
java.lang.String received)
Compare two strings removing all newline characters.
|
static void |
assertMapOfCollection(java.util.Map map,
java.lang.String[] keys,
java.lang.String[] expectedList,
EPAssertionUtil.AssertionCollectionValueString collectionValue)
Assert that a map of collections (Map<String, Collection>) has expected keys and values.
|
static void |
assertNotContains(java.lang.String[] stringSet,
java.lang.String... values)
Assert that a string set does not contain one or more values.
|
static void |
assertProps(EventBean received,
java.util.Map<java.lang.String,java.lang.Object> expected)
Assert that the event properties of the event match the properties provided by the map, taking the map properties as the comparison source.
|
static void |
assertProps(EventBean received,
java.lang.String[] propertyNames,
java.lang.Object[] expected)
Assert that the property values of a single event match the expected values.
|
static void |
assertProps(java.lang.Object received,
java.lang.String[] propertyNames,
java.lang.Object[] expected)
Assert that property values, wherein the row can either be a Map or a POJO object, matches the expected values.
|
static void |
assertProps(UniformPair<EventBean> received,
java.lang.String[] propertyNames,
java.lang.Object[] expectedInsert,
java.lang.Object[] expectedRemoved)
Assert that the property values of a new event and a removed event match the expected insert and removed values.
|
static void |
assertPropsAllValuesSame(EventBean received,
java.lang.String[] propertyNames,
java.lang.Object expected)
Assert that all properties of an event have the same value as passed in.
|
static void |
assertPropsMap(java.util.Map received,
java.lang.String[] propertyNames,
java.lang.Object... expected)
Compare the values of a Map against the expected values.
|
static void |
assertPropsObjectArray(java.lang.Object[] received,
java.lang.String[] propertyNames,
java.lang.Object... expected)
Compare the values of a object array (single row) against the expected values.
|
static void |
assertPropsPerRow(EventBean[] received,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> expected)
Compare properties of events against a list of maps.
|
static void |
assertPropsPerRow(EventBean[] received,
java.lang.String[] propertyNames,
java.lang.Object[][] expected)
Compare the property values of events with the expected values, using exact-order semantics.
|
static void |
assertPropsPerRow(EventBean[] actual,
java.lang.String[] propertyNames,
java.lang.Object[][] expected,
java.lang.String streamName)
Compare the property values of events with the expected values, using exact-order semantics.
|
static void |
assertPropsPerRow(java.util.Iterator<EventBean> iterator,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> expected)
Compare properties of events against a list of maps.
|
static void |
assertPropsPerRow(java.util.Iterator<EventBean> iterator,
SafeIterator<EventBean> safeIterator,
java.lang.String[] propertyNames,
java.lang.Object[][] expected)
Compare the property values returned by events of both iterators with the expected values, using exact-order semantics.
|
static void |
assertPropsPerRow(java.util.Iterator<EventBean> iterator,
java.lang.String[] propertyNames,
java.lang.Object[][] expected)
Compare the property values returned by events of both iterators with the expected values, using exact-order semantics.
|
static void |
assertPropsPerRow(java.util.List<java.lang.Object[]> received,
java.lang.String[] propertyNames,
java.lang.Object[][] expected)
Assert that property values of rows, wherein each row can either be Map or POJO objects, matches the expected values.
|
static void |
assertPropsPerRow(java.util.Map[] actual,
java.lang.String[] propertyNames,
java.lang.Object[][] expected)
Compare the Map values identified by property names against expected values.
|
static void |
assertPropsPerRow(java.lang.Object[] received,
java.lang.String[] propertyNames,
java.lang.Object[][] expected)
Assert that property values of rows, wherein each row can either be Map or POJO objects, matches the expected values.
|
static void |
assertPropsPerRow(UniformPair<EventBean[]> received,
java.lang.String[] propertyNames,
java.lang.Object[][] expectedInsert,
java.lang.Object[][] expectedRemoved)
Assert that the property values of a new event and a removed event match the expected insert and removed values.
|
static void |
assertPropsPerRow(UniformPair<EventBean[]> received,
java.lang.String propertyName,
java.lang.Object[] expectedInsert,
java.lang.Object[] expectedRemoved)
Assert that the property values of the events (insert and remove pair) match the expected insert and removed values
for a single property.
|
static void |
assertPropsPerRowAnyOrder(EventBean[] actual,
java.lang.String[] propertyNames,
java.lang.Object[][] expected)
Compare the property values of events with the expected values, using any-order semantics.
|
static void |
assertPropsPerRowAnyOrder(java.util.Iterator<EventBean> iterator,
SafeIterator<EventBean> safeIterator,
java.lang.String[] propertyNames,
java.lang.Object[][] expected)
Compare the property values returned by events of both iterators with the expected values, using any-order semantics.
|
static void |
assertPropsPerRowAnyOrder(java.util.Iterator<EventBean> iterator,
java.lang.String[] propertyNames,
java.lang.Object[][] expected)
Compare the property values returned by events of the iterator with the expected values, using any-order semantics.
|
static void |
assertPropsPerRowAnyOrder(SafeIterator<EventBean> safeIterator,
java.lang.String[] propertyNames,
java.lang.Object[][] expected)
Compare the property values returned by events of the iterator with the expected values, using any-order semantics.
|
static void |
assertPropsPerRowAnyOrder(UniformPair<EventBean[]> pair,
java.lang.String[] propertyNames,
java.lang.Object[][] expectedNew,
java.lang.Object[][] expectedOld)
Compare property values for insert and remove stream pair
|
static void |
assertPropsPOJO(java.lang.Object received,
java.lang.String[] propertyNames,
java.lang.Object... expected)
Compare the properties of an object against the expected values.
|
static void |
assertSameAnyOrder(java.lang.Object[][] expected,
java.lang.Object[][] actual)
Compare two 2-dimensional object arrays using reference-equals semantics.
|
static void |
assertSameExactOrder(java.lang.Object[] expected,
java.lang.Object[] actual)
Reference-equals the objects in the two object arrays assuming the exact same order.
|
static void |
assertTypeEqualsAnyOrder(java.lang.Class[] classes,
java.lang.Object[] objects)
Assert the class of the objects in the object array matches the expected classes in the classes array.
|
static void |
assertUnderlyingPerRow(UniformPair<EventBean[]> received,
java.lang.Object[] expectedUnderlyingInsert,
java.lang.Object[] expectedUnderlyingRemove)
Assert that the underlying objects of the events (insert and remove pair) match the expected insert and removed objects.
|
static boolean |
compareEqualsExactOrder(EventBean[] actual,
EventBean[] expected)
Compare the events in the two object arrays assuming the exact same order.
|
static boolean |
compareRefExactOrder(java.lang.Object[] actual,
java.lang.Object[] expected)
Reference-compare the objects in the two object arrays assuming the exact same order.
|
static java.lang.Object[] |
concatenateArray(java.lang.Object[]... more)
Concatenate multiple arrays.
|
static java.lang.Object[] |
concatenateArray(java.lang.Object[] srcOne,
java.lang.Object[] srcTwo)
Concatenate two arrays.
|
static java.lang.Object[][] |
concatenateArray2Dim(java.lang.Object[][] first,
java.lang.Object[][]... more)
Concatenate two arrays.
|
static java.lang.Object[] |
eventsToObjectArr(EventBean[] events,
java.lang.String propertyName)
Extract the property value of the event property for the given events and return an object array of values.
|
static java.lang.Object[][] |
eventsToObjectArr(EventBean[] events,
java.lang.String[] propertyNames)
Extract the property value of the event properties for the given events and return an object array of values.
|
static java.lang.Object[] |
getUnderlying(EventBean[] events)
Return an array of underlying objects for an array of events.
|
static <T> int |
iteratorCount(java.util.Iterator<T> iterator)
Count the number of object provided by an iterator.
|
static EventBean[] |
iteratorToArray(java.util.Iterator<EventBean> iterator)
Convert an iterator of event beans to an array of event beans.
|
static java.lang.Object[] |
iteratorToArrayUnderlying(java.util.Iterator<EventBean> iterator)
Convert an iterator of event beans to an array of underlying objects.
|
static java.lang.Object[] |
iteratorToObjectArr(java.util.Iterator<EventBean> iterator,
java.lang.String propertyName)
Extract the property value of the event property for the given events and return an object array of values.
|
static java.lang.Object[][] |
iteratorToObjectArr(java.util.Iterator<EventBean> iterator,
java.lang.String[] propertyNames)
Extract the property value of the event properties for the given events and return an object array of values.
|
static EventBean[] |
sort(EventBean[] events,
java.lang.String property)
Sort events according to natural ordering of the values or a property.
|
static EventBean[] |
sort(java.util.Iterator<EventBean> events,
java.lang.String property)
Sort events according to natural ordering of the values or a property.
|
static java.lang.Object[] |
toObjectArray(java.lang.Object array)
For a given array, copy the array elements into a new array of Object[] type.
|
public static void assertEqualsExactOrder(java.lang.String[][] expected, java.lang.String[][] actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsExactOrder(java.lang.Object[][] actual, java.lang.String[] propertyNames, java.lang.Object[][] expected)
actual
- array of objectspropertyNames
- property namesexpected
- expected valuespublic static void assertEqualsExactOrder(java.util.Collection<java.lang.Object[]> actual, java.lang.String[] propertyNames, java.lang.Object[][] expected)
actual
- colleciton of array of objectspropertyNames
- property namesexpected
- expected valuespublic static void assertEqualsExactOrder(EventBean[] expected, java.util.Iterator<EventBean> actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsExactOrderUnderlying(java.lang.Object[] expected, java.util.Iterator<EventBean> actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsExactOrderUnderlying(java.lang.Object[] expected, EventBean[] actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsExactOrder(java.lang.Object[][] expected, java.util.List<java.lang.Object[]> actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsExactOrder(java.lang.Object[] expected, java.lang.Object[] actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsExactOrder(java.lang.String message, java.lang.Object[] expected, java.lang.Object[] actual)
expected
- is the expected valuesactual
- is the actual valuesmessage
- an optional message that can be output when assrtion failspublic static void assertEqualsExactOrder(java.lang.Object[] expected, java.util.Collection actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertSameExactOrder(java.lang.Object[] expected, java.lang.Object[] actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsExactOrder(int[] expected, int[] actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsExactOrder(int[] expected, java.lang.Integer[] actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsExactOrder(short[] expected, short[] actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsExactOrder(long[] expected, long[] actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsExactOrder(java.lang.String[] expected, java.lang.String[] actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsExactOrder(boolean[] expected, boolean[] actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsExactOrder(java.lang.Object[] expected, java.util.Iterator actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsAnyOrder(int[] expected, java.util.Set<java.lang.Integer> actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsAnyOrder(int[] expected, int[] actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertEqualsAnyOrder(java.lang.Object[] expected, java.lang.Object[] actual)
expected
- is the expected valuesactual
- is the actual valuespublic static void assertPropsPerRow(java.util.Iterator<EventBean> iterator, SafeIterator<EventBean> safeIterator, java.lang.String[] propertyNames, java.lang.Object[][] expected)
iterator
- provides eventssafeIterator
- provides eventspropertyNames
- array of property namesexpected
- expected valuespublic static void assertPropsPerRowAnyOrder(java.util.Iterator<EventBean> iterator, SafeIterator<EventBean> safeIterator, java.lang.String[] propertyNames, java.lang.Object[][] expected)
iterator
- provides eventssafeIterator
- provides eventspropertyNames
- array of property namesexpected
- expected valuespublic static void assertPropsPerRowAnyOrder(UniformPair<EventBean[]> pair, java.lang.String[] propertyNames, java.lang.Object[][] expectedNew, java.lang.Object[][] expectedOld)
pair
- pairpropertyNames
- namesexpectedNew
- expected insert-stream valuesexpectedOld
- expected remove-stream valuespublic static void assertPropsPerRowAnyOrder(SafeIterator<EventBean> safeIterator, java.lang.String[] propertyNames, java.lang.Object[][] expected)
safeIterator
- provides eventspropertyNames
- array of property namesexpected
- expected valuespublic static void assertPropsPerRowAnyOrder(java.util.Iterator<EventBean> iterator, java.lang.String[] propertyNames, java.lang.Object[][] expected)
iterator
- provides eventspropertyNames
- array of property namesexpected
- expected valuespublic static void assertPropsPerRow(java.util.Iterator<EventBean> iterator, java.lang.String[] propertyNames, java.lang.Object[][] expected)
iterator
- provides eventspropertyNames
- array of property namesexpected
- expected valuespublic static void assertPropsPerRow(java.util.Map[] actual, java.lang.String[] propertyNames, java.lang.Object[][] expected)
actual
- array of Maps, one for each rowpropertyNames
- property namesexpected
- expected valuespublic static void assertPropsPerRow(EventBean[] received, java.lang.String[] propertyNames, java.lang.Object[][] expected)
received
- provides eventspropertyNames
- array of property namesexpected
- expected valuespublic static void assertPropsPerRow(EventBean[] actual, java.lang.String[] propertyNames, java.lang.Object[][] expected, java.lang.String streamName)
actual
- provides eventspropertyNames
- array of property namesexpected
- expected valuesstreamName
- an optional name for the stream for use in messagespublic static void assertPropsPerRowAnyOrder(EventBean[] actual, java.lang.String[] propertyNames, java.lang.Object[][] expected)
actual
- provides eventspropertyNames
- array of property namesexpected
- expected valuespublic static void assertProps(EventBean received, java.lang.String[] propertyNames, java.lang.Object[] expected)
received
- provides eventspropertyNames
- array of property namesexpected
- expected valuespublic static void assertProps(UniformPair<EventBean> received, java.lang.String[] propertyNames, java.lang.Object[] expectedInsert, java.lang.Object[] expectedRemoved)
received
- provides eventspropertyNames
- array of property namesexpectedInsert
- expected values insert streamexpectedRemoved
- expected values remove streampublic static void assertPropsPerRow(UniformPair<EventBean[]> received, java.lang.String[] propertyNames, java.lang.Object[][] expectedInsert, java.lang.Object[][] expectedRemoved)
received
- provides eventspropertyNames
- array of property namesexpectedInsert
- expected values insert streamexpectedRemoved
- expected values remove streampublic static void assertPropsPerRow(UniformPair<EventBean[]> received, java.lang.String propertyName, java.lang.Object[] expectedInsert, java.lang.Object[] expectedRemoved)
received
- provides eventspropertyName
- property nameexpectedInsert
- expected values insert streamexpectedRemoved
- expected values remove streampublic static void assertUnderlyingPerRow(UniformPair<EventBean[]> received, java.lang.Object[] expectedUnderlyingInsert, java.lang.Object[] expectedUnderlyingRemove)
received
- provides eventsexpectedUnderlyingInsert
- expected underlying object insert streamexpectedUnderlyingRemove
- expected underlying object remove streampublic static void assertAllPropsSortedByName(EventBean received, java.lang.Object[] expected)
received
- provides eventsexpected
- expected valuespublic static void assertPropsMap(java.util.Map received, java.lang.String[] propertyNames, java.lang.Object... expected)
received
- provides propertiesexpected
- expected valuespropertyNames
- property names to assertpublic static void assertPropsObjectArray(java.lang.Object[] received, java.lang.String[] propertyNames, java.lang.Object... expected)
received
- provides propertiesexpected
- expected valuespropertyNames
- property names to assertpublic static void assertPropsPOJO(java.lang.Object received, java.lang.String[] propertyNames, java.lang.Object... expected)
propertyNames
- property namesreceived
- provides eventsexpected
- expected valuespublic static void assertEqualsAnyOrder(EventBean[][] expected, EventBean[][] actual)
expected
- expected valuesactual
- actual valuespublic static void assertSameAnyOrder(java.lang.Object[][] expected, java.lang.Object[][] actual)
expected
- expected valuesactual
- actual valuespublic static void assertAllBooleanTrue(java.lang.Object[] objects)
objects
- values to assert that they are all truepublic static void assertTypeEqualsAnyOrder(java.lang.Class[] classes, java.lang.Object[] objects)
classes
- is the expected classobjects
- is the objects to check the class forpublic static EventBean[] iteratorToArray(java.util.Iterator<EventBean> iterator)
iterator
- to convertpublic static java.lang.Object[] iteratorToArrayUnderlying(java.util.Iterator<EventBean> iterator)
iterator
- to convertpublic static <T> int iteratorCount(java.util.Iterator<T> iterator)
T
- typeiterator
- to countpublic static void assertPropsPerRow(EventBean[] received, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> expected)
received
- actual eventsexpected
- expected valuespublic static void assertPropsPerRow(java.util.Iterator<EventBean> iterator, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> expected)
iterator
- actual eventsexpected
- expected valuespublic static java.lang.Object[] concatenateArray(java.lang.Object[] srcOne, java.lang.Object[] srcTwo)
srcOne
- array to concatenatesrcTwo
- array to concatenatepublic static java.lang.Object[][] concatenateArray2Dim(java.lang.Object[][] first, java.lang.Object[][]... more)
first
- array to concatenatemore
- array to concatenatepublic static java.lang.Object[] concatenateArray(java.lang.Object[]... more)
more
- arrays to concatenatepublic static EventBean[] sort(java.util.Iterator<EventBean> events, java.lang.String property)
events
- to sortproperty
- name of property providing sort valuespublic static EventBean[] sort(EventBean[] events, java.lang.String property)
events
- to sortproperty
- name of property providing sort valuespublic static void assertNotContains(java.lang.String[] stringSet, java.lang.String... values)
stringSet
- to compare againstvalues
- to findpublic static void assertContains(java.lang.String[] stringSet, java.lang.String... values)
stringSet
- to compare againstvalues
- to findpublic static java.lang.Object[] getUnderlying(EventBean[] events)
events
- to return underlying objectspublic static void assertPropsAllValuesSame(EventBean received, java.lang.String[] propertyNames, java.lang.Object expected)
received
- to inspectpropertyNames
- property namesexpected
- valuepublic static java.lang.Object[] eventsToObjectArr(EventBean[] events, java.lang.String propertyName)
events
- to extract value frompropertyName
- name of property to extract values forpublic static java.lang.Object[][] eventsToObjectArr(EventBean[] events, java.lang.String[] propertyNames)
events
- to extract value frompropertyNames
- names of properties to extract values forpublic static java.lang.Object[] iteratorToObjectArr(java.util.Iterator<EventBean> iterator, java.lang.String propertyName)
iterator
- events to extract value frompropertyName
- name of property to extract values forpublic static java.lang.Object[][] iteratorToObjectArr(java.util.Iterator<EventBean> iterator, java.lang.String[] propertyNames)
iterator
- events to extract value frompropertyNames
- names of properties to extract values forpublic static boolean compareEqualsExactOrder(EventBean[] actual, EventBean[] expected)
actual
- is the actual resultsexpected
- is the expected valuespublic static boolean compareRefExactOrder(java.lang.Object[] actual, java.lang.Object[] expected)
actual
- is the actual resultsexpected
- is the expected valuespublic static void assertPropsPerRow(java.lang.Object[] received, java.lang.String[] propertyNames, java.lang.Object[][] expected)
received
- array of objects may contain Map and POJO eventspropertyNames
- property namesexpected
- expected valuepublic static void assertPropsPerRow(java.util.List<java.lang.Object[]> received, java.lang.String[] propertyNames, java.lang.Object[][] expected)
received
- array of objects may contain Map and POJO eventspropertyNames
- property namesexpected
- expected valuepublic static void assertProps(java.lang.Object received, java.lang.String[] propertyNames, java.lang.Object[] expected)
received
- Map or POJOpropertyNames
- property namesexpected
- expected valuepublic static java.lang.Object[] toObjectArray(java.lang.Object array)
array
- input arraypublic static void assertEqualsAllowArray(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
message
- to useexpected
- expected valueactual
- actual valuepublic static void assertProps(EventBean received, java.util.Map<java.lang.String,java.lang.Object> expected)
received
- eventexpected
- expected valuespublic static void assertEqualsIgnoreNewline(java.lang.String expected, java.lang.String received)
expected
- expected valuereceived
- received valuepublic static void assertMapOfCollection(java.util.Map map, java.lang.String[] keys, java.lang.String[] expectedList, EPAssertionUtil.AssertionCollectionValueString collectionValue)
map
- of string keys and collection-type valueskeys
- array of key valuesexpectedList
- for each key a string that is a comma-separated list of valuescollectionValue
- the function to apply to each collection value to convert to a string