org.apache.flink.util.MethodForwardingTestUtil Java Examples

The following examples show how to use org.apache.flink.util.MethodForwardingTestUtil. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StateObjectCollectionTest.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Test
public void testForwardingCollectionMethods() throws Exception {
	MethodForwardingTestUtil.testMethodForwarding(
		Collection.class,
		((Function<Collection, StateObjectCollection>) StateObjectCollection::new));
}
 
Example #2
Source File: StateObjectCollectionTest.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Test
public void testForwardingStateObjectMethods() throws Exception {
	MethodForwardingTestUtil.testMethodForwarding(
		StateObject.class,
		object -> new StateObjectCollection<>(Collections.singletonList(object)));
}
 
Example #3
Source File: StateObjectCollectionTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Test
public void testForwardingCollectionMethods() throws Exception {
	MethodForwardingTestUtil.testMethodForwarding(
		Collection.class,
		((Function<Collection, StateObjectCollection>) StateObjectCollection::new));
}
 
Example #4
Source File: StateObjectCollectionTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Test
public void testForwardingStateObjectMethods() throws Exception {
	MethodForwardingTestUtil.testMethodForwarding(
		StateObject.class,
		object -> new StateObjectCollection<>(Collections.singletonList(object)));
}
 
Example #5
Source File: StateObjectCollectionTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Test
public void testForwardingCollectionMethods() throws Exception {
	MethodForwardingTestUtil.testMethodForwarding(
		Collection.class,
		((Function<Collection, StateObjectCollection>) StateObjectCollection::new));
}
 
Example #6
Source File: StateObjectCollectionTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Test
public void testForwardingStateObjectMethods() throws Exception {
	MethodForwardingTestUtil.testMethodForwarding(
		StateObject.class,
		object -> new StateObjectCollection<>(Collections.singletonList(object)));
}