From f31b01c6c579e7db6c88ed25da8313ac6994ff0e Mon Sep 17 00:00:00 2001 From: "k.struzhkin" Date: Wed, 15 May 2019 16:55:50 +0300 Subject: [PATCH] Add classes for mock adapter --- .gitignore | 78 ++++++++++++++ Jenkinsfile | 18 ++++ pom.xml | 159 ++++++++++++++++++++++++++++ src/test/resources/logback-test.xml | 10 ++ 4 files changed, 265 insertions(+) create mode 100644 .gitignore create mode 100644 Jenkinsfile create mode 100644 pom.xml create mode 100644 src/test/resources/logback-test.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fb08ff7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,78 @@ +# Created by .ignore support plugin (hsz.mobi) +.eunit +deps +*.o +*.beam +*.plt +erl_crash.dump +ebin/*.beam +rel/example_project +.concrete/DEV_MODE +.rebar +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff: +.idea/ +.idea/workspace.xml +.idea/tasks.xml +.idea/dictionaries +.idea/vcs.xml +.idea/jsLibraryMappings.xml + +# Sensitive or high-churn files: +.idea/dataSources.ids +.idea/dataSources.xml +.idea/dataSources.local.xml +.idea/sqlDataSources.xml +.idea/dynamic.xml +.idea/uiDesigner.xml + +# Gradle: +.idea/gradle.xml +.idea/libraries + +# Mongo Explorer plugin: +.idea/mongoSettings.xml + +*.iws +*.ipr +*.iml + + +# IntelliJ +/out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties +*.class + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.ear + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +env.list diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..4dee7b9 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,18 @@ +#!groovy +build('adapter-bank-spring-boot-starter-test', 'java-maven') { + checkoutRepo() + loadBuildUtils() + + def javaServicePipeline + runStage('load JavaService pipeline') { + javaServicePipeline = load("build_utils/jenkins_lib/pipeJavaService.groovy") + } + + def serviceName = env.REPO_NAME + def mvnArgs = '-DjvmArgs="-Xmx256m"' + def useJava11 = true + def registry = 'dr2.rbkmoney.com' + def registryCredsId = 'jenkins_harbor' + + javaServicePipeline(serviceName, useJava11, mvnArgs, registry, registryCredsId) +} \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..b37becd --- /dev/null +++ b/pom.xml @@ -0,0 +1,159 @@ + + + 4.0.0 + com.rbkmoney + adapter-bank-spring-boot-starter-test + 0.0.1-SNAPSHOT + jar + + Adapter bank spring boot starter test + + + UTF-8 + 11 + 2.1.1.RELEASE + + + + + + javax.servlet + javax.servlet-api + 4.0.1 + provided + + + org.slf4j + slf4j-api + 1.7.25 + provided + + + org.projectlombok + lombok + 1.18.4 + provided + + + + + org.springframework.boot + spring-boot + ${spring-boot.version} + provided + + + org.springframework.boot + spring-boot-autoconfigure + ${spring-boot.version} + + + org.springframework.boot + spring-boot-configuration-processor + ${spring-boot.version} + true + + + org.springframework.boot + spring-boot-starter-web + ${spring-boot.version} + provided + + + + + com.rbkmoney + error-mapping-java + 1.0.0 + + + com.rbkmoney.woody + woody-thrift + 1.1.15 + + + com.rbkmoney + damsel + 1.256-2afe121 + + + com.rbkmoney + damsel-utils + 2.1.8 + + + + + junit + junit + 4.12 + test + + + + http://java-nexus.msk1.rbkmoney.net:8081/nexus/content/groups/public + + false + releases + RBKmoney releases repository + http://java-nexus.msk1.rbkmoney.net:8081/nexus/content/repositories/releases + default + + + true + snapshots + RBKmoney snapshots repository + http://java-nexus.msk1.rbkmoney.net:8081/nexus/content/repositories/snapshots + default + + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.0.0 + + + attach-sources + + jar + + + + + + org.jacoco + jacoco-maven-plugin + 0.8.2 + + ${sonar.jacoco.reportPath} + true + + + + agent + + prepare-agent + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.0 + + ${java.version} + ${java.version} + + + + + + \ No newline at end of file diff --git a/src/test/resources/logback-test.xml b/src/test/resources/logback-test.xml new file mode 100644 index 0000000..e1f57ed --- /dev/null +++ b/src/test/resources/logback-test.xml @@ -0,0 +1,10 @@ + + + + + + + + + +