aboutsummaryrefslogtreecommitdiffstats
path: root/datafile-app-server/src/test/java
diff options
context:
space:
mode:
authoryanhuanwang <martin.c.yan@est.tech>2019-02-01 15:23:35 +0100
committeryanhuanwang <martin.yan.seu@gmail.com>2019-02-13 09:35:09 +0100
commit6c40bae51affbcb858ebf908bd07345a907fd9be (patch)
tree092d33a3ffbaba77351444dc47a95a061d9e2a45 /datafile-app-server/src/test/java
parent70cf309e54b2b24b83b5bc08e424f4614648b575 (diff)
Add Readme.md
Format code Change-Id: Iba56718868043d3b19c71892f363fbb838f4988a Signed-off-by: Chengkai Yan <martin.c.yan@est.tech> Issue-ID: DCAEGEN2-1039
Diffstat (limited to 'datafile-app-server/src/test/java')
-rw-r--r--datafile-app-server/src/test/java/org/onap/dcaegen2/collectors/datafile/configuration/CloudConfigParserTest.java55
1 files changed, 41 insertions, 14 deletions
diff --git a/datafile-app-server/src/test/java/org/onap/dcaegen2/collectors/datafile/configuration/CloudConfigParserTest.java b/datafile-app-server/src/test/java/org/onap/dcaegen2/collectors/datafile/configuration/CloudConfigParserTest.java
index 3299f71d..acae1e6e 100644
--- a/datafile-app-server/src/test/java/org/onap/dcaegen2/collectors/datafile/configuration/CloudConfigParserTest.java
+++ b/datafile-app-server/src/test/java/org/onap/dcaegen2/collectors/datafile/configuration/CloudConfigParserTest.java
@@ -30,27 +30,54 @@ import org.onap.dcaegen2.services.sdk.rest.services.dmaap.client.config.Immutabl
class CloudConfigParserTest {
private static final ImmutableDmaapConsumerConfiguration CORRECT_DMAAP_CONSUMER_CONFIG =
- new ImmutableDmaapConsumerConfiguration.Builder().timeoutMs(-1)
- .dmaapHostName("message-router.onap.svc.cluster.local").dmaapUserName("admin")
- .dmaapUserPassword("admin").dmaapTopicName("/events/unauthenticated.VES_NOTIFICATION_OUTPUT")
- .dmaapPortNumber(2222).dmaapContentType("application/json").messageLimit(-1).dmaapProtocol("http")
- .consumerId("C12").consumerGroup("OpenDCAE-c12").trustStorePath("trustStorePath")
- .trustStorePasswordPath("trustStorePasswordPath").keyStorePath("keyStorePath")
- .keyStorePasswordPath("keyStorePasswordPath").enableDmaapCertAuth(true)
+ //@formatter:on
+ new ImmutableDmaapConsumerConfiguration.Builder()
+ .timeoutMs(-1)
+ .dmaapHostName("message-router.onap.svc.cluster.local")
+ .dmaapUserName("admin")
+ .dmaapUserPassword("admin")
+ .dmaapTopicName("/events/unauthenticated.VES_NOTIFICATION_OUTPUT")
+ .dmaapPortNumber(2222)
+ .dmaapContentType("application/json")
+ .messageLimit(-1)
+ .dmaapProtocol("http")
+ .consumerId("C12")
+ .consumerGroup("OpenDCAE-c12")
+ .trustStorePath("trustStorePath")
+ .trustStorePasswordPath("trustStorePasswordPath")
+ .keyStorePath("keyStorePath")
+ .keyStorePasswordPath("keyStorePasswordPath")
+ .enableDmaapCertAuth(true)
.build();
+ //@formatter:off
private static final ImmutableDmaapPublisherConfiguration CORRECT_DMAAP_PUBLISHER_CONFIG =
- new ImmutableDmaapPublisherConfiguration.Builder().dmaapTopicName("publish").dmaapUserPassword("dradmin")
- .dmaapPortNumber(3907).dmaapProtocol("https").dmaapContentType("application/json")
- .dmaapHostName("message-router.onap.svc.cluster.local").dmaapUserName("dradmin")
+ //@formatter:on
+ new ImmutableDmaapPublisherConfiguration.Builder()
+ .dmaapTopicName("publish")
+ .dmaapUserPassword("dradmin")
+ .dmaapPortNumber(3907)
+ .dmaapProtocol("https")
+ .dmaapContentType("application/json")
+ .dmaapHostName("message-router.onap.svc.cluster.local")
+ .dmaapUserName("dradmin")
.trustStorePath("trustStorePath")
- .trustStorePasswordPath("trustStorePasswordPath").keyStorePath("keyStorePath")
- .keyStorePasswordPath("keyStorePasswordPath").enableDmaapCertAuth(true)
+ .trustStorePasswordPath("trustStorePasswordPath")
+ .keyStorePath("keyStorePath")
+ .keyStorePasswordPath("keyStorePasswordPath")
+ .enableDmaapCertAuth(true)
.build();
+ //@formatter:off
private static final ImmutableFtpesConfig CORRECT_FTPES_CONFIGURATION =
- new ImmutableFtpesConfig.Builder().keyCert("/config/ftpKey.jks").keyPassword("secret")
- .trustedCA("config/cacerts").trustedCAPassword("secret").build();
+ //@formatter:on
+ new ImmutableFtpesConfig.Builder()
+ .keyCert("/config/ftpKey.jks")
+ .keyPassword("secret")
+ .trustedCA("config/cacerts")
+ .trustedCAPassword("secret")
+ .build();
+ //@formatter:off
private CloudConfigParser cloudConfigParser = new CloudConfigParser(getCloudConfigJsonObject());