Temporarily disabled calls to FunctionAroundWrapper

This commit is contained in:
Oleg Zhurakousky
2021-07-26 17:18:31 +02:00
parent bdbd33efc3
commit 406ef528cc
3 changed files with 10 additions and 6 deletions

View File

@@ -37,12 +37,12 @@ public abstract class FunctionAroundWrapper implements BiFunction<Object, Functi
@SuppressWarnings("unchecked")
@Override
public final Object apply(Object input, FunctionInvocationWrapper targetFunction) {
if (input instanceof Message) {
return this.doApply((Message<byte[]>) input, targetFunction);
}
else if (targetFunction.isSupplier() && !targetFunction.isOutputTypePublisher()) {
return this.doApply(null, targetFunction);
}
// if (input instanceof Message) {
// return this.doApply((Message<byte[]>) input, targetFunction);
// }
// else if (targetFunction.isSupplier() && !targetFunction.isOutputTypePublisher()) {
// return this.doApply(null, targetFunction);
// }
return targetFunction.apply(input);
}

View File

@@ -38,6 +38,7 @@ import java.util.stream.Collectors;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
@@ -539,6 +540,7 @@ public class BeanFactoryAwareFunctionRegistryTests {
@SuppressWarnings({ "rawtypes", "unchecked" })
@Test
@Disabled
public void testWrappedWithAroundAdviseConfiguration() {
FunctionCatalog catalog = this.configureCatalog(WrappedWithAroundAdviseConfiguration.class);
Function f = catalog.lookup("uppercase");

View File

@@ -19,6 +19,7 @@ package org.springframework.cloud.function.context.catalog;
import java.util.function.Function;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
@@ -36,6 +37,7 @@ import static org.assertj.core.api.Assertions.assertThat;
/**
* @author Oleg Zhurakousky
*/
@Disabled
public class MarcinSleuthTests {
private ApplicationContext context;