Fix pgcopy-sink tests

- Update build steps in README.adoc
- Remove junit4 usages across project
- Replace postgres ClassRule w/ Extension
This commit is contained in:
Chris Bono
2022-10-25 23:11:47 -05:00
parent 378ac48e6a
commit b5111fb99b
3 changed files with 9 additions and 9 deletions

View File

@@ -19,11 +19,12 @@ package org.springframework.cloud.fn.consumer.twitter.status.update;
import java.util.function.Consumer;
import java.util.function.Function;
import org.junit.Test;
import twitter4j.StatusUpdate;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import org.junit.jupiter.api.Test;
import org.springframework.expression.Expression;
import org.springframework.expression.ExpressionParser;
import org.springframework.expression.spel.standard.SpelExpressionParser;

View File

@@ -20,7 +20,6 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.junit.Test;
import twitter4j.GeoLocation;
import twitter4j.HashtagEntity;
import twitter4j.MediaEntity;
@@ -33,6 +32,8 @@ import twitter4j.URLEntity;
import twitter4j.User;
import twitter4j.UserMentionEntity;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.cloud.fn.supplier.twitter.status.search.SearchPagination.UNBOUNDED;

View File

@@ -20,10 +20,9 @@ import java.util.concurrent.TimeUnit;
import java.util.function.Function;
import java.util.function.Supplier;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.mockserver.client.MockServerClient;
import org.mockserver.integration.ClientAndServer;
import org.mockserver.model.Header;
@@ -56,7 +55,6 @@ import static org.mockserver.verify.VerificationTimes.once;
/**
* @author Christian Tzolov
*/
@RunWith(SpringRunner.class)
@SpringBootTest(
webEnvironment = SpringBootTest.WebEnvironment.NONE,
properties = {
@@ -82,7 +80,7 @@ public abstract class TwitterStreamSupplierTests {
@Autowired
protected Supplier<Flux<Message<?>>> twitterStreamSupplier;
@BeforeClass
@BeforeAll
public static void startServer() {
mockServer = ClientAndServer.startClientAndServer(MOCK_SERVER_PORT);
@@ -109,7 +107,7 @@ public abstract class TwitterStreamSupplierTests {
.withBody(new StringBody("count=0&stall_warnings=true")));
}
@AfterClass
@AfterAll
public static void stopServer() {
mockServer.stop();
}