Re-enable FunctionAroundWrapper
This commit is contained in:
@@ -37,12 +37,12 @@ public abstract class FunctionAroundWrapper implements BiFunction<Object, Functi
|
|||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@Override
|
@Override
|
||||||
public final Object apply(Object input, FunctionInvocationWrapper targetFunction) {
|
public final Object apply(Object input, FunctionInvocationWrapper targetFunction) {
|
||||||
// if (input instanceof Message) {
|
if (input instanceof Message) {
|
||||||
// return this.doApply((Message<byte[]>) input, targetFunction);
|
return this.doApply((Message<byte[]>) input, targetFunction);
|
||||||
// }
|
}
|
||||||
// else if (targetFunction.isSupplier() && !targetFunction.isOutputTypePublisher()) {
|
else if (targetFunction.isSupplier() && !targetFunction.isOutputTypePublisher()) {
|
||||||
// return this.doApply(null, targetFunction);
|
return this.doApply(null, targetFunction);
|
||||||
// }
|
}
|
||||||
return targetFunction.apply(input);
|
return targetFunction.apply(input);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ import java.util.stream.Collectors;
|
|||||||
|
|
||||||
import org.junit.jupiter.api.Assertions;
|
import org.junit.jupiter.api.Assertions;
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
import org.junit.jupiter.api.Disabled;
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.reactivestreams.Publisher;
|
import org.reactivestreams.Publisher;
|
||||||
import reactor.core.publisher.Flux;
|
import reactor.core.publisher.Flux;
|
||||||
@@ -540,7 +539,6 @@ public class BeanFactoryAwareFunctionRegistryTests {
|
|||||||
|
|
||||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
@Test
|
@Test
|
||||||
@Disabled
|
|
||||||
public void testWrappedWithAroundAdviseConfiguration() {
|
public void testWrappedWithAroundAdviseConfiguration() {
|
||||||
FunctionCatalog catalog = this.configureCatalog(WrappedWithAroundAdviseConfiguration.class);
|
FunctionCatalog catalog = this.configureCatalog(WrappedWithAroundAdviseConfiguration.class);
|
||||||
Function f = catalog.lookup("uppercase");
|
Function f = catalog.lookup("uppercase");
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ package org.springframework.cloud.function.context.catalog;
|
|||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
|
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
import org.junit.jupiter.api.Disabled;
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||||
@@ -37,7 +36,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
/**
|
/**
|
||||||
* @author Oleg Zhurakousky
|
* @author Oleg Zhurakousky
|
||||||
*/
|
*/
|
||||||
@Disabled
|
|
||||||
public class MarcinSleuthTests {
|
public class MarcinSleuthTests {
|
||||||
|
|
||||||
private ApplicationContext context;
|
private ApplicationContext context;
|
||||||
|
|||||||
Reference in New Issue
Block a user