Add proxyTargetBeans = false and fix some tests

This commit is contained in:
Dave Syer
2019-07-10 12:59:52 +01:00
committed by Oleg Zhurakousky
parent 521c6d3397
commit 307292b959
6 changed files with 40 additions and 19 deletions

View File

@@ -16,19 +16,19 @@
package com.example;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import java.util.function.Function;
import java.util.function.Supplier;
import org.junit.Test;
import org.junit.runner.RunWith;
import reactor.core.publisher.Flux;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import static org.assertj.core.api.Assertions.assertThat;
import reactor.core.publisher.Flux;
@RunWith(SpringRunner.class)
@SpringBootTest
@@ -124,7 +124,7 @@ public class SampleApplicationTests {
@Test
public void testCharCounter() {
Integer length = this.charCounter.apply("the quick brown fox");
assertThat(length).isEqualTo(new Integer(19));
assertThat(length).isEqualTo(19);
}
}