Renaming internal test boot applications in functions
This commit is contained in:
@@ -43,6 +43,6 @@ public class AnalyticsConsumerParentTest {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class AnalyticsConsumerTestApplication {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ abstract class CassandraConsumerApplicationTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class CassandraConsumerTestApplication {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -53,6 +53,6 @@ public class AbstractFileConsumerTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class FileConsumerTestApplication {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,6 +71,6 @@ public class FtpConsumerTests extends FtpTestSupport {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class FtpConsumerTestApplication {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ public class JdbcConsumerApplicationTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class JdbcConsumerTestApplication {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -87,6 +87,6 @@ class LogConsumerApplicationTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class LogConsumerTestApplication {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,6 +87,6 @@ class MongoDbConsumerApplicationTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class MongoDbConsumerTestApplication {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ public class MqttConsumerTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class MqttConsumerTestApplication {
|
||||
|
||||
@Autowired
|
||||
private MqttPahoClientFactory mqttClientFactory;
|
||||
|
||||
@@ -43,7 +43,7 @@ public class AbstractRedisConsumerTests {
|
||||
StringRedisTemplate redisTemplate;
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class RedisConsumerTestApplication {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ public abstract class AbstractAwsS3ConsumerMockTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
public static class S3ConsumerApplication {
|
||||
public static class S3ConsumerTestApplication {
|
||||
|
||||
@Bean
|
||||
public CountDownLatch aclLatch() {
|
||||
|
||||
@@ -73,7 +73,7 @@ public class SftpConsumerTests extends SftpTestSupport {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class SftpConsumerTestApplication {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,6 @@ public class FilterFunctionApplicationTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class FilterFunctionTestApplication {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ public class HeaderEnricherFunctionApplicationTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class HeaderEnricherFunctionTestApplication {
|
||||
|
||||
@Bean
|
||||
public String value() {
|
||||
|
||||
@@ -44,7 +44,7 @@ import org.springframework.messaging.support.MessageBuilder;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class HttpRequestFunctionApplicationTests {
|
||||
public class HttpRequestFunctionTestApplicationTests {
|
||||
private MockWebServer server;
|
||||
|
||||
private ApplicationContextRunner runner;
|
||||
@@ -53,7 +53,7 @@ public class HttpRequestFunctionApplicationTests {
|
||||
void setup() {
|
||||
this.server = new MockWebServer();
|
||||
this.runner = new ApplicationContextRunner()
|
||||
.withUserConfiguration(HttpRequestFunctionApplication.class)
|
||||
.withUserConfiguration(HttpRequestFunctionTestApplication.class)
|
||||
.withPropertyValues(
|
||||
"http.request.url=" + url());
|
||||
}
|
||||
@@ -193,6 +193,6 @@ public class HttpRequestFunctionApplicationTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class HttpRequestFunctionApplication {
|
||||
static class HttpRequestFunctionTestApplication {
|
||||
}
|
||||
}
|
||||
@@ -54,7 +54,7 @@ public class SpelFunctionApplicationTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class SpelFunctionTestApplication {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,6 +44,6 @@ public class SplitterFunctionApplicationTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class SplitterFunctionTestApplication {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public class TaskLaunchRequestFunctionApplicationTests {
|
||||
|
||||
@BeforeEach
|
||||
public void setUp() {
|
||||
springApplicationBuilder = new SpringApplicationBuilder(TestApplication.class)
|
||||
springApplicationBuilder = new SpringApplicationBuilder(TaskLaunchRequestFunctionTestApplication.class)
|
||||
.web(WebApplicationType.NONE);
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ public class TaskLaunchRequestFunctionApplicationTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
protected static class TestApplication {
|
||||
protected static class TaskLaunchRequestFunctionTestApplication {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnProperty("customTaskNameExtractor")
|
||||
|
||||
@@ -146,6 +146,6 @@ public class TaskLauncherFunctionApplicationTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class TaskLauncherFunctionTestApplication {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -262,7 +262,7 @@ public abstract class TwitterGeoFunctionTest {
|
||||
@SpringBootConfiguration
|
||||
@EnableAutoConfiguration
|
||||
@Import(TwitterGeoFunctionConfiguration.class)
|
||||
public static class TestTwitterGeoProcessorApplication {
|
||||
public static class TwitterGeoFunctionTestApplication {
|
||||
@Bean
|
||||
@Primary
|
||||
public twitter4j.conf.Configuration twitterConfiguration2(TwitterConnectionProperties properties,
|
||||
|
||||
@@ -122,7 +122,7 @@ public abstract class TwitterTrendFunctionTests {
|
||||
@SpringBootConfiguration
|
||||
@EnableAutoConfiguration
|
||||
@Import(TwitterTrendFunctionConfiguration.class)
|
||||
public static class TestTwitterTrendFunctionApplication {
|
||||
public static class TwitterTrendFunctionTestApplication {
|
||||
@Bean
|
||||
@Primary
|
||||
public twitter4j.conf.Configuration twitterConfiguration2(TwitterConnectionProperties properties,
|
||||
|
||||
@@ -187,7 +187,7 @@ public abstract class TwitterUsersFunctionTests {
|
||||
@SpringBootConfiguration
|
||||
@EnableAutoConfiguration
|
||||
@Import(TwitterUsersFunctionConfiguration.class)
|
||||
static class TestTwitterUsersApplication {
|
||||
static class TwitterUsersFunctionTestApplication {
|
||||
@Bean
|
||||
@Primary
|
||||
public twitter4j.conf.Configuration twitterConfiguration2(TwitterConnectionProperties properties,
|
||||
|
||||
@@ -56,6 +56,6 @@ public class AbstractFileSupplierTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class FileSupplierTestApplication {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ public class FtpSupplierTests extends FtpTestSupport {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class FtpSupplierTestApplication {
|
||||
|
||||
// These properties can be moved into the SpringBootApplication annotation, but providing here
|
||||
// as a way to demonstrate how we can provide ConfigurationProperties as a bean in the application itself
|
||||
|
||||
@@ -133,7 +133,7 @@ public class HttpSupplierApplicationTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class HttpSupplierTestApplication {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -77,6 +77,6 @@ public class DefaultJdbcSupplierTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class JdbcSupplierTestApplication {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +59,6 @@ public class NonSplitJdbcSupplierTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class JdbcSupplierTestApplication {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,6 +92,6 @@ class MongodbSupplierApplicationTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class MongoDbSupplierTestApplication {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ public class MqttSupplierTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class MqttSupplierTestApplication {
|
||||
|
||||
@Autowired
|
||||
private MqttPahoClientFactory mqttClientFactory;
|
||||
|
||||
@@ -119,7 +119,7 @@ public abstract class AbstractAwsS3SupplierMockTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
public static class S3SupplierApplication {
|
||||
public static class S3SupplierTestApplication {
|
||||
|
||||
@Bean
|
||||
@Primary
|
||||
|
||||
@@ -53,7 +53,7 @@ public class SftpSupplierApplicationTests extends SftpTestSupport {
|
||||
@BeforeEach
|
||||
void setUpDefaultProperties() {
|
||||
defaultApplicationContextRunner = new ApplicationContextRunner()
|
||||
.withUserConfiguration(TestApp.class)
|
||||
.withUserConfiguration(SftpSupplierTestApplication.class)
|
||||
.withPropertyValues(
|
||||
"sftp.supplier.factory.host=localhost",
|
||||
"sftp.supplier.factory.port=${sftp.factory.port}",
|
||||
@@ -199,7 +199,7 @@ public class SftpSupplierApplicationTests extends SftpTestSupport {
|
||||
Paths.get(remoteTemporaryFolder.toString(), "sftpSecondSource", "doesNotMatter.txt"),
|
||||
"source3");
|
||||
new ApplicationContextRunner()
|
||||
.withUserConfiguration(TestApp.class)
|
||||
.withUserConfiguration(SftpSupplierTestApplication.class)
|
||||
.withPropertyValues(
|
||||
"sftp.supplier.stream=true",
|
||||
"sftp.supplier.factories.one.host=localhost",
|
||||
@@ -247,7 +247,7 @@ public class SftpSupplierApplicationTests extends SftpTestSupport {
|
||||
Paths.get(remoteTemporaryFolder.toString(), "sftpSecondSource", "sftpSource3.txt"),
|
||||
"doesNotMatter");
|
||||
new ApplicationContextRunner()
|
||||
.withUserConfiguration(TestApp.class)
|
||||
.withUserConfiguration(SftpSupplierTestApplication.class)
|
||||
.withPropertyValues(
|
||||
"file.consumer.mode = ref",
|
||||
"sftp.supplier.localDir=" + this.targetLocalDirectory.getAbsolutePath(),
|
||||
@@ -308,7 +308,7 @@ public class SftpSupplierApplicationTests extends SftpTestSupport {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApp {
|
||||
static class SftpSupplierTestApplication {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ public class AbstractTcpSupplierTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
public static class TcpConsumerTestApplication {
|
||||
public static class TcpSupplierTestApplication {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,6 +38,6 @@ public abstract class TimeSupplierApplicationTests {
|
||||
protected abstract void testTimeSupplier();
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class TimeSupplierTestApplication {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ public abstract class TwitterStreamSupplierTests {
|
||||
@SpringBootConfiguration
|
||||
@EnableAutoConfiguration
|
||||
@Import(TwitterStreamSupplierConfiguration.class)
|
||||
public static class TestTwitterStreamSourceApplication {
|
||||
public static class TwitterStreamSupplierTestApplication {
|
||||
|
||||
@Bean
|
||||
@Primary
|
||||
|
||||
@@ -97,6 +97,6 @@ public class WebsocketSupplierTests {
|
||||
}
|
||||
|
||||
@SpringBootApplication
|
||||
static class TestApplication {
|
||||
static class WebsocketSupplierTestApplication {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user