diff --git a/artifact/libraries/QTDIR001/src/main/java/com/bbva/qtdi/lib/r001/QTDIR001.java b/artifact/libraries/QTDIR001/src/main/java/com/bbva/qtdi/lib/r001/QTDIR001.java deleted file mode 100644 index bfe4535..0000000 --- a/artifact/libraries/QTDIR001/src/main/java/com/bbva/qtdi/lib/r001/QTDIR001.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.bbva.qtdi.lib.r001; - -public interface QTDIR001 { - - void execute(); - -} diff --git a/artifact/libraries/QTDIR002/src/main/java/com/bbva/qtdi/lib/r002/QTDIR002.java b/artifact/libraries/QTDIR002/src/main/java/com/bbva/qtdi/lib/r002/QTDIR002.java deleted file mode 100644 index 051b853..0000000 --- a/artifact/libraries/QTDIR002/src/main/java/com/bbva/qtdi/lib/r002/QTDIR002.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.bbva.qtdi.lib.r002; - -public interface QTDIR002 { - - void execute(); - -} diff --git a/artifact/libraries/QTDIRC01/.classpath b/artifact/libraries/QTDIRC01/.classpath new file mode 100644 index 0000000..06662e6 --- /dev/null +++ b/artifact/libraries/QTDIRC01/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/artifact/libraries/QTDIRC01/.project b/artifact/libraries/QTDIRC01/.project new file mode 100644 index 0000000..effacd6 --- /dev/null +++ b/artifact/libraries/QTDIRC01/.project @@ -0,0 +1,23 @@ + + + QTDIRC01 + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/artifact/libraries/QTDIR001/pom.xml b/artifact/libraries/QTDIRC01/pom.xml similarity index 96% rename from artifact/libraries/QTDIR001/pom.xml rename to artifact/libraries/QTDIRC01/pom.xml index 806e27e..bf33d63 100644 --- a/artifact/libraries/QTDIR001/pom.xml +++ b/artifact/libraries/QTDIRC01/pom.xml @@ -9,8 +9,8 @@ com.bbva.qtdi - QTDIR001 - QTDIR001 + QTDIRC01 + QTDIRC01 0.0.1 bundle @@ -72,13 +72,13 @@ ${apx.core.online.version} true - + + com.bbva.qtdi.employees.dto QTDIC001 0.0.1 - @@ -97,7 +97,7 @@ library-jdbc com.bbva.qtdi.employees.dto.*;version="${osgi.version.manifest}", - com.bbva.qtdi.lib.r001.*;version="${osgi.version.manifest}", + com.bbva.qtdi.lib.rc01.*;version="${osgi.version.manifest}", com.bbva.elara.*;version="${osgi.version.manifest}" ;resolution:="optional", org.osgi.framework;version="${osgi.version.manifest}";resolution:="optional", diff --git a/artifact/libraries/QTDIRC01/src/main/java/com/bbva/qtdi/lib/rc01/QTDIRC01.java b/artifact/libraries/QTDIRC01/src/main/java/com/bbva/qtdi/lib/rc01/QTDIRC01.java new file mode 100644 index 0000000..c688b08 --- /dev/null +++ b/artifact/libraries/QTDIRC01/src/main/java/com/bbva/qtdi/lib/rc01/QTDIRC01.java @@ -0,0 +1,7 @@ +package com.bbva.qtdi.lib.rc01; + +public interface QTDIRC01 { + + void execute(); + +} diff --git a/artifact/libraries/QTDIRC01IMPL/.classpath b/artifact/libraries/QTDIRC01IMPL/.classpath new file mode 100644 index 0000000..06662e6 --- /dev/null +++ b/artifact/libraries/QTDIRC01IMPL/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/artifact/libraries/QTDIRC01IMPL/.project b/artifact/libraries/QTDIRC01IMPL/.project new file mode 100644 index 0000000..f61bb41 --- /dev/null +++ b/artifact/libraries/QTDIRC01IMPL/.project @@ -0,0 +1,23 @@ + + + QTDIRC01IMPL + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/artifact/libraries/QTDIR001IMPL/pom.xml b/artifact/libraries/QTDIRC01IMPL/pom.xml similarity index 97% rename from artifact/libraries/QTDIR001IMPL/pom.xml rename to artifact/libraries/QTDIRC01IMPL/pom.xml index dc271b8..8083a9f 100644 --- a/artifact/libraries/QTDIR001IMPL/pom.xml +++ b/artifact/libraries/QTDIRC01IMPL/pom.xml @@ -9,8 +9,8 @@ com.bbva.qtdi - QTDIR001IMPL - QTDIR001IMPL + QTDIRC01IMPL + QTDIRC01IMPL 0.0.1 bundle @@ -22,7 +22,7 @@ com.bbva.qtdi - QTDIR001 + QTDIRC01 0.0.1 @@ -84,14 +84,13 @@ ${apx.jdbc.version} true - - + com.bbva.qtdi.employees.dto QTDIC001 0.0.1 - + org.springframework @@ -146,7 +145,7 @@ library-jdbc com.bbva.qtdi.employees.dto.*;version="${osgi.version.manifest}", - com.bbva.qtdi.lib.r001.*;version="${osgi.version.manifest}", + com.bbva.qtdi.lib.rc01.*;version="${osgi.version.manifest}", com.bbva.elara.*;version="${osgi.version.manifest}" ;resolution:="optional", org.osgi.framework;version="${osgi.version.manifest}";resolution:="optional", diff --git a/artifact/libraries/QTDIR001IMPL/src/main/java/com/bbva/qtdi/lib/r001/impl/QTDIR001Abstract.java b/artifact/libraries/QTDIRC01IMPL/src/main/java/com/bbva/qtdi/lib/rc01/impl/QTDIRC01Abstract.java similarity index 83% rename from artifact/libraries/QTDIR001IMPL/src/main/java/com/bbva/qtdi/lib/r001/impl/QTDIR001Abstract.java rename to artifact/libraries/QTDIRC01IMPL/src/main/java/com/bbva/qtdi/lib/rc01/impl/QTDIRC01Abstract.java index 593566e..565e985 100644 --- a/artifact/libraries/QTDIR001IMPL/src/main/java/com/bbva/qtdi/lib/r001/impl/QTDIR001Abstract.java +++ b/artifact/libraries/QTDIRC01IMPL/src/main/java/com/bbva/qtdi/lib/rc01/impl/QTDIRC01Abstract.java @@ -1,4 +1,4 @@ -package com.bbva.qtdi.lib.r001.impl; +package com.bbva.qtdi.lib.rc01.impl; import java.util.Map; @@ -8,11 +8,11 @@ import com.bbva.elara.configuration.manager.application.ApplicationConfigurationService; import com.bbva.elara.library.AbstractLibrary; import com.bbva.elara.utility.jdbc.JdbcUtils; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; -public abstract class QTDIR001Abstract extends AbstractLibrary implements QTDIR001 { +public abstract class QTDIRC01Abstract extends AbstractLibrary implements QTDIRC01 { - private static final Logger LOGGER = LoggerFactory.getLogger(QTDIR001.class); + private static final Logger LOGGER = LoggerFactory.getLogger(QTDIRC01.class); protected ApplicationConfigurationService applicationConfigurationService; diff --git a/artifact/libraries/QTDIR001IMPL/src/main/java/com/bbva/qtdi/lib/r001/impl/QTDIR001Impl.java b/artifact/libraries/QTDIRC01IMPL/src/main/java/com/bbva/qtdi/lib/rc01/impl/QTDIRC01Impl.java similarity index 53% rename from artifact/libraries/QTDIR001IMPL/src/main/java/com/bbva/qtdi/lib/r001/impl/QTDIR001Impl.java rename to artifact/libraries/QTDIRC01IMPL/src/main/java/com/bbva/qtdi/lib/rc01/impl/QTDIRC01Impl.java index f92fd34..fc27795 100644 --- a/artifact/libraries/QTDIR001IMPL/src/main/java/com/bbva/qtdi/lib/r001/impl/QTDIR001Impl.java +++ b/artifact/libraries/QTDIRC01IMPL/src/main/java/com/bbva/qtdi/lib/rc01/impl/QTDIRC01Impl.java @@ -1,13 +1,13 @@ -package com.bbva.qtdi.lib.r001.impl; +package com.bbva.qtdi.lib.rc01.impl; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; -public class QTDIR001Impl extends QTDIR001Abstract { +public class QTDIRC01Impl extends QTDIRC01Abstract { - private static final Logger LOGGER = LoggerFactory.getLogger(QTDIR001.class); + private static final Logger LOGGER = LoggerFactory.getLogger(QTDIRC01.class); @Override public void execute() { diff --git a/artifact/libraries/QTDIR001IMPL/src/main/resources/META-INF/spring/QTDIR001-app-osgi.xml b/artifact/libraries/QTDIRC01IMPL/src/main/resources/META-INF/spring/QTDIRC01-app-osgi.xml similarity index 100% rename from artifact/libraries/QTDIR001IMPL/src/main/resources/META-INF/spring/QTDIR001-app-osgi.xml rename to artifact/libraries/QTDIRC01IMPL/src/main/resources/META-INF/spring/QTDIRC01-app-osgi.xml diff --git a/artifact/libraries/QTDIR002IMPL/src/main/resources/META-INF/spring/QTDIR002-app.xml b/artifact/libraries/QTDIRC01IMPL/src/main/resources/META-INF/spring/QTDIRC01-app.xml similarity index 82% rename from artifact/libraries/QTDIR002IMPL/src/main/resources/META-INF/spring/QTDIR002-app.xml rename to artifact/libraries/QTDIRC01IMPL/src/main/resources/META-INF/spring/QTDIRC01-app.xml index 640275d..1386b54 100644 --- a/artifact/libraries/QTDIR002IMPL/src/main/resources/META-INF/spring/QTDIR002-app.xml +++ b/artifact/libraries/QTDIRC01IMPL/src/main/resources/META-INF/spring/QTDIRC01-app.xml @@ -5,7 +5,7 @@ http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd"> - + diff --git a/artifact/libraries/QTDIR002IMPL/src/main/resources/META-INF/spring/QTDIR002-arc-osgi.xml b/artifact/libraries/QTDIRC01IMPL/src/main/resources/META-INF/spring/QTDIRC01-arc-osgi.xml similarity index 89% rename from artifact/libraries/QTDIR002IMPL/src/main/resources/META-INF/spring/QTDIR002-arc-osgi.xml rename to artifact/libraries/QTDIRC01IMPL/src/main/resources/META-INF/spring/QTDIRC01-arc-osgi.xml index d59b2b4..57c19ad 100644 --- a/artifact/libraries/QTDIR002IMPL/src/main/resources/META-INF/spring/QTDIR002-arc-osgi.xml +++ b/artifact/libraries/QTDIRC01IMPL/src/main/resources/META-INF/spring/QTDIRC01-arc-osgi.xml @@ -4,8 +4,8 @@ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd"> - + - + diff --git a/artifact/libraries/QTDIR001IMPL/src/main/resources/multilanguage-ES.properties b/artifact/libraries/QTDIRC01IMPL/src/main/resources/multilanguage-ES.properties similarity index 100% rename from artifact/libraries/QTDIR001IMPL/src/main/resources/multilanguage-ES.properties rename to artifact/libraries/QTDIRC01IMPL/src/main/resources/multilanguage-ES.properties diff --git a/artifact/libraries/QTDIR001IMPL/src/main/resources/sql-QTDIR001IMPL.properties b/artifact/libraries/QTDIRC01IMPL/src/main/resources/sql-QTDIRC01IMPL.properties similarity index 100% rename from artifact/libraries/QTDIR001IMPL/src/main/resources/sql-QTDIR001IMPL.properties rename to artifact/libraries/QTDIRC01IMPL/src/main/resources/sql-QTDIRC01IMPL.properties diff --git a/artifact/libraries/QTDIR002IMPL/src/test/java/com/bbva/qtdi/lib/r002/QTDIR002Test.java b/artifact/libraries/QTDIRC01IMPL/src/test/java/com/bbva/qtdi/lib/rc01/QTDIRC01Test.java similarity index 61% rename from artifact/libraries/QTDIR002IMPL/src/test/java/com/bbva/qtdi/lib/r002/QTDIR002Test.java rename to artifact/libraries/QTDIRC01IMPL/src/test/java/com/bbva/qtdi/lib/rc01/QTDIRC01Test.java index 8723062..d96c33a 100644 --- a/artifact/libraries/QTDIR002IMPL/src/test/java/com/bbva/qtdi/lib/r002/QTDIR002Test.java +++ b/artifact/libraries/QTDIRC01IMPL/src/test/java/com/bbva/qtdi/lib/rc01/QTDIRC01Test.java @@ -1,4 +1,4 @@ -package com.bbva.qtdi.lib.r002; +package com.bbva.qtdi.lib.rc01; import javax.annotation.Resource; import org.junit.Before; @@ -12,17 +12,17 @@ @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { - "classpath:/META-INF/spring/QTDIR002-app.xml", - "classpath:/META-INF/spring/QTDIR002-app-test.xml", - "classpath:/META-INF/spring/QTDIR002-arc.xml", - "classpath:/META-INF/spring/QTDIR002-arc-test.xml" }) -public class QTDIR002Test { + "classpath:/META-INF/spring/QTDIRC01-app.xml", + "classpath:/META-INF/spring/QTDIRC01-app-test.xml", + "classpath:/META-INF/spring/QTDIRC01-arc.xml", + "classpath:/META-INF/spring/QTDIRC01-arc-test.xml" }) +public class QTDIRC01Test { private static final Logger LOGGER = LoggerFactory - .getLogger(QTDIR002.class); + .getLogger(QTDIRC01.class); - @Resource(name = "qtdiR002") - private QTDIR002 qtdiR002; + @Resource(name = "qtdiRC01") + private QTDIRC01 qtdiRC01; @Before public void setUp() throws Exception { @@ -30,9 +30,9 @@ public void setUp() throws Exception { } private Object getObjectIntrospection() throws Exception{ - Object result = this.qtdiR002; - if(this.qtdiR002 instanceof Advised){ - Advised advised = (Advised) this.qtdiR002; + Object result = this.qtdiRC01; + if(this.qtdiRC01 instanceof Advised){ + Advised advised = (Advised) this.qtdiRC01; result = advised.getTargetSource().getTarget(); } return result; @@ -41,7 +41,7 @@ private Object getObjectIntrospection() throws Exception{ @Test public void executeTest(){ LOGGER.info("Executing the test..."); - qtdiR002.execute(); + qtdiRC01.execute(); } } diff --git a/artifact/libraries/QTDIR002IMPL/src/test/java/com/bbva/qtdi/lib/r002/factory/JdbcUtilsFactory.java b/artifact/libraries/QTDIRC01IMPL/src/test/java/com/bbva/qtdi/lib/rc01/factory/JdbcUtilsFactory.java similarity index 93% rename from artifact/libraries/QTDIR002IMPL/src/test/java/com/bbva/qtdi/lib/r002/factory/JdbcUtilsFactory.java rename to artifact/libraries/QTDIRC01IMPL/src/test/java/com/bbva/qtdi/lib/rc01/factory/JdbcUtilsFactory.java index 8466962..92f334f 100644 --- a/artifact/libraries/QTDIR002IMPL/src/test/java/com/bbva/qtdi/lib/r002/factory/JdbcUtilsFactory.java +++ b/artifact/libraries/QTDIRC01IMPL/src/test/java/com/bbva/qtdi/lib/rc01/factory/JdbcUtilsFactory.java @@ -1,4 +1,4 @@ -package com.bbva.qtdi.lib.r002.factory; +package com.bbva.qtdi.lib.rc01.factory; import java.io.IOException; diff --git a/artifact/libraries/QTDIR001IMPL/src/test/java/com/bbva/qtdi/mock/ConfigurationFactoryMock.java b/artifact/libraries/QTDIRC01IMPL/src/test/java/com/bbva/qtdi/mock/ConfigurationFactoryMock.java similarity index 100% rename from artifact/libraries/QTDIR001IMPL/src/test/java/com/bbva/qtdi/mock/ConfigurationFactoryMock.java rename to artifact/libraries/QTDIRC01IMPL/src/test/java/com/bbva/qtdi/mock/ConfigurationFactoryMock.java diff --git a/artifact/libraries/QTDIR001IMPL/src/test/java/com/bbva/qtdi/mock/LibraryMonitorizationAspectMock.java b/artifact/libraries/QTDIRC01IMPL/src/test/java/com/bbva/qtdi/mock/LibraryMonitorizationAspectMock.java similarity index 100% rename from artifact/libraries/QTDIR001IMPL/src/test/java/com/bbva/qtdi/mock/LibraryMonitorizationAspectMock.java rename to artifact/libraries/QTDIRC01IMPL/src/test/java/com/bbva/qtdi/mock/LibraryMonitorizationAspectMock.java diff --git a/artifact/libraries/QTDIR001IMPL/src/test/java/com/bbva/qtdi/mock/MockBundleContext.java b/artifact/libraries/QTDIRC01IMPL/src/test/java/com/bbva/qtdi/mock/MockBundleContext.java similarity index 99% rename from artifact/libraries/QTDIR001IMPL/src/test/java/com/bbva/qtdi/mock/MockBundleContext.java rename to artifact/libraries/QTDIRC01IMPL/src/test/java/com/bbva/qtdi/mock/MockBundleContext.java index c4264d3..61c41ac 100644 --- a/artifact/libraries/QTDIR001IMPL/src/test/java/com/bbva/qtdi/mock/MockBundleContext.java +++ b/artifact/libraries/QTDIRC01IMPL/src/test/java/com/bbva/qtdi/mock/MockBundleContext.java @@ -56,7 +56,7 @@ public Bundle getBundle() { mockBundle.findEntries(Mockito.anyString(), Mockito.anyString(), Mockito.eq(true))).thenReturn( Collections.enumeration(urlList)); - Mockito.when(mockBundle.getSymbolicName()).thenReturn("QTDIR001IMPL-0.0.1"); + Mockito.when(mockBundle.getSymbolicName()).thenReturn("QTDIRC01IMPL-0.0.1"); Mockito.when(mockBundle.getVersion()).thenReturn(new Version("0.0.1")); return mockBundle; } diff --git a/artifact/libraries/QTDIR001IMPL/src/test/resources/META-INF/spring/QTDIR001-app-test.xml b/artifact/libraries/QTDIRC01IMPL/src/test/resources/META-INF/spring/QTDIRC01-app-test.xml similarity index 100% rename from artifact/libraries/QTDIR001IMPL/src/test/resources/META-INF/spring/QTDIR001-app-test.xml rename to artifact/libraries/QTDIRC01IMPL/src/test/resources/META-INF/spring/QTDIRC01-app-test.xml diff --git a/artifact/libraries/QTDIR002IMPL/src/test/resources/META-INF/spring/QTDIR002-arc-test.xml b/artifact/libraries/QTDIRC01IMPL/src/test/resources/META-INF/spring/QTDIRC01-arc-test.xml similarity index 93% rename from artifact/libraries/QTDIR002IMPL/src/test/resources/META-INF/spring/QTDIR002-arc-test.xml rename to artifact/libraries/QTDIRC01IMPL/src/test/resources/META-INF/spring/QTDIRC01-arc-test.xml index 46eefb4..a0d1dc5 100644 --- a/artifact/libraries/QTDIR002IMPL/src/test/resources/META-INF/spring/QTDIR002-arc-test.xml +++ b/artifact/libraries/QTDIRC01IMPL/src/test/resources/META-INF/spring/QTDIRC01-arc-test.xml @@ -16,5 +16,5 @@ - + diff --git a/artifact/libraries/QTDIR001IMPL/src/test/resources/log4j.xml b/artifact/libraries/QTDIRC01IMPL/src/test/resources/log4j.xml similarity index 100% rename from artifact/libraries/QTDIR001IMPL/src/test/resources/log4j.xml rename to artifact/libraries/QTDIRC01IMPL/src/test/resources/log4j.xml diff --git a/artifact/libraries/QTDIR001IMPL/src/test/resources/properties-test.properties b/artifact/libraries/QTDIRC01IMPL/src/test/resources/properties-test.properties similarity index 100% rename from artifact/libraries/QTDIR001IMPL/src/test/resources/properties-test.properties rename to artifact/libraries/QTDIRC01IMPL/src/test/resources/properties-test.properties diff --git a/artifact/libraries/QTDIRC02/.classpath b/artifact/libraries/QTDIRC02/.classpath new file mode 100644 index 0000000..06662e6 --- /dev/null +++ b/artifact/libraries/QTDIRC02/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/artifact/libraries/QTDIRC02/.project b/artifact/libraries/QTDIRC02/.project new file mode 100644 index 0000000..200ad4d --- /dev/null +++ b/artifact/libraries/QTDIRC02/.project @@ -0,0 +1,23 @@ + + + QTDIRC02 + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/artifact/libraries/QTDIR002/pom.xml b/artifact/libraries/QTDIRC02/pom.xml similarity index 91% rename from artifact/libraries/QTDIR002/pom.xml rename to artifact/libraries/QTDIRC02/pom.xml index e8eec42..59f6a4c 100644 --- a/artifact/libraries/QTDIR002/pom.xml +++ b/artifact/libraries/QTDIRC02/pom.xml @@ -9,8 +9,8 @@ com.bbva.qtdi - QTDIR002 - QTDIR002 + QTDIRC02 + QTDIRC02 0.0.1 bundle @@ -72,13 +72,7 @@ ${apx.core.online.version} true - - - - com.bbva.qtdi.employees.dto - QTDIC001 - 0.0.1 - + @@ -97,8 +91,8 @@ ${bundle-library-name} library-jdbc - com.bbva.qtdi.employees.dto.*;version="${osgi.version.manifest}", - com.bbva.qtdi.lib.r002.*;version="${osgi.version.manifest}", + com.bbva.qtdi.employees.dto.*;version="${osgi.version.manifest}", + com.bbva.qtdi.lib.rc02.*;version="${osgi.version.manifest}", com.bbva.elara.*;version="${osgi.version.manifest}" ;resolution:="optional", org.osgi.framework;version="${osgi.version.manifest}";resolution:="optional", diff --git a/artifact/libraries/QTDIRC02/src/main/java/com/bbva/qtdi/lib/rc02/QTDIRC02.java b/artifact/libraries/QTDIRC02/src/main/java/com/bbva/qtdi/lib/rc02/QTDIRC02.java new file mode 100644 index 0000000..781f709 --- /dev/null +++ b/artifact/libraries/QTDIRC02/src/main/java/com/bbva/qtdi/lib/rc02/QTDIRC02.java @@ -0,0 +1,7 @@ +package com.bbva.qtdi.lib.rc02; + +public interface QTDIRC02 { + + void execute(); + +} diff --git a/artifact/libraries/QTDIRC02IMPL/.classpath b/artifact/libraries/QTDIRC02IMPL/.classpath new file mode 100644 index 0000000..06662e6 --- /dev/null +++ b/artifact/libraries/QTDIRC02IMPL/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/artifact/libraries/QTDIRC02IMPL/.project b/artifact/libraries/QTDIRC02IMPL/.project new file mode 100644 index 0000000..eefdce6 --- /dev/null +++ b/artifact/libraries/QTDIRC02IMPL/.project @@ -0,0 +1,23 @@ + + + QTDIRC02IMPL + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/artifact/libraries/QTDIR002IMPL/pom.xml b/artifact/libraries/QTDIRC02IMPL/pom.xml similarity index 97% rename from artifact/libraries/QTDIR002IMPL/pom.xml rename to artifact/libraries/QTDIRC02IMPL/pom.xml index 1027b9a..3d210f2 100644 --- a/artifact/libraries/QTDIR002IMPL/pom.xml +++ b/artifact/libraries/QTDIRC02IMPL/pom.xml @@ -9,8 +9,8 @@ com.bbva.qtdi - QTDIR002IMPL - QTDIR002IMPL + QTDIRC02IMPL + QTDIRC02IMPL 0.0.1 bundle @@ -22,7 +22,7 @@ com.bbva.qtdi - QTDIR002 + QTDIRC02 0.0.1 @@ -84,16 +84,13 @@ ${apx.jdbc.version} true - - + + com.bbva.qtdi.employees.dto QTDIC001 0.0.1 - - - org.springframework @@ -148,7 +145,7 @@ library-jdbc com.bbva.qtdi.employees.dto.*;version="${osgi.version.manifest}", - com.bbva.qtdi.lib.r002.*;version="${osgi.version.manifest}", + com.bbva.qtdi.lib.rc02.*;version="${osgi.version.manifest}", com.bbva.elara.*;version="${osgi.version.manifest}" ;resolution:="optional", org.osgi.framework;version="${osgi.version.manifest}";resolution:="optional", diff --git a/artifact/libraries/QTDIR002IMPL/src/main/java/com/bbva/qtdi/lib/r002/impl/QTDIR002Abstract.java b/artifact/libraries/QTDIRC02IMPL/src/main/java/com/bbva/qtdi/lib/rc02/impl/QTDIRC02Abstract.java similarity index 83% rename from artifact/libraries/QTDIR002IMPL/src/main/java/com/bbva/qtdi/lib/r002/impl/QTDIR002Abstract.java rename to artifact/libraries/QTDIRC02IMPL/src/main/java/com/bbva/qtdi/lib/rc02/impl/QTDIRC02Abstract.java index d9af2c3..102300a 100644 --- a/artifact/libraries/QTDIR002IMPL/src/main/java/com/bbva/qtdi/lib/r002/impl/QTDIR002Abstract.java +++ b/artifact/libraries/QTDIRC02IMPL/src/main/java/com/bbva/qtdi/lib/rc02/impl/QTDIRC02Abstract.java @@ -1,4 +1,4 @@ -package com.bbva.qtdi.lib.r002.impl; +package com.bbva.qtdi.lib.rc02.impl; import java.util.Map; @@ -8,11 +8,11 @@ import com.bbva.elara.configuration.manager.application.ApplicationConfigurationService; import com.bbva.elara.library.AbstractLibrary; import com.bbva.elara.utility.jdbc.JdbcUtils; -import com.bbva.qtdi.lib.r002.QTDIR002; +import com.bbva.qtdi.lib.rc02.QTDIRC02; -public abstract class QTDIR002Abstract extends AbstractLibrary implements QTDIR002 { +public abstract class QTDIRC02Abstract extends AbstractLibrary implements QTDIRC02 { - private static final Logger LOGGER = LoggerFactory.getLogger(QTDIR002.class); + private static final Logger LOGGER = LoggerFactory.getLogger(QTDIRC02.class); protected ApplicationConfigurationService applicationConfigurationService; diff --git a/artifact/libraries/QTDIR002IMPL/src/main/java/com/bbva/qtdi/lib/r002/impl/QTDIR002Impl.java b/artifact/libraries/QTDIRC02IMPL/src/main/java/com/bbva/qtdi/lib/rc02/impl/QTDIRC02Impl.java similarity index 53% rename from artifact/libraries/QTDIR002IMPL/src/main/java/com/bbva/qtdi/lib/r002/impl/QTDIR002Impl.java rename to artifact/libraries/QTDIRC02IMPL/src/main/java/com/bbva/qtdi/lib/rc02/impl/QTDIRC02Impl.java index 9a09963..e208c6f 100644 --- a/artifact/libraries/QTDIR002IMPL/src/main/java/com/bbva/qtdi/lib/r002/impl/QTDIR002Impl.java +++ b/artifact/libraries/QTDIRC02IMPL/src/main/java/com/bbva/qtdi/lib/rc02/impl/QTDIRC02Impl.java @@ -1,13 +1,13 @@ -package com.bbva.qtdi.lib.r002.impl; +package com.bbva.qtdi.lib.rc02.impl; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import com.bbva.qtdi.lib.r002.QTDIR002; +import com.bbva.qtdi.lib.rc02.QTDIRC02; -public class QTDIR002Impl extends QTDIR002Abstract { +public class QTDIRC02Impl extends QTDIRC02Abstract { - private static final Logger LOGGER = LoggerFactory.getLogger(QTDIR002.class); + private static final Logger LOGGER = LoggerFactory.getLogger(QTDIRC02.class); @Override public void execute() { diff --git a/artifact/libraries/QTDIR002IMPL/src/main/resources/META-INF/spring/QTDIR002-app-osgi.xml b/artifact/libraries/QTDIRC02IMPL/src/main/resources/META-INF/spring/QTDIRC02-app-osgi.xml similarity index 100% rename from artifact/libraries/QTDIR002IMPL/src/main/resources/META-INF/spring/QTDIR002-app-osgi.xml rename to artifact/libraries/QTDIRC02IMPL/src/main/resources/META-INF/spring/QTDIRC02-app-osgi.xml diff --git a/artifact/libraries/QTDIR001IMPL/src/main/resources/META-INF/spring/QTDIR001-app.xml b/artifact/libraries/QTDIRC02IMPL/src/main/resources/META-INF/spring/QTDIRC02-app.xml similarity index 82% rename from artifact/libraries/QTDIR001IMPL/src/main/resources/META-INF/spring/QTDIR001-app.xml rename to artifact/libraries/QTDIRC02IMPL/src/main/resources/META-INF/spring/QTDIRC02-app.xml index 7163e02..ff4339c 100644 --- a/artifact/libraries/QTDIR001IMPL/src/main/resources/META-INF/spring/QTDIR001-app.xml +++ b/artifact/libraries/QTDIRC02IMPL/src/main/resources/META-INF/spring/QTDIRC02-app.xml @@ -5,7 +5,7 @@ http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd"> - + diff --git a/artifact/libraries/QTDIR001IMPL/src/main/resources/META-INF/spring/QTDIR001-arc-osgi.xml b/artifact/libraries/QTDIRC02IMPL/src/main/resources/META-INF/spring/QTDIRC02-arc-osgi.xml similarity index 89% rename from artifact/libraries/QTDIR001IMPL/src/main/resources/META-INF/spring/QTDIR001-arc-osgi.xml rename to artifact/libraries/QTDIRC02IMPL/src/main/resources/META-INF/spring/QTDIRC02-arc-osgi.xml index 890c02d..ca88f0d 100644 --- a/artifact/libraries/QTDIR001IMPL/src/main/resources/META-INF/spring/QTDIR001-arc-osgi.xml +++ b/artifact/libraries/QTDIRC02IMPL/src/main/resources/META-INF/spring/QTDIRC02-arc-osgi.xml @@ -4,8 +4,8 @@ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd"> - + - + diff --git a/artifact/libraries/QTDIR002IMPL/src/main/resources/multilanguage-ES.properties b/artifact/libraries/QTDIRC02IMPL/src/main/resources/multilanguage-ES.properties similarity index 100% rename from artifact/libraries/QTDIR002IMPL/src/main/resources/multilanguage-ES.properties rename to artifact/libraries/QTDIRC02IMPL/src/main/resources/multilanguage-ES.properties diff --git a/artifact/libraries/QTDIR002IMPL/src/main/resources/sql-QTDIR002IMPL.properties b/artifact/libraries/QTDIRC02IMPL/src/main/resources/sql-QTDIRC02IMPL.properties similarity index 100% rename from artifact/libraries/QTDIR002IMPL/src/main/resources/sql-QTDIR002IMPL.properties rename to artifact/libraries/QTDIRC02IMPL/src/main/resources/sql-QTDIRC02IMPL.properties diff --git a/artifact/libraries/QTDIR001IMPL/src/test/java/com/bbva/qtdi/lib/r001/QTDIR001Test.java b/artifact/libraries/QTDIRC02IMPL/src/test/java/com/bbva/qtdi/lib/rc02/QTDIRC02Test.java similarity index 61% rename from artifact/libraries/QTDIR001IMPL/src/test/java/com/bbva/qtdi/lib/r001/QTDIR001Test.java rename to artifact/libraries/QTDIRC02IMPL/src/test/java/com/bbva/qtdi/lib/rc02/QTDIRC02Test.java index 05b6e2f..eba216a 100644 --- a/artifact/libraries/QTDIR001IMPL/src/test/java/com/bbva/qtdi/lib/r001/QTDIR001Test.java +++ b/artifact/libraries/QTDIRC02IMPL/src/test/java/com/bbva/qtdi/lib/rc02/QTDIRC02Test.java @@ -1,4 +1,4 @@ -package com.bbva.qtdi.lib.r001; +package com.bbva.qtdi.lib.rc02; import javax.annotation.Resource; import org.junit.Before; @@ -12,17 +12,17 @@ @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { - "classpath:/META-INF/spring/QTDIR001-app.xml", - "classpath:/META-INF/spring/QTDIR001-app-test.xml", - "classpath:/META-INF/spring/QTDIR001-arc.xml", - "classpath:/META-INF/spring/QTDIR001-arc-test.xml" }) -public class QTDIR001Test { + "classpath:/META-INF/spring/QTDIRC02-app.xml", + "classpath:/META-INF/spring/QTDIRC02-app-test.xml", + "classpath:/META-INF/spring/QTDIRC02-arc.xml", + "classpath:/META-INF/spring/QTDIRC02-arc-test.xml" }) +public class QTDIRC02Test { private static final Logger LOGGER = LoggerFactory - .getLogger(QTDIR001.class); + .getLogger(QTDIRC02.class); - @Resource(name = "qtdiR001") - private QTDIR001 qtdiR001; + @Resource(name = "qtdiRC02") + private QTDIRC02 qtdiRC02; @Before public void setUp() throws Exception { @@ -30,9 +30,9 @@ public void setUp() throws Exception { } private Object getObjectIntrospection() throws Exception{ - Object result = this.qtdiR001; - if(this.qtdiR001 instanceof Advised){ - Advised advised = (Advised) this.qtdiR001; + Object result = this.qtdiRC02; + if(this.qtdiRC02 instanceof Advised){ + Advised advised = (Advised) this.qtdiRC02; result = advised.getTargetSource().getTarget(); } return result; @@ -41,7 +41,7 @@ private Object getObjectIntrospection() throws Exception{ @Test public void executeTest(){ LOGGER.info("Executing the test..."); - qtdiR001.execute(); + qtdiRC02.execute(); } } diff --git a/artifact/libraries/QTDIR001IMPL/src/test/java/com/bbva/qtdi/lib/r001/factory/JdbcUtilsFactory.java b/artifact/libraries/QTDIRC02IMPL/src/test/java/com/bbva/qtdi/lib/rc02/factory/JdbcUtilsFactory.java similarity index 93% rename from artifact/libraries/QTDIR001IMPL/src/test/java/com/bbva/qtdi/lib/r001/factory/JdbcUtilsFactory.java rename to artifact/libraries/QTDIRC02IMPL/src/test/java/com/bbva/qtdi/lib/rc02/factory/JdbcUtilsFactory.java index 20e7bf9..6421147 100644 --- a/artifact/libraries/QTDIR001IMPL/src/test/java/com/bbva/qtdi/lib/r001/factory/JdbcUtilsFactory.java +++ b/artifact/libraries/QTDIRC02IMPL/src/test/java/com/bbva/qtdi/lib/rc02/factory/JdbcUtilsFactory.java @@ -1,4 +1,4 @@ -package com.bbva.qtdi.lib.r001.factory; +package com.bbva.qtdi.lib.rc02.factory; import java.io.IOException; diff --git a/artifact/libraries/QTDIR002IMPL/src/test/java/com/bbva/qtdi/mock/ConfigurationFactoryMock.java b/artifact/libraries/QTDIRC02IMPL/src/test/java/com/bbva/qtdi/mock/ConfigurationFactoryMock.java similarity index 100% rename from artifact/libraries/QTDIR002IMPL/src/test/java/com/bbva/qtdi/mock/ConfigurationFactoryMock.java rename to artifact/libraries/QTDIRC02IMPL/src/test/java/com/bbva/qtdi/mock/ConfigurationFactoryMock.java diff --git a/artifact/libraries/QTDIR002IMPL/src/test/java/com/bbva/qtdi/mock/LibraryMonitorizationAspectMock.java b/artifact/libraries/QTDIRC02IMPL/src/test/java/com/bbva/qtdi/mock/LibraryMonitorizationAspectMock.java similarity index 100% rename from artifact/libraries/QTDIR002IMPL/src/test/java/com/bbva/qtdi/mock/LibraryMonitorizationAspectMock.java rename to artifact/libraries/QTDIRC02IMPL/src/test/java/com/bbva/qtdi/mock/LibraryMonitorizationAspectMock.java diff --git a/artifact/libraries/QTDIR002IMPL/src/test/java/com/bbva/qtdi/mock/MockBundleContext.java b/artifact/libraries/QTDIRC02IMPL/src/test/java/com/bbva/qtdi/mock/MockBundleContext.java similarity index 99% rename from artifact/libraries/QTDIR002IMPL/src/test/java/com/bbva/qtdi/mock/MockBundleContext.java rename to artifact/libraries/QTDIRC02IMPL/src/test/java/com/bbva/qtdi/mock/MockBundleContext.java index 7bf4b3a..b6193e0 100644 --- a/artifact/libraries/QTDIR002IMPL/src/test/java/com/bbva/qtdi/mock/MockBundleContext.java +++ b/artifact/libraries/QTDIRC02IMPL/src/test/java/com/bbva/qtdi/mock/MockBundleContext.java @@ -56,7 +56,7 @@ public Bundle getBundle() { mockBundle.findEntries(Mockito.anyString(), Mockito.anyString(), Mockito.eq(true))).thenReturn( Collections.enumeration(urlList)); - Mockito.when(mockBundle.getSymbolicName()).thenReturn("QTDIR002IMPL-0.0.1"); + Mockito.when(mockBundle.getSymbolicName()).thenReturn("QTDIRC02IMPL-0.0.1"); Mockito.when(mockBundle.getVersion()).thenReturn(new Version("0.0.1")); return mockBundle; } diff --git a/artifact/libraries/QTDIR002IMPL/src/test/resources/META-INF/spring/QTDIR002-app-test.xml b/artifact/libraries/QTDIRC02IMPL/src/test/resources/META-INF/spring/QTDIRC02-app-test.xml similarity index 100% rename from artifact/libraries/QTDIR002IMPL/src/test/resources/META-INF/spring/QTDIR002-app-test.xml rename to artifact/libraries/QTDIRC02IMPL/src/test/resources/META-INF/spring/QTDIRC02-app-test.xml diff --git a/artifact/libraries/QTDIR001IMPL/src/test/resources/META-INF/spring/QTDIR001-arc-test.xml b/artifact/libraries/QTDIRC02IMPL/src/test/resources/META-INF/spring/QTDIRC02-arc-test.xml similarity index 93% rename from artifact/libraries/QTDIR001IMPL/src/test/resources/META-INF/spring/QTDIR001-arc-test.xml rename to artifact/libraries/QTDIRC02IMPL/src/test/resources/META-INF/spring/QTDIRC02-arc-test.xml index 83312a6..f698647 100644 --- a/artifact/libraries/QTDIR001IMPL/src/test/resources/META-INF/spring/QTDIR001-arc-test.xml +++ b/artifact/libraries/QTDIRC02IMPL/src/test/resources/META-INF/spring/QTDIRC02-arc-test.xml @@ -16,5 +16,5 @@ - + diff --git a/artifact/libraries/QTDIR002IMPL/src/test/resources/log4j.xml b/artifact/libraries/QTDIRC02IMPL/src/test/resources/log4j.xml similarity index 100% rename from artifact/libraries/QTDIR002IMPL/src/test/resources/log4j.xml rename to artifact/libraries/QTDIRC02IMPL/src/test/resources/log4j.xml diff --git a/artifact/libraries/QTDIR002IMPL/src/test/resources/properties-test.properties b/artifact/libraries/QTDIRC02IMPL/src/test/resources/properties-test.properties similarity index 100% rename from artifact/libraries/QTDIR002IMPL/src/test/resources/properties-test.properties rename to artifact/libraries/QTDIRC02IMPL/src/test/resources/properties-test.properties diff --git a/artifact/libraries/pom.xml b/artifact/libraries/pom.xml index dbb4d7b..da47554 100644 --- a/artifact/libraries/pom.xml +++ b/artifact/libraries/pom.xml @@ -14,9 +14,9 @@ pom LIBRARIES - QTDIR001 - QTDIR001IMPL - QTDIR002 - QTDIR002IMPL + QTDIRC01 + QTDIRC01IMPL + QTDIRC02 + QTDIRC02IMPL diff --git a/artifact/transactions/QTDIT07101-CO/pom.xml b/artifact/transactions/QTDIT07101-CO/pom.xml index a91b265..f04149d 100644 --- a/artifact/transactions/QTDIT07101-CO/pom.xml +++ b/artifact/transactions/QTDIT07101-CO/pom.xml @@ -1,6 +1,4 @@ - - + 4.0.0 com.bbva.qtdi @@ -57,17 +55,18 @@ guava test - - com.bbva.qtdi - QTDIR001 - 0.0.1 - + com.bbva.qtdi.dto.applicants QTDIC001 [0.0, ) - + + com.bbva.qtdi + QTDIRC01 + 0.0.1 + + @@ -88,7 +87,7 @@ - + @@ -168,7 +167,7 @@ - + @@ -227,4 +226,4 @@ - + \ No newline at end of file diff --git a/artifact/transactions/QTDIT07101-CO/src/main/java/com/bbva/qtdi/QTDIT07101ESTransaction.java b/artifact/transactions/QTDIT07101-CO/src/main/java/com/bbva/qtdi/QTDIT07101ESTransaction.java index 25be515..ee7d28d 100644 --- a/artifact/transactions/QTDIT07101-CO/src/main/java/com/bbva/qtdi/QTDIT07101ESTransaction.java +++ b/artifact/transactions/QTDIT07101-CO/src/main/java/com/bbva/qtdi/QTDIT07101ESTransaction.java @@ -2,7 +2,7 @@ * */ package com.bbva.qtdi; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; /** * Create Applicants @@ -14,7 +14,7 @@ public class QTDIT07101ESTransaction extends AbstractQTDIT07101ESTransaction { @Override public void execute() { - QTDIR001 qtdiR001 = (QTDIR001)getServiceLibrary(QTDIR001.class); + QTDIRC01 qtdiRC01 = (QTDIRC01)getServiceLibrary(QTDIRC01.class); // TODO } diff --git a/artifact/transactions/QTDIT07301-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java b/artifact/transactions/QTDIT07101-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java similarity index 78% rename from artifact/transactions/QTDIT07301-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java rename to artifact/transactions/QTDIT07101-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java index 38a1337..474d177 100644 --- a/artifact/transactions/QTDIT07301-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java +++ b/artifact/transactions/QTDIT07101-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java @@ -1,8 +1,8 @@ package com.bbva.qtdi.mock; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; -public class QTDIR001Mock implements QTDIR001 { +public class QTDIRC01Mock implements QTDIRC01 { //Anadir todos los execute que tenga la interfaz de la libreria // diff --git a/artifact/transactions/QTDIT07101-CO/src/test/resources/META-INF/spring/QTDIT07101ESTest.xml b/artifact/transactions/QTDIT07101-CO/src/test/resources/META-INF/spring/QTDIT07101ESTest.xml index aa7b370..287b30b 100644 --- a/artifact/transactions/QTDIT07101-CO/src/test/resources/META-INF/spring/QTDIT07101ESTest.xml +++ b/artifact/transactions/QTDIT07101-CO/src/test/resources/META-INF/spring/QTDIT07101ESTest.xml @@ -37,5 +37,5 @@ - + diff --git a/artifact/transactions/QTDIT07201-CO/pom.xml b/artifact/transactions/QTDIT07201-CO/pom.xml index 73b8c00..505462f 100644 --- a/artifact/transactions/QTDIT07201-CO/pom.xml +++ b/artifact/transactions/QTDIT07201-CO/pom.xml @@ -1,6 +1,4 @@ - - + 4.0.0 com.bbva.qtdi @@ -57,17 +55,18 @@ guava test - - com.bbva.qtdi - QTDIR001 - 0.0.1 - + com.bbva.qtdi.dto.applicants QTDIC001 [0.0, ) - + + com.bbva.qtdi + QTDIRC01 + 0.0.1 + + @@ -88,7 +87,7 @@ - + @@ -168,7 +167,7 @@ - + diff --git a/artifact/transactions/QTDIT07201-CO/src/main/java/com/bbva/qtdi/QTDIT07201ESTransaction.java b/artifact/transactions/QTDIT07201-CO/src/main/java/com/bbva/qtdi/QTDIT07201ESTransaction.java index 2a07e28..9d94be5 100644 --- a/artifact/transactions/QTDIT07201-CO/src/main/java/com/bbva/qtdi/QTDIT07201ESTransaction.java +++ b/artifact/transactions/QTDIT07201-CO/src/main/java/com/bbva/qtdi/QTDIT07201ESTransaction.java @@ -2,7 +2,7 @@ * */ package com.bbva.qtdi; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; /** * Get Applicants by Id @@ -14,7 +14,7 @@ public class QTDIT07201ESTransaction extends AbstractQTDIT07201ESTransaction { @Override public void execute() { - QTDIR001 qtdiR001 = (QTDIR001)getServiceLibrary(QTDIR001.class); + QTDIRC01 qtdiRC01 = (QTDIRC01)getServiceLibrary(QTDIRC01.class); // TODO } diff --git a/artifact/transactions/QTDIT07101-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java b/artifact/transactions/QTDIT07201-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java similarity index 78% rename from artifact/transactions/QTDIT07101-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java rename to artifact/transactions/QTDIT07201-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java index 38a1337..474d177 100644 --- a/artifact/transactions/QTDIT07101-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java +++ b/artifact/transactions/QTDIT07201-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java @@ -1,8 +1,8 @@ package com.bbva.qtdi.mock; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; -public class QTDIR001Mock implements QTDIR001 { +public class QTDIRC01Mock implements QTDIRC01 { //Anadir todos los execute que tenga la interfaz de la libreria // diff --git a/artifact/transactions/QTDIT07201-CO/src/test/resources/META-INF/spring/QTDIT07201ESTest.xml b/artifact/transactions/QTDIT07201-CO/src/test/resources/META-INF/spring/QTDIT07201ESTest.xml index e2c6a6f..33f9e65 100644 --- a/artifact/transactions/QTDIT07201-CO/src/test/resources/META-INF/spring/QTDIT07201ESTest.xml +++ b/artifact/transactions/QTDIT07201-CO/src/test/resources/META-INF/spring/QTDIT07201ESTest.xml @@ -37,5 +37,5 @@ - + diff --git a/artifact/transactions/QTDIT07301-CO/pom.xml b/artifact/transactions/QTDIT07301-CO/pom.xml index fe44781..f3fdbd2 100644 --- a/artifact/transactions/QTDIT07301-CO/pom.xml +++ b/artifact/transactions/QTDIT07301-CO/pom.xml @@ -1,6 +1,4 @@ - - + 4.0.0 com.bbva.qtdi @@ -57,17 +55,18 @@ guava test - - com.bbva.qtdi - QTDIR001 - 0.0.1 - + com.bbva.qtdi.dto.applicants QTDIC001 [0.0, ) - + + com.bbva.qtdi + QTDIRC01 + 0.0.1 + + @@ -88,7 +87,7 @@ - + @@ -168,7 +167,7 @@ - + diff --git a/artifact/transactions/QTDIT07301-CO/src/main/java/com/bbva/qtdi/QTDIT07301ESTransaction.java b/artifact/transactions/QTDIT07301-CO/src/main/java/com/bbva/qtdi/QTDIT07301ESTransaction.java index 3f986f6..7e33631 100644 --- a/artifact/transactions/QTDIT07301-CO/src/main/java/com/bbva/qtdi/QTDIT07301ESTransaction.java +++ b/artifact/transactions/QTDIT07301-CO/src/main/java/com/bbva/qtdi/QTDIT07301ESTransaction.java @@ -2,7 +2,7 @@ * */ package com.bbva.qtdi; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; /** * Modify Applicants by Id @@ -14,7 +14,7 @@ public class QTDIT07301ESTransaction extends AbstractQTDIT07301ESTransaction { @Override public void execute() { - QTDIR001 qtdiR001 = (QTDIR001)getServiceLibrary(QTDIR001.class); + QTDIRC01 qtdiRC01 = (QTDIRC01)getServiceLibrary(QTDIRC01.class); // TODO } diff --git a/artifact/transactions/QTDIT07201-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java b/artifact/transactions/QTDIT07301-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java similarity index 78% rename from artifact/transactions/QTDIT07201-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java rename to artifact/transactions/QTDIT07301-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java index 38a1337..474d177 100644 --- a/artifact/transactions/QTDIT07201-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java +++ b/artifact/transactions/QTDIT07301-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java @@ -1,8 +1,8 @@ package com.bbva.qtdi.mock; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; -public class QTDIR001Mock implements QTDIR001 { +public class QTDIRC01Mock implements QTDIRC01 { //Anadir todos los execute que tenga la interfaz de la libreria // diff --git a/artifact/transactions/QTDIT07301-CO/src/test/resources/META-INF/spring/QTDIT07301ESTest.xml b/artifact/transactions/QTDIT07301-CO/src/test/resources/META-INF/spring/QTDIT07301ESTest.xml index 0027242..a9beb32 100644 --- a/artifact/transactions/QTDIT07301-CO/src/test/resources/META-INF/spring/QTDIT07301ESTest.xml +++ b/artifact/transactions/QTDIT07301-CO/src/test/resources/META-INF/spring/QTDIT07301ESTest.xml @@ -37,5 +37,5 @@ - + diff --git a/artifact/transactions/QTDIT07401-CO/pom.xml b/artifact/transactions/QTDIT07401-CO/pom.xml index ae1847d..70d6579 100644 --- a/artifact/transactions/QTDIT07401-CO/pom.xml +++ b/artifact/transactions/QTDIT07401-CO/pom.xml @@ -1,6 +1,4 @@ - - + 4.0.0 com.bbva.qtdi @@ -57,12 +55,13 @@ guava test - - com.bbva.qtdi - QTDIR001 - 0.0.1 - - + + + com.bbva.qtdi + QTDIRC01 + 0.0.1 + + @@ -83,7 +82,7 @@ - + @@ -163,7 +162,7 @@ - + diff --git a/artifact/transactions/QTDIT07401-CO/src/main/java/com/bbva/qtdi/QTDIT07401ESTransaction.java b/artifact/transactions/QTDIT07401-CO/src/main/java/com/bbva/qtdi/QTDIT07401ESTransaction.java index 0522a3b..43c0979 100644 --- a/artifact/transactions/QTDIT07401-CO/src/main/java/com/bbva/qtdi/QTDIT07401ESTransaction.java +++ b/artifact/transactions/QTDIT07401-CO/src/main/java/com/bbva/qtdi/QTDIT07401ESTransaction.java @@ -2,7 +2,7 @@ * */ package com.bbva.qtdi; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; /** * Delete Applicant by Id @@ -14,7 +14,7 @@ public class QTDIT07401ESTransaction extends AbstractQTDIT07401ESTransaction { @Override public void execute() { - QTDIR001 qtdiR001 = (QTDIR001)getServiceLibrary(QTDIR001.class); + QTDIRC01 qtdiRC01 = (QTDIRC01)getServiceLibrary(QTDIRC01.class); // TODO } diff --git a/artifact/transactions/QTDIT07401-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java b/artifact/transactions/QTDIT07401-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java similarity index 78% rename from artifact/transactions/QTDIT07401-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java rename to artifact/transactions/QTDIT07401-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java index 38a1337..474d177 100644 --- a/artifact/transactions/QTDIT07401-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java +++ b/artifact/transactions/QTDIT07401-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java @@ -1,8 +1,8 @@ package com.bbva.qtdi.mock; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; -public class QTDIR001Mock implements QTDIR001 { +public class QTDIRC01Mock implements QTDIRC01 { //Anadir todos los execute que tenga la interfaz de la libreria // diff --git a/artifact/transactions/QTDIT07401-CO/src/test/resources/META-INF/spring/QTDIT07401ESTest.xml b/artifact/transactions/QTDIT07401-CO/src/test/resources/META-INF/spring/QTDIT07401ESTest.xml index 91b69f4..e33fc75 100644 --- a/artifact/transactions/QTDIT07401-CO/src/test/resources/META-INF/spring/QTDIT07401ESTest.xml +++ b/artifact/transactions/QTDIT07401-CO/src/test/resources/META-INF/spring/QTDIT07401ESTest.xml @@ -37,5 +37,5 @@ - + diff --git a/artifact/transactions/QTDIT07501-CO/pom.xml b/artifact/transactions/QTDIT07501-CO/pom.xml index 72ebda2..8927e0c 100644 --- a/artifact/transactions/QTDIT07501-CO/pom.xml +++ b/artifact/transactions/QTDIT07501-CO/pom.xml @@ -60,9 +60,10 @@ QTDIC001 [0.0, ) - + + com.bbva.qtdi - QTDIR001 + QTDIRC01 0.0.1 diff --git a/artifact/transactions/QTDIT07501-CO/src/main/java/com/bbva/qtdi/QTDIT07501ESTransaction.java b/artifact/transactions/QTDIT07501-CO/src/main/java/com/bbva/qtdi/QTDIT07501ESTransaction.java index aa0a48d..959a605 100644 --- a/artifact/transactions/QTDIT07501-CO/src/main/java/com/bbva/qtdi/QTDIT07501ESTransaction.java +++ b/artifact/transactions/QTDIT07501-CO/src/main/java/com/bbva/qtdi/QTDIT07501ESTransaction.java @@ -2,7 +2,7 @@ * */ package com.bbva.qtdi; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; /** * consultingApplicants @@ -14,7 +14,7 @@ public class QTDIT07501ESTransaction extends AbstractQTDIT07501ESTransaction { @Override public void execute() { - QTDIR001 qtdiR001 = (QTDIR001)getServiceLibrary(QTDIR001.class); + QTDIRC01 qtdiRC01 = (QTDIRC01)getServiceLibrary(QTDIRC01.class); // TODO } diff --git a/artifact/transactions/QTDIT07501-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java b/artifact/transactions/QTDIT07501-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java deleted file mode 100644 index 38a1337..0000000 --- a/artifact/transactions/QTDIT07501-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.bbva.qtdi.mock; - -import com.bbva.qtdi.lib.r001.QTDIR001; - -public class QTDIR001Mock implements QTDIR001 { - - //Anadir todos los execute que tenga la interfaz de la libreria - // - // @Override - // public valor_de_retorno execute...(Parametro1 param1,...) { - // - // ... - // - // } - - - //Metodo execute generado por defecto - - @Override - public void execute() { - - //Anadir codigo de retorno - - } - -} diff --git a/artifact/transactions/QTDIT07501-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java b/artifact/transactions/QTDIT07501-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java new file mode 100644 index 0000000..474d177 --- /dev/null +++ b/artifact/transactions/QTDIT07501-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc01.QTDIRC01; + +public class QTDIRC01Mock implements QTDIRC01 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDIT07501-CO/src/test/resources/META-INF/spring/QTDIT07501ESTest.xml b/artifact/transactions/QTDIT07501-CO/src/test/resources/META-INF/spring/QTDIT07501ESTest.xml index a0b1d97..cd864b7 100644 --- a/artifact/transactions/QTDIT07501-CO/src/test/resources/META-INF/spring/QTDIT07501ESTest.xml +++ b/artifact/transactions/QTDIT07501-CO/src/test/resources/META-INF/spring/QTDIT07501ESTest.xml @@ -37,5 +37,5 @@ - + diff --git a/artifact/transactions/QTDIT07601-CO/pom.xml b/artifact/transactions/QTDIT07601-CO/pom.xml index 3892077..d7740d7 100644 --- a/artifact/transactions/QTDIT07601-CO/pom.xml +++ b/artifact/transactions/QTDIT07601-CO/pom.xml @@ -61,9 +61,10 @@ QTDIC001 [0.0, ) - + + com.bbva.qtdi - QTDIR001 + QTDIRC01 0.0.1 diff --git a/artifact/transactions/QTDIT07601-CO/src/main/java/com/bbva/qtdi/QTDIT07601ESTransaction.java b/artifact/transactions/QTDIT07601-CO/src/main/java/com/bbva/qtdi/QTDIT07601ESTransaction.java index c9d97c3..3d5f841 100644 --- a/artifact/transactions/QTDIT07601-CO/src/main/java/com/bbva/qtdi/QTDIT07601ESTransaction.java +++ b/artifact/transactions/QTDIT07601-CO/src/main/java/com/bbva/qtdi/QTDIT07601ESTransaction.java @@ -2,7 +2,7 @@ * */ package com.bbva.qtdi; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; /** * listApplicantsLanguageSkill @@ -14,7 +14,7 @@ public class QTDIT07601ESTransaction extends AbstractQTDIT07601ESTransaction { @Override public void execute() { - QTDIR001 qtdiR001 = (QTDIR001)getServiceLibrary(QTDIR001.class); + QTDIRC01 qtdiRC01 = (QTDIRC01)getServiceLibrary(QTDIRC01.class); // TODO } diff --git a/artifact/transactions/QTDIT07601-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java b/artifact/transactions/QTDIT07601-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java deleted file mode 100644 index 38a1337..0000000 --- a/artifact/transactions/QTDIT07601-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.bbva.qtdi.mock; - -import com.bbva.qtdi.lib.r001.QTDIR001; - -public class QTDIR001Mock implements QTDIR001 { - - //Anadir todos los execute que tenga la interfaz de la libreria - // - // @Override - // public valor_de_retorno execute...(Parametro1 param1,...) { - // - // ... - // - // } - - - //Metodo execute generado por defecto - - @Override - public void execute() { - - //Anadir codigo de retorno - - } - -} diff --git a/artifact/transactions/QTDIT07601-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java b/artifact/transactions/QTDIT07601-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java new file mode 100644 index 0000000..474d177 --- /dev/null +++ b/artifact/transactions/QTDIT07601-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc01.QTDIRC01; + +public class QTDIRC01Mock implements QTDIRC01 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDIT07601-CO/src/test/resources/META-INF/spring/QTDIT07601ESTest.xml b/artifact/transactions/QTDIT07601-CO/src/test/resources/META-INF/spring/QTDIT07601ESTest.xml index 0ec0f8c..5cd086f 100644 --- a/artifact/transactions/QTDIT07601-CO/src/test/resources/META-INF/spring/QTDIT07601ESTest.xml +++ b/artifact/transactions/QTDIT07601-CO/src/test/resources/META-INF/spring/QTDIT07601ESTest.xml @@ -37,5 +37,5 @@ - + diff --git a/artifact/transactions/QTDIT07701-CO/pom.xml b/artifact/transactions/QTDIT07701-CO/pom.xml index 5f1cc7d..c96a9ac 100644 --- a/artifact/transactions/QTDIT07701-CO/pom.xml +++ b/artifact/transactions/QTDIT07701-CO/pom.xml @@ -1,6 +1,4 @@ - - + 4.0.0 com.bbva.qtdi @@ -57,17 +55,18 @@ guava test - - com.bbva.qtdi - QTDIR001 - 0.0.1 - + com.bbva.qtdi.dto.applicants QTDIC001 [0.0, ) - + + com.bbva.qtdi + QTDIRC01 + 0.0.1 + + @@ -88,7 +87,7 @@ - + @@ -168,7 +167,7 @@ - + diff --git a/artifact/transactions/QTDIT07701-CO/src/main/java/com/bbva/qtdi/QTDIT07701ESTransaction.java b/artifact/transactions/QTDIT07701-CO/src/main/java/com/bbva/qtdi/QTDIT07701ESTransaction.java index 3181b41..c6ad6bc 100644 --- a/artifact/transactions/QTDIT07701-CO/src/main/java/com/bbva/qtdi/QTDIT07701ESTransaction.java +++ b/artifact/transactions/QTDIT07701-CO/src/main/java/com/bbva/qtdi/QTDIT07701ESTransaction.java @@ -2,7 +2,7 @@ * */ package com.bbva.qtdi; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; /** * createApplicantsLanguegeSkill @@ -14,7 +14,7 @@ public class QTDIT07701ESTransaction extends AbstractQTDIT07701ESTransaction { @Override public void execute() { - QTDIR001 qtdiR001 = (QTDIR001)getServiceLibrary(QTDIR001.class); + QTDIRC01 qtdiRC01 = (QTDIRC01)getServiceLibrary(QTDIRC01.class); // TODO } diff --git a/artifact/transactions/QTDIT07701-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java b/artifact/transactions/QTDIT07701-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java deleted file mode 100644 index 38a1337..0000000 --- a/artifact/transactions/QTDIT07701-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.bbva.qtdi.mock; - -import com.bbva.qtdi.lib.r001.QTDIR001; - -public class QTDIR001Mock implements QTDIR001 { - - //Anadir todos los execute que tenga la interfaz de la libreria - // - // @Override - // public valor_de_retorno execute...(Parametro1 param1,...) { - // - // ... - // - // } - - - //Metodo execute generado por defecto - - @Override - public void execute() { - - //Anadir codigo de retorno - - } - -} diff --git a/artifact/transactions/QTDIT07701-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java b/artifact/transactions/QTDIT07701-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java new file mode 100644 index 0000000..474d177 --- /dev/null +++ b/artifact/transactions/QTDIT07701-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc01.QTDIRC01; + +public class QTDIRC01Mock implements QTDIRC01 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDIT07701-CO/src/test/resources/META-INF/spring/QTDIT07701ESTest.xml b/artifact/transactions/QTDIT07701-CO/src/test/resources/META-INF/spring/QTDIT07701ESTest.xml index 33b3e58..9e160af 100644 --- a/artifact/transactions/QTDIT07701-CO/src/test/resources/META-INF/spring/QTDIT07701ESTest.xml +++ b/artifact/transactions/QTDIT07701-CO/src/test/resources/META-INF/spring/QTDIT07701ESTest.xml @@ -37,5 +37,5 @@ - + diff --git a/artifact/transactions/QTDIT07801-CO/pom.xml b/artifact/transactions/QTDIT07801-CO/pom.xml index 421c7dd..71af902 100644 --- a/artifact/transactions/QTDIT07801-CO/pom.xml +++ b/artifact/transactions/QTDIT07801-CO/pom.xml @@ -1,6 +1,4 @@ - - + 4.0.0 com.bbva.qtdi @@ -57,17 +55,18 @@ guava test - - com.bbva.qtdi - QTDIR001 - 0.0.1 - + com.bbva.qtdi.dto.applicants QTDIC001 [0.0, ) - + + com.bbva.qtdi + QTDIRC01 + 0.0.1 + + @@ -88,7 +87,7 @@ - + @@ -168,7 +167,7 @@ - + diff --git a/artifact/transactions/QTDIT07801-CO/src/main/java/com/bbva/qtdi/QTDIT07801ESTransaction.java b/artifact/transactions/QTDIT07801-CO/src/main/java/com/bbva/qtdi/QTDIT07801ESTransaction.java index fa0296c..7a3d50e 100644 --- a/artifact/transactions/QTDIT07801-CO/src/main/java/com/bbva/qtdi/QTDIT07801ESTransaction.java +++ b/artifact/transactions/QTDIT07801-CO/src/main/java/com/bbva/qtdi/QTDIT07801ESTransaction.java @@ -2,7 +2,7 @@ * */ package com.bbva.qtdi; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; /** * getApplicantsIdLanguageSkill @@ -14,7 +14,7 @@ public class QTDIT07801ESTransaction extends AbstractQTDIT07801ESTransaction { @Override public void execute() { - QTDIR001 qtdiR001 = (QTDIR001)getServiceLibrary(QTDIR001.class); + QTDIRC01 qtdiRC01 = (QTDIRC01)getServiceLibrary(QTDIRC01.class); // TODO } diff --git a/artifact/transactions/QTDIT07801-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java b/artifact/transactions/QTDIT07801-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java deleted file mode 100644 index 38a1337..0000000 --- a/artifact/transactions/QTDIT07801-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.bbva.qtdi.mock; - -import com.bbva.qtdi.lib.r001.QTDIR001; - -public class QTDIR001Mock implements QTDIR001 { - - //Anadir todos los execute que tenga la interfaz de la libreria - // - // @Override - // public valor_de_retorno execute...(Parametro1 param1,...) { - // - // ... - // - // } - - - //Metodo execute generado por defecto - - @Override - public void execute() { - - //Anadir codigo de retorno - - } - -} diff --git a/artifact/transactions/QTDIT07801-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java b/artifact/transactions/QTDIT07801-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java new file mode 100644 index 0000000..474d177 --- /dev/null +++ b/artifact/transactions/QTDIT07801-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc01.QTDIRC01; + +public class QTDIRC01Mock implements QTDIRC01 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDIT07801-CO/src/test/resources/META-INF/spring/QTDIT07801ESTest.xml b/artifact/transactions/QTDIT07801-CO/src/test/resources/META-INF/spring/QTDIT07801ESTest.xml index 463d9a9..b205f1f 100644 --- a/artifact/transactions/QTDIT07801-CO/src/test/resources/META-INF/spring/QTDIT07801ESTest.xml +++ b/artifact/transactions/QTDIT07801-CO/src/test/resources/META-INF/spring/QTDIT07801ESTest.xml @@ -37,5 +37,5 @@ - + diff --git a/artifact/transactions/QTDIT07901-CO/pom.xml b/artifact/transactions/QTDIT07901-CO/pom.xml index a8ee486..24c09b6 100644 --- a/artifact/transactions/QTDIT07901-CO/pom.xml +++ b/artifact/transactions/QTDIT07901-CO/pom.xml @@ -1,6 +1,4 @@ - - + 4.0.0 com.bbva.qtdi @@ -57,17 +55,18 @@ guava test - - com.bbva.qtdi - QTDIR001 - 0.0.1 - + com.bbva.qtdi.dto.applicants QTDIC001 [0.0, ) - + + com.bbva.qtdi + QTDIRC01 + 0.0.1 + + @@ -88,7 +87,7 @@ - + @@ -168,7 +167,7 @@ - + diff --git a/artifact/transactions/QTDIT07901-CO/src/main/java/com/bbva/qtdi/QTDIT07901ESTransaction.java b/artifact/transactions/QTDIT07901-CO/src/main/java/com/bbva/qtdi/QTDIT07901ESTransaction.java index 6b1b78e..b13e73d 100644 --- a/artifact/transactions/QTDIT07901-CO/src/main/java/com/bbva/qtdi/QTDIT07901ESTransaction.java +++ b/artifact/transactions/QTDIT07901-CO/src/main/java/com/bbva/qtdi/QTDIT07901ESTransaction.java @@ -2,7 +2,7 @@ * */ package com.bbva.qtdi; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; /** * modifyApplicantsLanguageSkill @@ -14,7 +14,7 @@ public class QTDIT07901ESTransaction extends AbstractQTDIT07901ESTransaction { @Override public void execute() { - QTDIR001 qtdiR001 = (QTDIR001)getServiceLibrary(QTDIR001.class); + QTDIRC01 qtdiRC01 = (QTDIRC01)getServiceLibrary(QTDIRC01.class); // TODO } diff --git a/artifact/transactions/QTDIT07901-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java b/artifact/transactions/QTDIT07901-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java deleted file mode 100644 index 38a1337..0000000 --- a/artifact/transactions/QTDIT07901-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.bbva.qtdi.mock; - -import com.bbva.qtdi.lib.r001.QTDIR001; - -public class QTDIR001Mock implements QTDIR001 { - - //Anadir todos los execute que tenga la interfaz de la libreria - // - // @Override - // public valor_de_retorno execute...(Parametro1 param1,...) { - // - // ... - // - // } - - - //Metodo execute generado por defecto - - @Override - public void execute() { - - //Anadir codigo de retorno - - } - -} diff --git a/artifact/transactions/QTDIT07901-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java b/artifact/transactions/QTDIT07901-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java new file mode 100644 index 0000000..474d177 --- /dev/null +++ b/artifact/transactions/QTDIT07901-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc01.QTDIRC01; + +public class QTDIRC01Mock implements QTDIRC01 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDIT07901-CO/src/test/resources/META-INF/spring/QTDIT07901ESTest.xml b/artifact/transactions/QTDIT07901-CO/src/test/resources/META-INF/spring/QTDIT07901ESTest.xml index 5afa396..bdbecc8 100644 --- a/artifact/transactions/QTDIT07901-CO/src/test/resources/META-INF/spring/QTDIT07901ESTest.xml +++ b/artifact/transactions/QTDIT07901-CO/src/test/resources/META-INF/spring/QTDIT07901ESTest.xml @@ -37,5 +37,5 @@ - + diff --git a/artifact/transactions/QTDIT08001-CO/pom.xml b/artifact/transactions/QTDIT08001-CO/pom.xml index b12b01d..c3b7f69 100644 --- a/artifact/transactions/QTDIT08001-CO/pom.xml +++ b/artifact/transactions/QTDIT08001-CO/pom.xml @@ -55,9 +55,10 @@ guava test - + + com.bbva.qtdi - QTDIR001 + QTDIRC01 0.0.1 diff --git a/artifact/transactions/QTDIT08001-CO/src/main/java/com/bbva/qtdi/QTDIT08001ESTransaction.java b/artifact/transactions/QTDIT08001-CO/src/main/java/com/bbva/qtdi/QTDIT08001ESTransaction.java index b124619..c182b85 100644 --- a/artifact/transactions/QTDIT08001-CO/src/main/java/com/bbva/qtdi/QTDIT08001ESTransaction.java +++ b/artifact/transactions/QTDIT08001-CO/src/main/java/com/bbva/qtdi/QTDIT08001ESTransaction.java @@ -2,7 +2,7 @@ * */ package com.bbva.qtdi; -import com.bbva.qtdi.lib.r001.QTDIR001; +import com.bbva.qtdi.lib.rc01.QTDIRC01; /** * DeleteApplicantsLanguagesSkills @@ -14,7 +14,7 @@ public class QTDIT08001ESTransaction extends AbstractQTDIT08001ESTransaction { @Override public void execute() { - QTDIR001 qtdiR001 = (QTDIR001)getServiceLibrary(QTDIR001.class); + QTDIRC01 qtdiRC01 = (QTDIRC01)getServiceLibrary(QTDIRC01.class); // TODO } diff --git a/artifact/transactions/QTDIT08001-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java b/artifact/transactions/QTDIT08001-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java deleted file mode 100644 index 38a1337..0000000 --- a/artifact/transactions/QTDIT08001-CO/src/test/java/com/bbva/qtdi/mock/QTDIR001Mock.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.bbva.qtdi.mock; - -import com.bbva.qtdi.lib.r001.QTDIR001; - -public class QTDIR001Mock implements QTDIR001 { - - //Anadir todos los execute que tenga la interfaz de la libreria - // - // @Override - // public valor_de_retorno execute...(Parametro1 param1,...) { - // - // ... - // - // } - - - //Metodo execute generado por defecto - - @Override - public void execute() { - - //Anadir codigo de retorno - - } - -} diff --git a/artifact/transactions/QTDIT08001-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java b/artifact/transactions/QTDIT08001-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java new file mode 100644 index 0000000..474d177 --- /dev/null +++ b/artifact/transactions/QTDIT08001-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC01Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc01.QTDIRC01; + +public class QTDIRC01Mock implements QTDIRC01 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDIT08001-CO/src/test/resources/META-INF/spring/QTDIT08001ESTest.xml b/artifact/transactions/QTDIT08001-CO/src/test/resources/META-INF/spring/QTDIT08001ESTest.xml index d88e25e..c587fab 100644 --- a/artifact/transactions/QTDIT08001-CO/src/test/resources/META-INF/spring/QTDIT08001ESTest.xml +++ b/artifact/transactions/QTDIT08001-CO/src/test/resources/META-INF/spring/QTDIT08001ESTest.xml @@ -37,5 +37,5 @@ - + diff --git a/artifact/transactions/QTDIT09001-CO/.project b/artifact/transactions/QTDIT09001-CO/.project deleted file mode 100644 index a75216d..0000000 --- a/artifact/transactions/QTDIT09001-CO/.project +++ /dev/null @@ -1,29 +0,0 @@ - - - QTDIT09001-CO - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.springframework.ide.eclipse.core.springbuilder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.springframework.ide.eclipse.core.springnature - org.eclipse.jdt.core.javanature - org.eclipse.m2e.core.maven2Nature - - diff --git a/artifact/transactions/QTDIT09001-CO/src/main/java/com/bbva/qtdi/AbstractQTDIT09001ESTransaction.java b/artifact/transactions/QTDIT09001-CO/src/main/java/com/bbva/qtdi/AbstractQTDIT09001ESTransaction.java deleted file mode 100644 index 0d91394..0000000 --- a/artifact/transactions/QTDIT09001-CO/src/main/java/com/bbva/qtdi/AbstractQTDIT09001ESTransaction.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.bbva.qtdi; - -import java.util.List; - -import com.bbva.elara.transaction.AbstractTransaction; -import com.bbva.qtdi.employees.dto.DTOIntAuthorizationQuestion; - -public abstract class AbstractQTDIT09001ESTransaction extends AbstractTransaction { - - public AbstractQTDIT09001ESTransaction(){ - } - /** - * Return value for input parameter enabled - */ - protected Boolean getEnabled() - { - return (Boolean)getParameter("enabled"); - } - - - - - - - /** - * Set value for output parameter data - */ - protected void setData(final List field){ - this.addParameter("data", field); - } - -} diff --git a/artifact/transactions/QTDIT09001-CO/src/main/resources/QTDIT090-01-ES.xml b/artifact/transactions/QTDIT09001-CO/src/main/resources/QTDIT090-01-ES.xml deleted file mode 100644 index 40b87ff..0000000 --- a/artifact/transactions/QTDIT09001-CO/src/main/resources/QTDIT090-01-ES.xml +++ /dev/null @@ -1 +0,0 @@ -GET authorization questions \ No newline at end of file diff --git a/artifact/libraries/QTDIR001/.classpath b/artifact/transactions/QTDITC0101-CO/.classpath similarity index 100% rename from artifact/libraries/QTDIR001/.classpath rename to artifact/transactions/QTDITC0101-CO/.classpath diff --git a/artifact/libraries/QTDIR001/.project b/artifact/transactions/QTDITC0101-CO/.project similarity index 96% rename from artifact/libraries/QTDIR001/.project rename to artifact/transactions/QTDITC0101-CO/.project index bceda69..f3b7852 100644 --- a/artifact/libraries/QTDIR001/.project +++ b/artifact/transactions/QTDITC0101-CO/.project @@ -1,6 +1,6 @@ - QTDIR001 + QTDITC0101-CO @@ -11,12 +11,12 @@ - org.eclipse.m2e.core.maven2Builder + org.springframework.ide.eclipse.core.springbuilder - org.springframework.ide.eclipse.core.springbuilder + org.eclipse.m2e.core.maven2Builder diff --git a/artifact/libraries/QTDIR001/.settings/org.eclipse.core.resources.prefs b/artifact/transactions/QTDITC0101-CO/.settings/org.eclipse.core.resources.prefs similarity index 100% rename from artifact/libraries/QTDIR001/.settings/org.eclipse.core.resources.prefs rename to artifact/transactions/QTDITC0101-CO/.settings/org.eclipse.core.resources.prefs diff --git a/artifact/libraries/QTDIR001/.settings/org.eclipse.jdt.core.prefs b/artifact/transactions/QTDITC0101-CO/.settings/org.eclipse.jdt.core.prefs similarity index 100% rename from artifact/libraries/QTDIR001/.settings/org.eclipse.jdt.core.prefs rename to artifact/transactions/QTDITC0101-CO/.settings/org.eclipse.jdt.core.prefs diff --git a/artifact/transactions/QTDITC0101-CO/pom.xml b/artifact/transactions/QTDITC0101-CO/pom.xml new file mode 100644 index 0000000..00ef2d5 --- /dev/null +++ b/artifact/transactions/QTDITC0101-CO/pom.xml @@ -0,0 +1,225 @@ + + + 4.0.0 + + com.bbva.qtdi + TRANSACTIONS + 0.0.1 + + com.bbva.qtdi + QTDITC01 + 01-CO + GET support-document-type + + 0.0 + + + + com.bbva.elara + elara-transaction + ${apx.core.online.version} + compile + + + com.bbva.elara + elara-test + ${apx.core.online.version} + test + + + org.eclipse.persistence + org.eclipse.persistence.jpa + test + + + org.springframework + spring-test + test + + + org.springframework + spring-beans + test + + + org.springframework + spring-tx + test + + + org.mockito + mockito-all + test + + + com.google.guava + guava + test + + + com.bbva.qtdi + QTDIRC02 + 0.0.1 + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.felix + maven-bundle-plugin + [2.3.7,) + + manifest + + + + + + + + + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + bundle-manifest + process-classes + + manifest + + + + + + jar + + + ${project.artifactId}-${project.version} + com.bbva.qtdi.QTDITC0101COTransaction + transaction + com.bbva.elara.*;version="${arc.osgi.version}",*;version="${arc.osgi.version}" + + + + + maven-jar-plugin + 2.3.1 + + ${project.artifactId}-${project.version} + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + maven-resources-plugin + + + copy-resources + install + + copy-resources + + + ${project.build.directory}/config + + + src/main/resources + + **/database-${project.artifactId}-${project.version}.properties + **/database-passw-${project.artifactId}-${project.version}.properties + **/${project.artifactId}-${project.version}.properties + + + + + + + + + maven-antrun-plugin + + + install + + run + + + + + + + + + + + org.jacoco + jacoco-maven-plugin + 0.7.7.201606060606 + + + default-prepare-agent + + prepare-agent + + + + default-prepare-agent-integration + + prepare-agent-integration + + + + default-report + + report + + + + default-report-integration + + report-integration + + + + default-check + + check + + + + + BUNDLE + + + ${jacoco.type.coverage} + COVEREDRATIO + ${jacoco.no.coverage} + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC0101-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC0101COTransaction.java b/artifact/transactions/QTDITC0101-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC0101COTransaction.java new file mode 100644 index 0000000..6ccffb6 --- /dev/null +++ b/artifact/transactions/QTDITC0101-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC0101COTransaction.java @@ -0,0 +1,15 @@ +package com.bbva.qtdi; + +import com.bbva.elara.transaction.AbstractTransaction; + +public abstract class AbstractQTDITC0101COTransaction extends AbstractTransaction { + + public AbstractQTDITC0101COTransaction(){ + } + + + + + + +} diff --git a/artifact/transactions/QTDITC0101-CO/src/main/java/com/bbva/qtdi/QTDITC0101COTransaction.java b/artifact/transactions/QTDITC0101-CO/src/main/java/com/bbva/qtdi/QTDITC0101COTransaction.java new file mode 100644 index 0000000..15d13bb --- /dev/null +++ b/artifact/transactions/QTDITC0101-CO/src/main/java/com/bbva/qtdi/QTDITC0101COTransaction.java @@ -0,0 +1,21 @@ +/** + * + */ +package com.bbva.qtdi; +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +/** + * GET support-document-type + * Business Logic implementation. + * @author Novatec Solutions + * + */ +public class QTDITC0101COTransaction extends AbstractQTDITC0101COTransaction { + + @Override + public void execute() { + QTDIRC02 qtdiRC02 = (QTDIRC02)getServiceLibrary(QTDIRC02.class); + // TODO + } + +} diff --git a/artifact/transactions/QTDIT09001-CO/src/main/resources/META-INF/MANIFEST.MF b/artifact/transactions/QTDITC0101-CO/src/main/resources/META-INF/MANIFEST.MF similarity index 100% rename from artifact/transactions/QTDIT09001-CO/src/main/resources/META-INF/MANIFEST.MF rename to artifact/transactions/QTDITC0101-CO/src/main/resources/META-INF/MANIFEST.MF diff --git a/artifact/transactions/QTDITC0101-CO/src/main/resources/QTDITC01-01-CO.xml b/artifact/transactions/QTDITC0101-CO/src/main/resources/QTDITC01-01-CO.xml new file mode 100644 index 0000000..0c9ac52 --- /dev/null +++ b/artifact/transactions/QTDITC0101-CO/src/main/resources/QTDITC01-01-CO.xml @@ -0,0 +1 @@ +GET support-document-types-id \ No newline at end of file diff --git a/artifact/transactions/QTDIT09001-CO/src/main/resources/multilanguage-ES.properties b/artifact/transactions/QTDITC0101-CO/src/main/resources/multilanguage-CO.properties similarity index 100% rename from artifact/transactions/QTDIT09001-CO/src/main/resources/multilanguage-ES.properties rename to artifact/transactions/QTDITC0101-CO/src/main/resources/multilanguage-CO.properties diff --git a/artifact/transactions/QTDIT09001-CO/src/test/java/com/bbva/qtdi/QTDIT09001ESTransactionTest.java b/artifact/transactions/QTDITC0101-CO/src/test/java/com/bbva/qtdi/QTDITC0101COTransactionTest.java similarity index 92% rename from artifact/transactions/QTDIT09001-CO/src/test/java/com/bbva/qtdi/QTDIT09001ESTransactionTest.java rename to artifact/transactions/QTDITC0101-CO/src/test/java/com/bbva/qtdi/QTDITC0101COTransactionTest.java index 3ccc596..4d86e59 100644 --- a/artifact/transactions/QTDIT09001-CO/src/test/java/com/bbva/qtdi/QTDIT09001ESTransactionTest.java +++ b/artifact/transactions/QTDITC0101-CO/src/test/java/com/bbva/qtdi/QTDITC0101COTransactionTest.java @@ -26,21 +26,20 @@ import com.bbva.elara.domain.transaction.request.TransactionRequest; import com.bbva.elara.domain.transaction.request.body.CommonRequestBody; import com.bbva.elara.test.osgi.DummyBundleContext; -import com.bbva.qtdi.QTDIT09001ESTransaction; /** - * Test for transaction QTDIT09001ESTransaction + * Test for transaction QTDITC0101COTransaction */ @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "classpath:/META-INF/spring/elara-test.xml", - "classpath:/META-INF/spring/QTDIT09001ESTest.xml" }) -public class QTDIT09001ESTransactionTest { - private static final Logger LOGGER = LoggerFactory.getLogger(QTDIT09001ESTransactionTest.class); + "classpath:/META-INF/spring/QTDITC0101COTest.xml" }) +public class QTDITC0101COTransactionTest { + private static final Logger LOGGER = LoggerFactory.getLogger(QTDITC0101COTransactionTest.class); @Autowired - private QTDIT09001ESTransaction transaction; + private QTDITC0101COTransaction transaction; @Resource(name="dummyBundleContext") private DummyBundleContext bundleContext; diff --git a/artifact/transactions/QTDITC0101-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java b/artifact/transactions/QTDITC0101-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java new file mode 100644 index 0000000..c9d694e --- /dev/null +++ b/artifact/transactions/QTDITC0101-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +public class QTDIRC02Mock implements QTDIRC02 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDITC0101-CO/src/test/resources/META-INF/spring/QTDITC0101COTest.xml b/artifact/transactions/QTDITC0101-CO/src/test/resources/META-INF/spring/QTDITC0101COTest.xml new file mode 100644 index 0000000..ee00d9f --- /dev/null +++ b/artifact/transactions/QTDITC0101-CO/src/test/resources/META-INF/spring/QTDITC0101COTest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + classpath:/common-env.properties + classpath:/QTDI.properties + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDIT09001-CO/src/test/resources/QTDI.properties b/artifact/transactions/QTDITC0101-CO/src/test/resources/QTDI.properties similarity index 100% rename from artifact/transactions/QTDIT09001-CO/src/test/resources/QTDI.properties rename to artifact/transactions/QTDITC0101-CO/src/test/resources/QTDI.properties diff --git a/artifact/transactions/QTDIT09001-CO/src/test/resources/common-env.properties b/artifact/transactions/QTDITC0101-CO/src/test/resources/common-env.properties similarity index 100% rename from artifact/transactions/QTDIT09001-CO/src/test/resources/common-env.properties rename to artifact/transactions/QTDITC0101-CO/src/test/resources/common-env.properties diff --git a/artifact/transactions/QTDIT09001-CO/src/test/resources/log4j.xml b/artifact/transactions/QTDITC0101-CO/src/test/resources/log4j.xml similarity index 100% rename from artifact/transactions/QTDIT09001-CO/src/test/resources/log4j.xml rename to artifact/transactions/QTDITC0101-CO/src/test/resources/log4j.xml diff --git a/artifact/libraries/QTDIR001IMPL/.classpath b/artifact/transactions/QTDITC0201-CO/.classpath similarity index 100% rename from artifact/libraries/QTDIR001IMPL/.classpath rename to artifact/transactions/QTDITC0201-CO/.classpath diff --git a/artifact/libraries/QTDIR002IMPL/.project b/artifact/transactions/QTDITC0201-CO/.project similarity index 96% rename from artifact/libraries/QTDIR002IMPL/.project rename to artifact/transactions/QTDITC0201-CO/.project index 7a5516e..1a8affc 100644 --- a/artifact/libraries/QTDIR002IMPL/.project +++ b/artifact/transactions/QTDITC0201-CO/.project @@ -1,6 +1,6 @@ - QTDIR002IMPL + QTDITC0201-CO diff --git a/artifact/libraries/QTDIR001IMPL/.settings/org.eclipse.core.resources.prefs b/artifact/transactions/QTDITC0201-CO/.settings/org.eclipse.core.resources.prefs similarity index 100% rename from artifact/libraries/QTDIR001IMPL/.settings/org.eclipse.core.resources.prefs rename to artifact/transactions/QTDITC0201-CO/.settings/org.eclipse.core.resources.prefs diff --git a/artifact/libraries/QTDIR001IMPL/.settings/org.eclipse.jdt.core.prefs b/artifact/transactions/QTDITC0201-CO/.settings/org.eclipse.jdt.core.prefs similarity index 100% rename from artifact/libraries/QTDIR001IMPL/.settings/org.eclipse.jdt.core.prefs rename to artifact/transactions/QTDITC0201-CO/.settings/org.eclipse.jdt.core.prefs diff --git a/artifact/transactions/QTDITC0201-CO/pom.xml b/artifact/transactions/QTDITC0201-CO/pom.xml new file mode 100644 index 0000000..9fa3cb0 --- /dev/null +++ b/artifact/transactions/QTDITC0201-CO/pom.xml @@ -0,0 +1,225 @@ + + + 4.0.0 + + com.bbva.qtdi + TRANSACTIONS + 0.0.1 + + com.bbva.qtdi + QTDITC02 + 01-CO + PATCH support-document-type + + 0.0 + + + + com.bbva.elara + elara-transaction + ${apx.core.online.version} + compile + + + com.bbva.elara + elara-test + ${apx.core.online.version} + test + + + org.eclipse.persistence + org.eclipse.persistence.jpa + test + + + org.springframework + spring-test + test + + + org.springframework + spring-beans + test + + + org.springframework + spring-tx + test + + + org.mockito + mockito-all + test + + + com.google.guava + guava + test + + + com.bbva.qtdi + QTDIRC02 + 0.0.1 + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.felix + maven-bundle-plugin + [2.3.7,) + + manifest + + + + + + + + + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + bundle-manifest + process-classes + + manifest + + + + + + jar + + + ${project.artifactId}-${project.version} + com.bbva.qtdi.QTDITC0201COTransaction + transaction + com.bbva.elara.*;version="${arc.osgi.version}",*;version="${arc.osgi.version}" + + + + + maven-jar-plugin + 2.3.1 + + ${project.artifactId}-${project.version} + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + maven-resources-plugin + + + copy-resources + install + + copy-resources + + + ${project.build.directory}/config + + + src/main/resources + + **/database-${project.artifactId}-${project.version}.properties + **/database-passw-${project.artifactId}-${project.version}.properties + **/${project.artifactId}-${project.version}.properties + + + + + + + + + maven-antrun-plugin + + + install + + run + + + + + + + + + + + org.jacoco + jacoco-maven-plugin + 0.7.7.201606060606 + + + default-prepare-agent + + prepare-agent + + + + default-prepare-agent-integration + + prepare-agent-integration + + + + default-report + + report + + + + default-report-integration + + report-integration + + + + default-check + + check + + + + + BUNDLE + + + ${jacoco.type.coverage} + COVEREDRATIO + ${jacoco.no.coverage} + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC0201-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC0201COTransaction.java b/artifact/transactions/QTDITC0201-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC0201COTransaction.java new file mode 100644 index 0000000..4e11fea --- /dev/null +++ b/artifact/transactions/QTDITC0201-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC0201COTransaction.java @@ -0,0 +1,15 @@ +package com.bbva.qtdi; + +import com.bbva.elara.transaction.AbstractTransaction; + +public abstract class AbstractQTDITC0201COTransaction extends AbstractTransaction { + + public AbstractQTDITC0201COTransaction(){ + } + + + + + + +} diff --git a/artifact/transactions/QTDITC0201-CO/src/main/java/com/bbva/qtdi/QTDITC0201COTransaction.java b/artifact/transactions/QTDITC0201-CO/src/main/java/com/bbva/qtdi/QTDITC0201COTransaction.java new file mode 100644 index 0000000..aaba9ce --- /dev/null +++ b/artifact/transactions/QTDITC0201-CO/src/main/java/com/bbva/qtdi/QTDITC0201COTransaction.java @@ -0,0 +1,21 @@ +/** + * + */ +package com.bbva.qtdi; +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +/** + * PATCH support-document-type + * Business Logic implementation. + * @author Novatec Solutions + * + */ +public class QTDITC0201COTransaction extends AbstractQTDITC0201COTransaction { + + @Override + public void execute() { + QTDIRC02 qtdiRC02 = (QTDIRC02)getServiceLibrary(QTDIRC02.class); + // TODO + } + +} diff --git a/artifact/transactions/QTDITC0201-CO/src/main/resources/META-INF/MANIFEST.MF b/artifact/transactions/QTDITC0201-CO/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC0201-CO/src/main/resources/QTDITC02-01-CO.xml b/artifact/transactions/QTDITC0201-CO/src/main/resources/QTDITC02-01-CO.xml new file mode 100644 index 0000000..ce286fc --- /dev/null +++ b/artifact/transactions/QTDITC0201-CO/src/main/resources/QTDITC02-01-CO.xml @@ -0,0 +1 @@ +PATCH support-document-types-id \ No newline at end of file diff --git a/artifact/transactions/QTDITC0201-CO/src/main/resources/multilanguage-CO.properties b/artifact/transactions/QTDITC0201-CO/src/main/resources/multilanguage-CO.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC0201-CO/src/test/java/com/bbva/qtdi/QTDITC0201COTransactionTest.java b/artifact/transactions/QTDITC0201-CO/src/test/java/com/bbva/qtdi/QTDITC0201COTransactionTest.java new file mode 100644 index 0000000..ccc04c9 --- /dev/null +++ b/artifact/transactions/QTDITC0201-CO/src/test/java/com/bbva/qtdi/QTDITC0201COTransactionTest.java @@ -0,0 +1,100 @@ +package com.bbva.qtdi; + + +import java.util.ArrayList; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mockito; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import com.bbva.elara.domain.transaction.Context; +import com.bbva.elara.domain.transaction.ParameterTable; +import com.bbva.elara.domain.transaction.TransactionParameter; +import com.bbva.elara.domain.transaction.request.TransactionRequest; +import com.bbva.elara.domain.transaction.request.body.CommonRequestBody; +import com.bbva.elara.test.osgi.DummyBundleContext; + + +/** + * Test for transaction QTDITC0201COTransaction + */ +@RunWith(SpringJUnit4ClassRunner.class) +@ContextConfiguration(locations = { + "classpath:/META-INF/spring/elara-test.xml", + "classpath:/META-INF/spring/QTDITC0201COTest.xml" }) +public class QTDITC0201COTransactionTest { + private static final Logger LOGGER = LoggerFactory.getLogger(QTDITC0201COTransactionTest.class); + + @Autowired + private QTDITC0201COTransaction transaction; + + @Resource(name="dummyBundleContext") + private DummyBundleContext bundleContext; + + private TransactionRequest transactionRequest; + + + @Before + public void initializeClass() throws Exception { + this.transaction.start(bundleContext); + + // Initializing transaction to test + this.transaction.setContext(new Context()); + this.transaction.getContext().setLanguageCode("ES"); + + transactionRequest = Mockito.mock(TransactionRequest.class); + CommonRequestBody commonRequestBody = new CommonRequestBody(); + commonRequestBody.setTransactionParameters(new ArrayList()); + transactionRequest.setBody(commonRequestBody); + Mockito.when(transactionRequest.getRestfulMethod()).thenReturn(null); + this.transaction.getContext().setTransactionRequest(transactionRequest); + + } + + @Test + public void testNotNull(){ + Assert.assertNotNull(this.transaction); + //The method getRestfulMethod() will return null by default. To test other methods add a line like this + //Mockito.when(transactionRequest.getRestfulMethod()).thenReturn("getBancos"); + this.transaction.execute(); + } + + + private void addTable(final String key, final List> table) { + ParameterTable parameterTable = new ParameterTable(); + parameterTable.setParameterTableList(table); + this.addParameter(key, parameterTable); + } + + private void addParameter(final String parameter, final Object value) { + final TransactionParameter tParameter = new TransactionParameter( + parameter, value); + transaction.getContext().getParameterList().put(parameter, tParameter); + } + + private Object getParameter(final String parameter) { + final TransactionParameter param = transaction.getContext() + .getParameterList().get(parameter); + return param.getValue(); + } + + private Object getTableParameter(final int rowNumber, final String table, final String key) + { + ParameterTable param = (ParameterTable)getParameter(table); + Map row = param.get(rowNumber); + return row.get(key); + } +} diff --git a/artifact/transactions/QTDITC0201-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java b/artifact/transactions/QTDITC0201-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java new file mode 100644 index 0000000..c9d694e --- /dev/null +++ b/artifact/transactions/QTDITC0201-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +public class QTDIRC02Mock implements QTDIRC02 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDITC0201-CO/src/test/resources/META-INF/spring/QTDITC0201COTest.xml b/artifact/transactions/QTDITC0201-CO/src/test/resources/META-INF/spring/QTDITC0201COTest.xml new file mode 100644 index 0000000..08815d5 --- /dev/null +++ b/artifact/transactions/QTDITC0201-CO/src/test/resources/META-INF/spring/QTDITC0201COTest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + classpath:/common-env.properties + classpath:/QTDI.properties + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC0201-CO/src/test/resources/QTDI.properties b/artifact/transactions/QTDITC0201-CO/src/test/resources/QTDI.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC0201-CO/src/test/resources/common-env.properties b/artifact/transactions/QTDITC0201-CO/src/test/resources/common-env.properties new file mode 100644 index 0000000..c44cc81 --- /dev/null +++ b/artifact/transactions/QTDITC0201-CO/src/test/resources/common-env.properties @@ -0,0 +1,545 @@ +######################### +# MQ manager definition # +######################### + +# MQ host name +mq.host.name=ADMBM101 +# MQ host port +mq.host.port=1414 +# MQ host channel +nq.host.channel=CLNT.QWPO.ES +# MQ host manager +mq.host.manager=QMDESM01 +# MQ default program +mq.default.program=QC1CDPL + +####################### +# External MQ queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.mq=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.mq=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.mq=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.mq=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.xml.xaq.mq=PRE.QWPO.XAQ_XML.QWR001 + +############################### +# Session queue configuration # +############################### + +# Name of the MQ queue where is sent the change of session message +session.queue.name=PRE.IMS.QWPO.QWR001 + +###################### +# JMS message broker # +###################### + +# IP address of JMS broker for external queues +ip.external.broker=${mq.host.name}:${mq.host.port}::${mq.host.manager}:${mq.host.channel} + +####################### +# External JMS queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.jms=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.jms=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.jms=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.jms=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for XML-formatted messages over XAQ logical protocol +queue.xml.xaq.jms=PRE.QWPO.XAQ_XML.QWR001 +# Queue for XML-formatted messages over Generic logical protocol +queue.xml.generic.jms=PRE.QWPO.GENERIC_XML.QWR001 +# Queue used to send events +event.queue=DYD.QTGE.RECEP.SUCESOS.QWR001 +# Queue used to send emails and sms by ESB +esb.queue=DYD.ANYNORESP.ESB.QWR001 + +################################# +# SOAP-JMS queues configuration # +################################# + +tibco.ems.queue.name.esb.elara.generic=queue.sample.generic +tibco.ems.queue.name.esb.elara.otma=queue.sample.otma +tibco.ems.queue.name.esb.elara.otma.pg=queue.sample.otmapg +tibco.ems.queue.name.esb.elara.ps9=queue.sample.ps9 +tibco.ems.queue.name.esb.elara.xaq=queue.sample.xaq + +########################### +# Tibco EMS configuration # +########################### + +tibco.ems.url= +tibco.ems.user= +tibco.ems.passw= + +# Bundlor URL +arq.bundlor.url=http://localhost:8101/qwjr_mult_mult_01/ +# Activate or deactivate session change through JMS queue +jms.listener.activated=true +# NTP +ntp.host=15.150.139.187 +ntp.port=123 +ntp.timeOut=10 +ntp.waitTime=60 +ntp.threshold=5 +# Scheduler configuration +scheduler.bundleCleanerTrigger.cronExpression=0 0/5 * * * ? +scheduler.nodeArchitectureControllerTrigger.cronExpression=15 0/1 * * * ? +scheduler.ntpServiceTrigger.cronExpression=0 1 08,20 * * ? +scheduler.sessionLocalModeTrigger.cronExpression=0 0/5 * * * ? +# JMS +jms.poolexecutor.corepoolsize=10 +jms.poolexecutor.maxpoolsize=10 +jms.poolexecutor.keepaliveseconds=1 +jms.listener.concurrency=2-10 +jms.listener.idletaskexecutionlimit=1 +jms.listener.idleconsumerlimit=1 +# Disruptor +disruptor.in.consumers=5 +disruptor.out.consumers=5 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 + +# Pass for the console +felix.webconsole.password=AdminCore +# Value to indicate the ROP writing mode. (ROP_WRITES_DEPENDING_ON_APP, ROP_NEVER_WRITES, ROP_ALWAYS_WRITES) +rop.writingMode=ROP_ALWAYS_WRITES + +# Message used in logging component as default +default.log.message=Could not load error catalog message +# Default description for unexpected exceptions +default.error.description=No se puede cargar la descripcion del error +# Number of retries to insert in DB a new Record Operation +rop.num.entries=3 +# Number of retries to insert in DB a new Journal Operation +journal.num.entries=3 +# Application code size (For error catalog code) +error.catalog.code.application.code.size=4 +# Error type size (For error catalog code) +error.catalog.code.error.type.size=1 +# Error code size (For error catalog code) +error.catalog.code.error.code.size=8 +# OTMA Error code size (For error catalog code) +error.catalog.code.error.code.start.otma=5 +# Size of the catalog of errors +error.catalog.code.size=13 +# Size of the PG catalog of errors +error.catalog.code.pg.size=12 +# Default error description size +error.description.size=80 +# Path for the xml Record Operation files (Files with ROP that could be saved) +rop.path=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +journal.path=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +journal.persistence.type=ELARA +# Default channel for channel handler component +channel.handler.channel=0 +# Default service for channel handler component +channel.handler.service=0 +# Default environ for channel handler component +channel.handler.environ=0 +# Mail version service for ESB +esb.mail.service.version=1 +# SMS version service for ESB +esb.sms.service.version=1 +# Default priority for SMSs +default.sms.priority=0 +# Default priority for Emails +default.email.priority=0 +# Path for attachments files (For emails) +attachments.path=/attachments +# [Hit counter] Maximum counter store size +max.counter.size=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +counter.elements.after.remove=10 +# Timeout for WS connections +ws.connect.timeout=3000 +# Timeout for WS requests +ws.request.timeout=3000 +# Timeout for transaction executions (milliseconds) +transaction.timeout=5000 +# Default message for multilanguage responses +multilanguage.default.message=Could not load multilanguage response +# Multilanguage file name +multilanguage.file.name=multilanguage- +#Timeout in query. +query.timeout=4 +#MaxRows in a query. +query.maxrows=5000 +# Banking session flag +banking.session.flag=SCHEDULER +# PS9 properties +ps9.uppercase=TRUE +ps9.uppercase.use.header=TRUE +# WS control library properties +control.ws.default.user=e000000 +control.ws.default.pid=999 +# Bundlor properties +arq.bundlor.context.node.ping=/node/ping.do +arq.bundlor.context.node.properties=/node/properties.do +arq.bundlor.context.node.properties.uuaa=/node/propertiesUUAA.do +arq.bundlor.context.node.ping.boot=/node/pingBoot.do +# Transactions repository address +repository.transaction.jar=${arq.bundlor.url}/transaction/download.do?txName= +repository.library.jar=${arq.bundlor.url}/library/download.do?libName= +# Logs Repository address +repository.log.file=${arq.bundlor.url}/uuaa/log/download.do?uuaaName= +# Database properties +database.name=ORACLE +database.showSql=true +jdbc.default.schema=QWPO +# Crypto algorithm +crypto.algorithm=PBEWithMD5AndDES +# Crypto iteration count +crypto.iteration.count=19 +# Passphase for Crypto service +passphase=Accenture1 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 +# LUA script cofiguration +lua.forbidden.funcs=coroutine; module; package : loadlib, seeall; io; os : execute, exit, getenv, remove, rename, setlocale, tmpname; debug +# Symbolic name of topology +org.apache.cxf.dosgi.topology.symbolic.name=cxf-dosgi-ri-topology-manager +# Symbolic name of DOSGi +org.apache.cxf.dosgi.admin.symbolic.name=cxf-dosgi-ri-dsw-cxf +# Property name of filter service +org.apache.cxf.dosgi.ws.property.name=org.apache.cxf.ws.databinding +# Property name of filter service for rest +org.apache.cxf.dosgi.rest.property.name=org.apache.cxf.rs.httpservice.context +# Security service configuration +secured.bundle.categories=library;transaction +transaction.service.filter=com.bbva.elara.utility;com.bbva.elara.transaction;com.bbva.elara.support.provisioning.store.TransactionStoreDelegate;com.bbva.elara.configuration.manager.ConfigurationManager +library.service.filter=com.bbva.elara.utility;com.bbva.elara.control.WSControl + +# Default Locale = es_ES +systemlocale=es_ES +# Country Code for "es_ES" locale = ES +country.es_ES=ES +# language Code for "es_ES" locale = es +language.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +dateformat.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +timezone.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +currency.es_ES=EURO +# Deployed locale = es_ES +localedeploy=es_ES + +# Position of group code last character +group.code.last=3 +# Position of parameter code last character +parameter.code.last=6 +# Binary code representation +binary.code=Binary +# Integer code reprensentation +integer.code=Integer +# Long code representation +long.code=Long +# Double code representation +double.code=Double +# String code representation +string.code=String +# Map format header tag +header.tag=header +# Map format body tag +body.tag=body +# Map format advice tag +advice.tag=advice +# Tag representing Header class +general.header.tag=header +# Tag representing IdLogicTransaction class +id.logic.transaction.tag=idLogicTransaction +# Tag representing TransactionOrigin class +transaction.origin.tag=transactionOrigin +# Parameter separator +parameter.separator=\u003B +# Complex parameter separator +complex.parameter.separator=\u002C +# End request separator +end.request.separator=\\] +# Begin request separator +begin.request.separator=\\[ +# End request separator (Map only) +map.end.request.separator=\u005D +# Begin request separator (Map only) +map.begin.request.separator=\u005B +# Begin complex parameter values +begin.complex.parameter=\u0028 +# End complex parameter values +end.complex.parameter=\u0029 +# Separator between parameter name and value +name.value.separator=\u003D +# Separator between message header and body +head.body.separator= \u0026 +# Header for advice number +header.advice.number=001000 +# Header for advice code +header.advice.code=002001 +# Header for advice description +header.advice.description=002002 +# Advice code header +advice.code.header=code +# Advice description header +advice.description.header=description +# File code representation +file.code=InputStream + +############################################## +# Paths to XML marshallers and unmarshallers # +############################################## + +# Path for standard request +path.standard.request=/META-INF/parser/standardHeaderRequest +# Path for pg request +path.pg.request=/META-INF/parser/headerRequest +# Path for standard response +path.standard.response=/META-INF/parser/standardHeaderResponse +# Path for map request +path.map.request=/META-INF/parser/mapHeaderRequest +# Path for map response +path.map.response=/META-INF/parser/mapHeaderResponse + + + +################################################# +# Old configuration # +################################################# + +url.bundle.action=/connectorTx + +# Message used in logging component as default +DEFAULTLOGMESSAGE=Could not load error catalog message +# IP of the NTP server +NTP_VIRTUAL_HOST=15.150.139.187 +# Port used to get NTP messages +NTP_SERVER_PORT=123 +# Number of seconds that the ntp component waits at NTP server +NTP_TIME_OUT=10 +# Number of seconds that the ntp server waits between +NTP_WAIT_TIME=60 +# Number of seconds of difference between Elara and NTP server which are considered normal +NTP_THRESHOLD=5 +# Number of retries to insert in DB a new Record Operation +ROP_NUM_RETRIES=3 +# Number of retries to insert in DB a new Journal Operation +JOURNAL_NUM_RETRIES=3 +# Application code size (For error catalog code) +ERRORCATALOGCODE_APPLICATIONCODESIZE=4 +# Error type size (For error catalog code) +ERRORCATALOGCODE_ERRORTYPESIZE=1 +# Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODESIZE=8 +# OTMA Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODE_START_OTMA=5 +# Size of the catalog of errors +ERRORCATALOGCODESIZE=13 +# Path for the xml Record Operation files (Files with ROP that could be saved) +ROP_PATH=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +JOURNAL_PATH=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +JOURNAL_PERSISTENCE_TYPE=ELARA +# Channel of the events +EVENT_CHANNEL=0 +# Number used to correlate events +EVENT_CORREL_ID= +# Identifies which environ has been used by an event +EVENT_ENVIRON=13 +# Event mode +EVENT_MODE=O +# Service event code +EVENT_SERVICE=5 +# Source of the event code +EVENT_ORIGIN=0 +# Default event type +EVENT_TYPE_DEFAULT_POSTACTIONS=0 +# Default event type for pre-actions +EVENT_TYPE_DEFAULT_PREACTIONS=1 +# Default event version +EVENT_VERSION_DEFAULT=00 +# Default event client +EVENT_CLIENT_DEFAULT=0 +# Default event client type +EVENT_CLIENT_TYPE_DEFAULT=0 +# Default event No Client +EVENT_NO_CLIENT_DEFAULT=0 +# Default channel for channel handler component +CHANNEL_HANDLER_CHANNEL=0 +# Default service for channel handler component +CHANNEL_HANDLER_SERVICE=0 +# Default environ for channel handler component +CHANNEL_HANDLER_ENVIRON=0 +# Mail version service for ESB +ESB_MAIL_SERVICE_VERSION=1 +# SMS version service for ESB +ESB_SMS_SERVICE_VERSION=1 +# Default priority for SMSs +DEFAULT_SMS_PRIORITY=0 +# Default priority for Emails +DEFAULT_EMAIL_PRIORITY=0 +# Path for attachments files (For emails) +ATTACHMENTS_PATH=/attachments +# [Hit counter] Maximum counter store size +MAX_COUNTER_SIZE=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +COUNTER_ELEMENTS_AFTER_REMOVE=10 + +# Timeout for WS connections +WS_CONNECT_TIMEOUT=3000 +# Timeout for WS requests +WS_REQUEST_TIMEOUT=3000 +# Timeout for transaction executions (milliseconds) +TRANSACTION_TIMEOUT =5000 +# Path where there are SMS xsds +ESB_SMS_PATH =/xsd/SMS_ +# Path where there are Email xsds +ESB_MAIL_PATH =/xsd/Mail_ +# Path where there are ESB's ds xsd +ESB_DS_PATH =/xsd/ds.xsd +# Path where there are ESB's dc xsd +ESB_DC_PATH =/xsd/dc.xsd +# Path where there is the events xsd +EVENTS_XSD_PATH =/xsd/HeaderAndContextEvent.xsd +# Default message for multilanguage responses +MULTILANGUAGE_DEFAULT_MESSAGE=Could not load multilanguage response +# Multilanguage file name +MULTILANGUAGE_FILE_NAME=multilanguage- +# Deletion criteria TQWPOLOG +PERIODIC_REMOVE_TQWPOLOG=10 +# Deletion criteria TQWPOEXR +PERIODIC_REMOVE_TQWPOEXR=1 +#Monitoring Functional Event +FLAG_JMX_EVENT_FUNCTIONAL=true +#Timeout in query. +QUERY_TIMEOUT=4 +#MaxRows in a query. +QUERY_MAXROWS=5000 +# Banking session flag +BANKING_SESSION_FLAG = SCHEDULER +PS9_UPPERCASE=TRUE +PS9_UPPERCASE_USE_HEADER=TRUE +####################################################################################################################### +################################# Database properties ################################ +DATABASE_AUTOCOMIT=false +DATABASE_READONLY=false +DATABASE_TRANSACTION_ISOLATION=-1 +DATABASE_INITIAL_SIZE=0 +DATABASE_NUM_MAX_ACTIVE=200 +DATABASE_MAX_IDLE=0 +DATABASE_MAX_OPEN_PREPARED_STATEMENT=-1 +DATABASE_MAX_WAIT=-1 +DATABASE_MIN_EVICTABLE_IDLE_TIME_MILLIS=1800000 +DATABASE_MIN_IDLE=0 +DATABASE_POOL_PREPARED_STATEMENT=false +DATABASE_TEST_ON_BORROW=true +DATABASE_TEST_ON_RETURN=false +DATABASE_TEST_WHILE_IDLE=false +DATABASE_TIME_BETWEEN_EVICTION_RUNS_MILLIS=-1 +DATABASE_VALIDATION_QUERY=select 1 from dual +DATABASE_NUM_TEST_PER_EVICTION_RUN=3 +DATABASE_ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED=false + +# Position of group code last character +GROUP_CODE_LAST=3 +# Position of parameter code last character +PARAMETER_CODE_LAST=6 +# Binary code representation +BINARY_CODE=Binary +# Integer code reprensentation +INTEGER_CODE=Integer +# Long code representation +LONG_CODE=Long +# Double code representation +DOUBLE_CODE=Double +# String code representation +STRING_CODE=String +# Map format header tag +HEADER_TAG=header +# Map format body tag +BODY_TAG=body +# Map format advice tag +ADVICE_TAG=advice +# Tag representing Header class +GENERAL_HEADER_TAG=header +# Tag representing IdLogicTransaction class +ID_LOGIC_TRANSACTION_TAG=idLogicTransaction +# Tag representing TransactionOrigin class +TRANSACTION_ORIGIN_TAG=transactionOrigin +# Parameter separator +PARAMETER_SEPARATOR = ; +# Complex parameter separator +COMPLEX_PARAMETER_SEPARATOR = , +# End request separator +END_REQUEST_SEPARATOR = \] +# Begin request separator +BEGIN_REQUEST_SEPARATOR = \[ +# End request separator (Map only) +MAP_END_REQUEST_SEPARATOR = ] +# Begin request separator (Map only) +MAP_BEGIN_REQUEST_SEPARATOR = [ +# Begin complex parameter values +BEGIN_COMPLEX_PARAMETER= ( +# End complex parameter values +END_COMPLEX_PARAMETER= ) +# Separator between parameter name and value +NAME_VALUE_SEPARATOR = = +# Separator between message header and body +HEAD_BODY_SEPARATOR = & +# Header for advice number +HEADER_ADVICE_NUMBER=001000 +# Header for advice code +HEADER_ADVICE_CODE=002001 +# Header for advice description +HEADER_ADVICE_DESCRIPTION=002002 +# Advice code header +ADVICE_CODE_HEADER=code +# Advice description header +ADVICE_DESCRIPTION_HEADER=description + +# Default Locale = es_ES +SYSTEMLOCALE=es_ES +# Country Code for "es_ES" locale = ES +COUNTRY.es_ES=ES +# language Code for "es_ES" locale = es +LANGUAGE.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +DATEFORMAT.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +TIMEZONE.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +CURRENCY.es_ES=EURO +# Country Code for "pl_PL" locale = PL +COUNTRY.pl_PL=PL +# language Code for "pl_PL" locale = pl +LANGUAGE.pl_PL=pl +# Date Format for "pl_PL" locale = MM/dd/yyyy +DATEFORMAT.pl_PL=MM/dd/yyyy +# Time Zone for "pl_PL" locale = Europe/Warsaw +TIMEZONE.pl_PL=Europe/Warsaw +# Currency for "pl_PL" locale = DOLLAR +CURRENCY.pl_PL=DOLLAR +# Deployed locale = es_ES +LOCALEDEPLOY=es_ES +# arq type (for evo. utilidades compartidas) +arq.type=ONLINE \ No newline at end of file diff --git a/artifact/transactions/QTDITC0201-CO/src/test/resources/log4j.xml b/artifact/transactions/QTDITC0201-CO/src/test/resources/log4j.xml new file mode 100644 index 0000000..215502b --- /dev/null +++ b/artifact/transactions/QTDITC0201-CO/src/test/resources/log4j.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/artifact/libraries/QTDIR002/.classpath b/artifact/transactions/QTDITC0301-CO/.classpath similarity index 100% rename from artifact/libraries/QTDIR002/.classpath rename to artifact/transactions/QTDITC0301-CO/.classpath diff --git a/artifact/libraries/QTDIR002/.project b/artifact/transactions/QTDITC0301-CO/.project similarity index 96% rename from artifact/libraries/QTDIR002/.project rename to artifact/transactions/QTDITC0301-CO/.project index 76d5348..1ae5261 100644 --- a/artifact/libraries/QTDIR002/.project +++ b/artifact/transactions/QTDITC0301-CO/.project @@ -1,6 +1,6 @@ - QTDIR002 + QTDITC0301-CO diff --git a/artifact/libraries/QTDIR002/.settings/org.eclipse.core.resources.prefs b/artifact/transactions/QTDITC0301-CO/.settings/org.eclipse.core.resources.prefs similarity index 100% rename from artifact/libraries/QTDIR002/.settings/org.eclipse.core.resources.prefs rename to artifact/transactions/QTDITC0301-CO/.settings/org.eclipse.core.resources.prefs diff --git a/artifact/libraries/QTDIR002/.settings/org.eclipse.jdt.core.prefs b/artifact/transactions/QTDITC0301-CO/.settings/org.eclipse.jdt.core.prefs similarity index 100% rename from artifact/libraries/QTDIR002/.settings/org.eclipse.jdt.core.prefs rename to artifact/transactions/QTDITC0301-CO/.settings/org.eclipse.jdt.core.prefs diff --git a/artifact/transactions/QTDITC0301-CO/pom.xml b/artifact/transactions/QTDITC0301-CO/pom.xml new file mode 100644 index 0000000..90b3f54 --- /dev/null +++ b/artifact/transactions/QTDITC0301-CO/pom.xml @@ -0,0 +1,224 @@ + + 4.0.0 + + com.bbva.qtdi + TRANSACTIONS + 0.0.1 + + com.bbva.qtdi + QTDITC03 + 01-CO + DELETE support-document-types-id + + 0.0 + + + + com.bbva.elara + elara-transaction + ${apx.core.online.version} + compile + + + com.bbva.elara + elara-test + ${apx.core.online.version} + test + + + org.eclipse.persistence + org.eclipse.persistence.jpa + test + + + org.springframework + spring-test + test + + + org.springframework + spring-beans + test + + + org.springframework + spring-tx + test + + + org.mockito + mockito-all + test + + + com.google.guava + guava + test + + + com.bbva.qtdi + QTDIRC02 + 0.0.1 + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.felix + maven-bundle-plugin + [2.3.7,) + + manifest + + + + + + + + + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + bundle-manifest + process-classes + + manifest + + + + + + jar + + + ${project.artifactId}-${project.version} + com.bbva.qtdi.QTDITC0301COTransaction + transaction + com.bbva.elara.*;version="${arc.osgi.version}", + *;version="${arc.osgi.version}" + + + + + maven-jar-plugin + 2.3.1 + + ${project.artifactId}-${project.version} + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + maven-resources-plugin + + + copy-resources + install + + copy-resources + + + ${project.build.directory}/config + + + src/main/resources + + **/database-${project.artifactId}-${project.version}.properties + **/database-passw-${project.artifactId}-${project.version}.properties + **/${project.artifactId}-${project.version}.properties + + + + + + + + + maven-antrun-plugin + + + install + + run + + + + + + + + + + + org.jacoco + jacoco-maven-plugin + 0.7.7.201606060606 + + + default-prepare-agent + + prepare-agent + + + + default-prepare-agent-integration + + prepare-agent-integration + + + + default-report + + report + + + + default-report-integration + + report-integration + + + + default-check + + check + + + + + BUNDLE + + + ${jacoco.type.coverage} + COVEREDRATIO + ${jacoco.no.coverage} + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC0301-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC0301COTransaction.java b/artifact/transactions/QTDITC0301-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC0301COTransaction.java new file mode 100644 index 0000000..6b6f682 --- /dev/null +++ b/artifact/transactions/QTDITC0301-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC0301COTransaction.java @@ -0,0 +1,16 @@ +package com.bbva.qtdi; + + +import com.bbva.elara.transaction.AbstractTransaction; + +public abstract class AbstractQTDITC0301COTransaction extends AbstractTransaction { + + public AbstractQTDITC0301COTransaction(){ + } + + + + + + +} diff --git a/artifact/transactions/QTDITC0301-CO/src/main/java/com/bbva/qtdi/QTDITC0301COTransaction.java b/artifact/transactions/QTDITC0301-CO/src/main/java/com/bbva/qtdi/QTDITC0301COTransaction.java new file mode 100644 index 0000000..10e6160 --- /dev/null +++ b/artifact/transactions/QTDITC0301-CO/src/main/java/com/bbva/qtdi/QTDITC0301COTransaction.java @@ -0,0 +1,21 @@ +/** + * + */ +package com.bbva.qtdi; +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +/** + * DELETE support-document-types-id + * Business Logic implementation. + * @author Novatec Solutions + * + */ +public class QTDITC0301COTransaction extends AbstractQTDITC0301COTransaction { + + @Override + public void execute() { + QTDIRC02 qtdiRC02 = (QTDIRC02)getServiceLibrary(QTDIRC02.class); + // TODO + } + +} diff --git a/artifact/transactions/QTDITC0301-CO/src/main/resources/META-INF/MANIFEST.MF b/artifact/transactions/QTDITC0301-CO/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC0301-CO/src/main/resources/QTDITC03-01-CO.xml b/artifact/transactions/QTDITC0301-CO/src/main/resources/QTDITC03-01-CO.xml new file mode 100644 index 0000000..098ad5d --- /dev/null +++ b/artifact/transactions/QTDITC0301-CO/src/main/resources/QTDITC03-01-CO.xml @@ -0,0 +1 @@ +DELETE support-document-types-id \ No newline at end of file diff --git a/artifact/transactions/QTDITC0301-CO/src/main/resources/multilanguage-CO.properties b/artifact/transactions/QTDITC0301-CO/src/main/resources/multilanguage-CO.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC0301-CO/src/test/java/com/bbva/qtdi/QTDITC0301COTransactionTest.java b/artifact/transactions/QTDITC0301-CO/src/test/java/com/bbva/qtdi/QTDITC0301COTransactionTest.java new file mode 100644 index 0000000..c3acb34 --- /dev/null +++ b/artifact/transactions/QTDITC0301-CO/src/test/java/com/bbva/qtdi/QTDITC0301COTransactionTest.java @@ -0,0 +1,100 @@ +package com.bbva.qtdi; + + +import java.util.ArrayList; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mockito; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import com.bbva.elara.domain.transaction.Context; +import com.bbva.elara.domain.transaction.ParameterTable; +import com.bbva.elara.domain.transaction.TransactionParameter; +import com.bbva.elara.domain.transaction.request.TransactionRequest; +import com.bbva.elara.domain.transaction.request.body.CommonRequestBody; +import com.bbva.elara.test.osgi.DummyBundleContext; + + +/** + * Test for transaction QTDITC0301COTransaction + */ +@RunWith(SpringJUnit4ClassRunner.class) +@ContextConfiguration(locations = { + "classpath:/META-INF/spring/elara-test.xml", + "classpath:/META-INF/spring/QTDITC0301COTest.xml" }) +public class QTDITC0301COTransactionTest { + private static final Logger LOGGER = LoggerFactory.getLogger(QTDITC0301COTransactionTest.class); + + @Autowired + private QTDITC0301COTransaction transaction; + + @Resource(name="dummyBundleContext") + private DummyBundleContext bundleContext; + + private TransactionRequest transactionRequest; + + + @Before + public void initializeClass() throws Exception { + this.transaction.start(bundleContext); + + // Initializing transaction to test + this.transaction.setContext(new Context()); + this.transaction.getContext().setLanguageCode("ES"); + + transactionRequest = Mockito.mock(TransactionRequest.class); + CommonRequestBody commonRequestBody = new CommonRequestBody(); + commonRequestBody.setTransactionParameters(new ArrayList()); + transactionRequest.setBody(commonRequestBody); + Mockito.when(transactionRequest.getRestfulMethod()).thenReturn(null); + this.transaction.getContext().setTransactionRequest(transactionRequest); + + } + + @Test + public void testNotNull(){ + Assert.assertNotNull(this.transaction); + //The method getRestfulMethod() will return null by default. To test other methods add a line like this + //Mockito.when(transactionRequest.getRestfulMethod()).thenReturn("getBancos"); + this.transaction.execute(); + } + + + private void addTable(final String key, final List> table) { + ParameterTable parameterTable = new ParameterTable(); + parameterTable.setParameterTableList(table); + this.addParameter(key, parameterTable); + } + + private void addParameter(final String parameter, final Object value) { + final TransactionParameter tParameter = new TransactionParameter( + parameter, value); + transaction.getContext().getParameterList().put(parameter, tParameter); + } + + private Object getParameter(final String parameter) { + final TransactionParameter param = transaction.getContext() + .getParameterList().get(parameter); + return param.getValue(); + } + + private Object getTableParameter(final int rowNumber, final String table, final String key) + { + ParameterTable param = (ParameterTable)getParameter(table); + Map row = param.get(rowNumber); + return row.get(key); + } +} diff --git a/artifact/transactions/QTDITC0301-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java b/artifact/transactions/QTDITC0301-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java new file mode 100644 index 0000000..c9d694e --- /dev/null +++ b/artifact/transactions/QTDITC0301-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +public class QTDIRC02Mock implements QTDIRC02 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDITC0301-CO/src/test/resources/META-INF/spring/QTDITC0301COTest.xml b/artifact/transactions/QTDITC0301-CO/src/test/resources/META-INF/spring/QTDITC0301COTest.xml new file mode 100644 index 0000000..3d2ecf7 --- /dev/null +++ b/artifact/transactions/QTDITC0301-CO/src/test/resources/META-INF/spring/QTDITC0301COTest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + classpath:/common-env.properties + classpath:/QTDI.properties + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC0301-CO/src/test/resources/QTDI.properties b/artifact/transactions/QTDITC0301-CO/src/test/resources/QTDI.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC0301-CO/src/test/resources/common-env.properties b/artifact/transactions/QTDITC0301-CO/src/test/resources/common-env.properties new file mode 100644 index 0000000..c44cc81 --- /dev/null +++ b/artifact/transactions/QTDITC0301-CO/src/test/resources/common-env.properties @@ -0,0 +1,545 @@ +######################### +# MQ manager definition # +######################### + +# MQ host name +mq.host.name=ADMBM101 +# MQ host port +mq.host.port=1414 +# MQ host channel +nq.host.channel=CLNT.QWPO.ES +# MQ host manager +mq.host.manager=QMDESM01 +# MQ default program +mq.default.program=QC1CDPL + +####################### +# External MQ queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.mq=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.mq=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.mq=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.mq=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.xml.xaq.mq=PRE.QWPO.XAQ_XML.QWR001 + +############################### +# Session queue configuration # +############################### + +# Name of the MQ queue where is sent the change of session message +session.queue.name=PRE.IMS.QWPO.QWR001 + +###################### +# JMS message broker # +###################### + +# IP address of JMS broker for external queues +ip.external.broker=${mq.host.name}:${mq.host.port}::${mq.host.manager}:${mq.host.channel} + +####################### +# External JMS queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.jms=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.jms=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.jms=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.jms=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for XML-formatted messages over XAQ logical protocol +queue.xml.xaq.jms=PRE.QWPO.XAQ_XML.QWR001 +# Queue for XML-formatted messages over Generic logical protocol +queue.xml.generic.jms=PRE.QWPO.GENERIC_XML.QWR001 +# Queue used to send events +event.queue=DYD.QTGE.RECEP.SUCESOS.QWR001 +# Queue used to send emails and sms by ESB +esb.queue=DYD.ANYNORESP.ESB.QWR001 + +################################# +# SOAP-JMS queues configuration # +################################# + +tibco.ems.queue.name.esb.elara.generic=queue.sample.generic +tibco.ems.queue.name.esb.elara.otma=queue.sample.otma +tibco.ems.queue.name.esb.elara.otma.pg=queue.sample.otmapg +tibco.ems.queue.name.esb.elara.ps9=queue.sample.ps9 +tibco.ems.queue.name.esb.elara.xaq=queue.sample.xaq + +########################### +# Tibco EMS configuration # +########################### + +tibco.ems.url= +tibco.ems.user= +tibco.ems.passw= + +# Bundlor URL +arq.bundlor.url=http://localhost:8101/qwjr_mult_mult_01/ +# Activate or deactivate session change through JMS queue +jms.listener.activated=true +# NTP +ntp.host=15.150.139.187 +ntp.port=123 +ntp.timeOut=10 +ntp.waitTime=60 +ntp.threshold=5 +# Scheduler configuration +scheduler.bundleCleanerTrigger.cronExpression=0 0/5 * * * ? +scheduler.nodeArchitectureControllerTrigger.cronExpression=15 0/1 * * * ? +scheduler.ntpServiceTrigger.cronExpression=0 1 08,20 * * ? +scheduler.sessionLocalModeTrigger.cronExpression=0 0/5 * * * ? +# JMS +jms.poolexecutor.corepoolsize=10 +jms.poolexecutor.maxpoolsize=10 +jms.poolexecutor.keepaliveseconds=1 +jms.listener.concurrency=2-10 +jms.listener.idletaskexecutionlimit=1 +jms.listener.idleconsumerlimit=1 +# Disruptor +disruptor.in.consumers=5 +disruptor.out.consumers=5 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 + +# Pass for the console +felix.webconsole.password=AdminCore +# Value to indicate the ROP writing mode. (ROP_WRITES_DEPENDING_ON_APP, ROP_NEVER_WRITES, ROP_ALWAYS_WRITES) +rop.writingMode=ROP_ALWAYS_WRITES + +# Message used in logging component as default +default.log.message=Could not load error catalog message +# Default description for unexpected exceptions +default.error.description=No se puede cargar la descripcion del error +# Number of retries to insert in DB a new Record Operation +rop.num.entries=3 +# Number of retries to insert in DB a new Journal Operation +journal.num.entries=3 +# Application code size (For error catalog code) +error.catalog.code.application.code.size=4 +# Error type size (For error catalog code) +error.catalog.code.error.type.size=1 +# Error code size (For error catalog code) +error.catalog.code.error.code.size=8 +# OTMA Error code size (For error catalog code) +error.catalog.code.error.code.start.otma=5 +# Size of the catalog of errors +error.catalog.code.size=13 +# Size of the PG catalog of errors +error.catalog.code.pg.size=12 +# Default error description size +error.description.size=80 +# Path for the xml Record Operation files (Files with ROP that could be saved) +rop.path=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +journal.path=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +journal.persistence.type=ELARA +# Default channel for channel handler component +channel.handler.channel=0 +# Default service for channel handler component +channel.handler.service=0 +# Default environ for channel handler component +channel.handler.environ=0 +# Mail version service for ESB +esb.mail.service.version=1 +# SMS version service for ESB +esb.sms.service.version=1 +# Default priority for SMSs +default.sms.priority=0 +# Default priority for Emails +default.email.priority=0 +# Path for attachments files (For emails) +attachments.path=/attachments +# [Hit counter] Maximum counter store size +max.counter.size=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +counter.elements.after.remove=10 +# Timeout for WS connections +ws.connect.timeout=3000 +# Timeout for WS requests +ws.request.timeout=3000 +# Timeout for transaction executions (milliseconds) +transaction.timeout=5000 +# Default message for multilanguage responses +multilanguage.default.message=Could not load multilanguage response +# Multilanguage file name +multilanguage.file.name=multilanguage- +#Timeout in query. +query.timeout=4 +#MaxRows in a query. +query.maxrows=5000 +# Banking session flag +banking.session.flag=SCHEDULER +# PS9 properties +ps9.uppercase=TRUE +ps9.uppercase.use.header=TRUE +# WS control library properties +control.ws.default.user=e000000 +control.ws.default.pid=999 +# Bundlor properties +arq.bundlor.context.node.ping=/node/ping.do +arq.bundlor.context.node.properties=/node/properties.do +arq.bundlor.context.node.properties.uuaa=/node/propertiesUUAA.do +arq.bundlor.context.node.ping.boot=/node/pingBoot.do +# Transactions repository address +repository.transaction.jar=${arq.bundlor.url}/transaction/download.do?txName= +repository.library.jar=${arq.bundlor.url}/library/download.do?libName= +# Logs Repository address +repository.log.file=${arq.bundlor.url}/uuaa/log/download.do?uuaaName= +# Database properties +database.name=ORACLE +database.showSql=true +jdbc.default.schema=QWPO +# Crypto algorithm +crypto.algorithm=PBEWithMD5AndDES +# Crypto iteration count +crypto.iteration.count=19 +# Passphase for Crypto service +passphase=Accenture1 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 +# LUA script cofiguration +lua.forbidden.funcs=coroutine; module; package : loadlib, seeall; io; os : execute, exit, getenv, remove, rename, setlocale, tmpname; debug +# Symbolic name of topology +org.apache.cxf.dosgi.topology.symbolic.name=cxf-dosgi-ri-topology-manager +# Symbolic name of DOSGi +org.apache.cxf.dosgi.admin.symbolic.name=cxf-dosgi-ri-dsw-cxf +# Property name of filter service +org.apache.cxf.dosgi.ws.property.name=org.apache.cxf.ws.databinding +# Property name of filter service for rest +org.apache.cxf.dosgi.rest.property.name=org.apache.cxf.rs.httpservice.context +# Security service configuration +secured.bundle.categories=library;transaction +transaction.service.filter=com.bbva.elara.utility;com.bbva.elara.transaction;com.bbva.elara.support.provisioning.store.TransactionStoreDelegate;com.bbva.elara.configuration.manager.ConfigurationManager +library.service.filter=com.bbva.elara.utility;com.bbva.elara.control.WSControl + +# Default Locale = es_ES +systemlocale=es_ES +# Country Code for "es_ES" locale = ES +country.es_ES=ES +# language Code for "es_ES" locale = es +language.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +dateformat.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +timezone.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +currency.es_ES=EURO +# Deployed locale = es_ES +localedeploy=es_ES + +# Position of group code last character +group.code.last=3 +# Position of parameter code last character +parameter.code.last=6 +# Binary code representation +binary.code=Binary +# Integer code reprensentation +integer.code=Integer +# Long code representation +long.code=Long +# Double code representation +double.code=Double +# String code representation +string.code=String +# Map format header tag +header.tag=header +# Map format body tag +body.tag=body +# Map format advice tag +advice.tag=advice +# Tag representing Header class +general.header.tag=header +# Tag representing IdLogicTransaction class +id.logic.transaction.tag=idLogicTransaction +# Tag representing TransactionOrigin class +transaction.origin.tag=transactionOrigin +# Parameter separator +parameter.separator=\u003B +# Complex parameter separator +complex.parameter.separator=\u002C +# End request separator +end.request.separator=\\] +# Begin request separator +begin.request.separator=\\[ +# End request separator (Map only) +map.end.request.separator=\u005D +# Begin request separator (Map only) +map.begin.request.separator=\u005B +# Begin complex parameter values +begin.complex.parameter=\u0028 +# End complex parameter values +end.complex.parameter=\u0029 +# Separator between parameter name and value +name.value.separator=\u003D +# Separator between message header and body +head.body.separator= \u0026 +# Header for advice number +header.advice.number=001000 +# Header for advice code +header.advice.code=002001 +# Header for advice description +header.advice.description=002002 +# Advice code header +advice.code.header=code +# Advice description header +advice.description.header=description +# File code representation +file.code=InputStream + +############################################## +# Paths to XML marshallers and unmarshallers # +############################################## + +# Path for standard request +path.standard.request=/META-INF/parser/standardHeaderRequest +# Path for pg request +path.pg.request=/META-INF/parser/headerRequest +# Path for standard response +path.standard.response=/META-INF/parser/standardHeaderResponse +# Path for map request +path.map.request=/META-INF/parser/mapHeaderRequest +# Path for map response +path.map.response=/META-INF/parser/mapHeaderResponse + + + +################################################# +# Old configuration # +################################################# + +url.bundle.action=/connectorTx + +# Message used in logging component as default +DEFAULTLOGMESSAGE=Could not load error catalog message +# IP of the NTP server +NTP_VIRTUAL_HOST=15.150.139.187 +# Port used to get NTP messages +NTP_SERVER_PORT=123 +# Number of seconds that the ntp component waits at NTP server +NTP_TIME_OUT=10 +# Number of seconds that the ntp server waits between +NTP_WAIT_TIME=60 +# Number of seconds of difference between Elara and NTP server which are considered normal +NTP_THRESHOLD=5 +# Number of retries to insert in DB a new Record Operation +ROP_NUM_RETRIES=3 +# Number of retries to insert in DB a new Journal Operation +JOURNAL_NUM_RETRIES=3 +# Application code size (For error catalog code) +ERRORCATALOGCODE_APPLICATIONCODESIZE=4 +# Error type size (For error catalog code) +ERRORCATALOGCODE_ERRORTYPESIZE=1 +# Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODESIZE=8 +# OTMA Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODE_START_OTMA=5 +# Size of the catalog of errors +ERRORCATALOGCODESIZE=13 +# Path for the xml Record Operation files (Files with ROP that could be saved) +ROP_PATH=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +JOURNAL_PATH=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +JOURNAL_PERSISTENCE_TYPE=ELARA +# Channel of the events +EVENT_CHANNEL=0 +# Number used to correlate events +EVENT_CORREL_ID= +# Identifies which environ has been used by an event +EVENT_ENVIRON=13 +# Event mode +EVENT_MODE=O +# Service event code +EVENT_SERVICE=5 +# Source of the event code +EVENT_ORIGIN=0 +# Default event type +EVENT_TYPE_DEFAULT_POSTACTIONS=0 +# Default event type for pre-actions +EVENT_TYPE_DEFAULT_PREACTIONS=1 +# Default event version +EVENT_VERSION_DEFAULT=00 +# Default event client +EVENT_CLIENT_DEFAULT=0 +# Default event client type +EVENT_CLIENT_TYPE_DEFAULT=0 +# Default event No Client +EVENT_NO_CLIENT_DEFAULT=0 +# Default channel for channel handler component +CHANNEL_HANDLER_CHANNEL=0 +# Default service for channel handler component +CHANNEL_HANDLER_SERVICE=0 +# Default environ for channel handler component +CHANNEL_HANDLER_ENVIRON=0 +# Mail version service for ESB +ESB_MAIL_SERVICE_VERSION=1 +# SMS version service for ESB +ESB_SMS_SERVICE_VERSION=1 +# Default priority for SMSs +DEFAULT_SMS_PRIORITY=0 +# Default priority for Emails +DEFAULT_EMAIL_PRIORITY=0 +# Path for attachments files (For emails) +ATTACHMENTS_PATH=/attachments +# [Hit counter] Maximum counter store size +MAX_COUNTER_SIZE=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +COUNTER_ELEMENTS_AFTER_REMOVE=10 + +# Timeout for WS connections +WS_CONNECT_TIMEOUT=3000 +# Timeout for WS requests +WS_REQUEST_TIMEOUT=3000 +# Timeout for transaction executions (milliseconds) +TRANSACTION_TIMEOUT =5000 +# Path where there are SMS xsds +ESB_SMS_PATH =/xsd/SMS_ +# Path where there are Email xsds +ESB_MAIL_PATH =/xsd/Mail_ +# Path where there are ESB's ds xsd +ESB_DS_PATH =/xsd/ds.xsd +# Path where there are ESB's dc xsd +ESB_DC_PATH =/xsd/dc.xsd +# Path where there is the events xsd +EVENTS_XSD_PATH =/xsd/HeaderAndContextEvent.xsd +# Default message for multilanguage responses +MULTILANGUAGE_DEFAULT_MESSAGE=Could not load multilanguage response +# Multilanguage file name +MULTILANGUAGE_FILE_NAME=multilanguage- +# Deletion criteria TQWPOLOG +PERIODIC_REMOVE_TQWPOLOG=10 +# Deletion criteria TQWPOEXR +PERIODIC_REMOVE_TQWPOEXR=1 +#Monitoring Functional Event +FLAG_JMX_EVENT_FUNCTIONAL=true +#Timeout in query. +QUERY_TIMEOUT=4 +#MaxRows in a query. +QUERY_MAXROWS=5000 +# Banking session flag +BANKING_SESSION_FLAG = SCHEDULER +PS9_UPPERCASE=TRUE +PS9_UPPERCASE_USE_HEADER=TRUE +####################################################################################################################### +################################# Database properties ################################ +DATABASE_AUTOCOMIT=false +DATABASE_READONLY=false +DATABASE_TRANSACTION_ISOLATION=-1 +DATABASE_INITIAL_SIZE=0 +DATABASE_NUM_MAX_ACTIVE=200 +DATABASE_MAX_IDLE=0 +DATABASE_MAX_OPEN_PREPARED_STATEMENT=-1 +DATABASE_MAX_WAIT=-1 +DATABASE_MIN_EVICTABLE_IDLE_TIME_MILLIS=1800000 +DATABASE_MIN_IDLE=0 +DATABASE_POOL_PREPARED_STATEMENT=false +DATABASE_TEST_ON_BORROW=true +DATABASE_TEST_ON_RETURN=false +DATABASE_TEST_WHILE_IDLE=false +DATABASE_TIME_BETWEEN_EVICTION_RUNS_MILLIS=-1 +DATABASE_VALIDATION_QUERY=select 1 from dual +DATABASE_NUM_TEST_PER_EVICTION_RUN=3 +DATABASE_ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED=false + +# Position of group code last character +GROUP_CODE_LAST=3 +# Position of parameter code last character +PARAMETER_CODE_LAST=6 +# Binary code representation +BINARY_CODE=Binary +# Integer code reprensentation +INTEGER_CODE=Integer +# Long code representation +LONG_CODE=Long +# Double code representation +DOUBLE_CODE=Double +# String code representation +STRING_CODE=String +# Map format header tag +HEADER_TAG=header +# Map format body tag +BODY_TAG=body +# Map format advice tag +ADVICE_TAG=advice +# Tag representing Header class +GENERAL_HEADER_TAG=header +# Tag representing IdLogicTransaction class +ID_LOGIC_TRANSACTION_TAG=idLogicTransaction +# Tag representing TransactionOrigin class +TRANSACTION_ORIGIN_TAG=transactionOrigin +# Parameter separator +PARAMETER_SEPARATOR = ; +# Complex parameter separator +COMPLEX_PARAMETER_SEPARATOR = , +# End request separator +END_REQUEST_SEPARATOR = \] +# Begin request separator +BEGIN_REQUEST_SEPARATOR = \[ +# End request separator (Map only) +MAP_END_REQUEST_SEPARATOR = ] +# Begin request separator (Map only) +MAP_BEGIN_REQUEST_SEPARATOR = [ +# Begin complex parameter values +BEGIN_COMPLEX_PARAMETER= ( +# End complex parameter values +END_COMPLEX_PARAMETER= ) +# Separator between parameter name and value +NAME_VALUE_SEPARATOR = = +# Separator between message header and body +HEAD_BODY_SEPARATOR = & +# Header for advice number +HEADER_ADVICE_NUMBER=001000 +# Header for advice code +HEADER_ADVICE_CODE=002001 +# Header for advice description +HEADER_ADVICE_DESCRIPTION=002002 +# Advice code header +ADVICE_CODE_HEADER=code +# Advice description header +ADVICE_DESCRIPTION_HEADER=description + +# Default Locale = es_ES +SYSTEMLOCALE=es_ES +# Country Code for "es_ES" locale = ES +COUNTRY.es_ES=ES +# language Code for "es_ES" locale = es +LANGUAGE.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +DATEFORMAT.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +TIMEZONE.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +CURRENCY.es_ES=EURO +# Country Code for "pl_PL" locale = PL +COUNTRY.pl_PL=PL +# language Code for "pl_PL" locale = pl +LANGUAGE.pl_PL=pl +# Date Format for "pl_PL" locale = MM/dd/yyyy +DATEFORMAT.pl_PL=MM/dd/yyyy +# Time Zone for "pl_PL" locale = Europe/Warsaw +TIMEZONE.pl_PL=Europe/Warsaw +# Currency for "pl_PL" locale = DOLLAR +CURRENCY.pl_PL=DOLLAR +# Deployed locale = es_ES +LOCALEDEPLOY=es_ES +# arq type (for evo. utilidades compartidas) +arq.type=ONLINE \ No newline at end of file diff --git a/artifact/transactions/QTDITC0301-CO/src/test/resources/log4j.xml b/artifact/transactions/QTDITC0301-CO/src/test/resources/log4j.xml new file mode 100644 index 0000000..215502b --- /dev/null +++ b/artifact/transactions/QTDITC0301-CO/src/test/resources/log4j.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/artifact/libraries/QTDIR002IMPL/.classpath b/artifact/transactions/QTDITC9001-CO/.classpath similarity index 100% rename from artifact/libraries/QTDIR002IMPL/.classpath rename to artifact/transactions/QTDITC9001-CO/.classpath diff --git a/artifact/libraries/QTDIR001IMPL/.project b/artifact/transactions/QTDITC9001-CO/.project similarity index 96% rename from artifact/libraries/QTDIR001IMPL/.project rename to artifact/transactions/QTDITC9001-CO/.project index f4fe554..e938893 100644 --- a/artifact/libraries/QTDIR001IMPL/.project +++ b/artifact/transactions/QTDITC9001-CO/.project @@ -1,6 +1,6 @@ - QTDIR001IMPL + QTDITC9001-CO @@ -11,12 +11,12 @@ - org.eclipse.m2e.core.maven2Builder + org.springframework.ide.eclipse.core.springbuilder - org.springframework.ide.eclipse.core.springbuilder + org.eclipse.m2e.core.maven2Builder diff --git a/artifact/libraries/QTDIR002IMPL/.settings/org.eclipse.core.resources.prefs b/artifact/transactions/QTDITC9001-CO/.settings/org.eclipse.core.resources.prefs similarity index 100% rename from artifact/libraries/QTDIR002IMPL/.settings/org.eclipse.core.resources.prefs rename to artifact/transactions/QTDITC9001-CO/.settings/org.eclipse.core.resources.prefs diff --git a/artifact/libraries/QTDIR002IMPL/.settings/org.eclipse.jdt.core.prefs b/artifact/transactions/QTDITC9001-CO/.settings/org.eclipse.jdt.core.prefs similarity index 100% rename from artifact/libraries/QTDIR002IMPL/.settings/org.eclipse.jdt.core.prefs rename to artifact/transactions/QTDITC9001-CO/.settings/org.eclipse.jdt.core.prefs diff --git a/artifact/transactions/QTDIT09001-CO/pom.xml b/artifact/transactions/QTDITC9001-CO/pom.xml similarity index 97% rename from artifact/transactions/QTDIT09001-CO/pom.xml rename to artifact/transactions/QTDITC9001-CO/pom.xml index 3ece517..3f64643 100644 --- a/artifact/transactions/QTDIT09001-CO/pom.xml +++ b/artifact/transactions/QTDITC9001-CO/pom.xml @@ -8,9 +8,9 @@ 0.0.1 com.bbva.qtdi - QTDIT090 - 01-ES - GET authorization questions + QTDITC90 + 01-CO + GET authorization-questions 0.0 @@ -117,7 +117,7 @@ ${project.artifactId}-${project.version} - com.bbva.qtdi.QTDIT09001ESTransaction + com.bbva.qtdi.QTDITC9001COTransaction transaction com.bbva.elara.*;version="${arc.osgi.version}",com.bbva.qtdi.dto.applicants,*;version="${arc.osgi.version}" diff --git a/artifact/transactions/QTDITC9001-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9001COTransaction.java b/artifact/transactions/QTDITC9001-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9001COTransaction.java new file mode 100644 index 0000000..dc1d13d --- /dev/null +++ b/artifact/transactions/QTDITC9001-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9001COTransaction.java @@ -0,0 +1,23 @@ +package com.bbva.qtdi; + +import com.bbva.elara.transaction.AbstractTransaction; +import com.bbva.qtdi.employees.dto.DTOIntAuthorizationQuestion; + +public abstract class AbstractQTDITC9001COTransaction extends AbstractTransaction { + + public AbstractQTDITC9001COTransaction(){ + } + + + + /** + * Return value for input parameter Ejemplo + */ + protected DTOIntAuthorizationQuestion getEjemplo(){ + return (DTOIntAuthorizationQuestion)getParameter("Ejemplo"); + } + + + + +} diff --git a/artifact/transactions/QTDIT09001-CO/src/main/java/com/bbva/qtdi/QTDIT09001ESTransaction.java b/artifact/transactions/QTDITC9001-CO/src/main/java/com/bbva/qtdi/QTDITC9001COTransaction.java similarity index 70% rename from artifact/transactions/QTDIT09001-CO/src/main/java/com/bbva/qtdi/QTDIT09001ESTransaction.java rename to artifact/transactions/QTDITC9001-CO/src/main/java/com/bbva/qtdi/QTDITC9001COTransaction.java index 2ca5c63..e8ea3c8 100644 --- a/artifact/transactions/QTDIT09001-CO/src/main/java/com/bbva/qtdi/QTDIT09001ESTransaction.java +++ b/artifact/transactions/QTDITC9001-CO/src/main/java/com/bbva/qtdi/QTDITC9001COTransaction.java @@ -5,12 +5,12 @@ import com.bbva.qtdi.lib.r002.QTDIR002; /** - * GET authorization questions + * GET authorization-questions * Business Logic implementation. * @author Novatec Solutions * */ -public class QTDIT09001ESTransaction extends AbstractQTDIT09001ESTransaction { +public class QTDITC9001COTransaction extends AbstractQTDITC9001COTransaction { @Override public void execute() { diff --git a/artifact/transactions/QTDITC9001-CO/src/main/resources/META-INF/MANIFEST.MF b/artifact/transactions/QTDITC9001-CO/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9001-CO/src/main/resources/QTDITC90-01-CO.xml b/artifact/transactions/QTDITC9001-CO/src/main/resources/QTDITC90-01-CO.xml new file mode 100644 index 0000000..6840d86 --- /dev/null +++ b/artifact/transactions/QTDITC9001-CO/src/main/resources/QTDITC90-01-CO.xml @@ -0,0 +1 @@ +GET authorization-questions \ No newline at end of file diff --git a/artifact/transactions/QTDITC9001-CO/src/main/resources/multilanguage-CO.properties b/artifact/transactions/QTDITC9001-CO/src/main/resources/multilanguage-CO.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9001-CO/src/test/java/com/bbva/qtdi/QTDITC9001COTransactionTest.java b/artifact/transactions/QTDITC9001-CO/src/test/java/com/bbva/qtdi/QTDITC9001COTransactionTest.java new file mode 100644 index 0000000..2b2614f --- /dev/null +++ b/artifact/transactions/QTDITC9001-CO/src/test/java/com/bbva/qtdi/QTDITC9001COTransactionTest.java @@ -0,0 +1,100 @@ +package com.bbva.qtdi; + + +import java.util.ArrayList; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mockito; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import com.bbva.elara.domain.transaction.Context; +import com.bbva.elara.domain.transaction.ParameterTable; +import com.bbva.elara.domain.transaction.TransactionParameter; +import com.bbva.elara.domain.transaction.request.TransactionRequest; +import com.bbva.elara.domain.transaction.request.body.CommonRequestBody; +import com.bbva.elara.test.osgi.DummyBundleContext; + + +/** + * Test for transaction QTDITC9001COTransaction + */ +@RunWith(SpringJUnit4ClassRunner.class) +@ContextConfiguration(locations = { + "classpath:/META-INF/spring/elara-test.xml", + "classpath:/META-INF/spring/QTDITC9001COTest.xml" }) +public class QTDITC9001COTransactionTest { + private static final Logger LOGGER = LoggerFactory.getLogger(QTDITC9001COTransactionTest.class); + + @Autowired + private QTDITC9001COTransaction transaction; + + @Resource(name="dummyBundleContext") + private DummyBundleContext bundleContext; + + private TransactionRequest transactionRequest; + + + @Before + public void initializeClass() throws Exception { + this.transaction.start(bundleContext); + + // Initializing transaction to test + this.transaction.setContext(new Context()); + this.transaction.getContext().setLanguageCode("ES"); + + transactionRequest = Mockito.mock(TransactionRequest.class); + CommonRequestBody commonRequestBody = new CommonRequestBody(); + commonRequestBody.setTransactionParameters(new ArrayList()); + transactionRequest.setBody(commonRequestBody); + Mockito.when(transactionRequest.getRestfulMethod()).thenReturn(null); + this.transaction.getContext().setTransactionRequest(transactionRequest); + + } + + @Test + public void testNotNull(){ + Assert.assertNotNull(this.transaction); + //The method getRestfulMethod() will return null by default. To test other methods add a line like this + //Mockito.when(transactionRequest.getRestfulMethod()).thenReturn("getBancos"); + this.transaction.execute(); + } + + + private void addTable(final String key, final List> table) { + ParameterTable parameterTable = new ParameterTable(); + parameterTable.setParameterTableList(table); + this.addParameter(key, parameterTable); + } + + private void addParameter(final String parameter, final Object value) { + final TransactionParameter tParameter = new TransactionParameter( + parameter, value); + transaction.getContext().getParameterList().put(parameter, tParameter); + } + + private Object getParameter(final String parameter) { + final TransactionParameter param = transaction.getContext() + .getParameterList().get(parameter); + return param.getValue(); + } + + private Object getTableParameter(final int rowNumber, final String table, final String key) + { + ParameterTable param = (ParameterTable)getParameter(table); + Map row = param.get(rowNumber); + return row.get(key); + } +} diff --git a/artifact/transactions/QTDIT09001-CO/src/test/java/com/bbva/qtdi/mock/QTDIR002Mock.java b/artifact/transactions/QTDITC9001-CO/src/test/java/com/bbva/qtdi/mock/QTDIR002Mock.java similarity index 100% rename from artifact/transactions/QTDIT09001-CO/src/test/java/com/bbva/qtdi/mock/QTDIR002Mock.java rename to artifact/transactions/QTDITC9001-CO/src/test/java/com/bbva/qtdi/mock/QTDIR002Mock.java diff --git a/artifact/transactions/QTDIT09001-CO/src/test/resources/META-INF/spring/QTDIT09001ESTest.xml b/artifact/transactions/QTDITC9001-CO/src/test/resources/META-INF/spring/QTDITC9001COTest.xml similarity index 93% rename from artifact/transactions/QTDIT09001-CO/src/test/resources/META-INF/spring/QTDIT09001ESTest.xml rename to artifact/transactions/QTDITC9001-CO/src/test/resources/META-INF/spring/QTDITC9001COTest.xml index ee53532..cb64656 100644 --- a/artifact/transactions/QTDIT09001-CO/src/test/resources/META-INF/spring/QTDIT09001ESTest.xml +++ b/artifact/transactions/QTDITC9001-CO/src/test/resources/META-INF/spring/QTDITC9001COTest.xml @@ -1,7 +1,7 @@ - + @@ -18,7 +18,7 @@ - + diff --git a/artifact/transactions/QTDITC9001-CO/src/test/resources/QTDI.properties b/artifact/transactions/QTDITC9001-CO/src/test/resources/QTDI.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9001-CO/src/test/resources/common-env.properties b/artifact/transactions/QTDITC9001-CO/src/test/resources/common-env.properties new file mode 100644 index 0000000..c44cc81 --- /dev/null +++ b/artifact/transactions/QTDITC9001-CO/src/test/resources/common-env.properties @@ -0,0 +1,545 @@ +######################### +# MQ manager definition # +######################### + +# MQ host name +mq.host.name=ADMBM101 +# MQ host port +mq.host.port=1414 +# MQ host channel +nq.host.channel=CLNT.QWPO.ES +# MQ host manager +mq.host.manager=QMDESM01 +# MQ default program +mq.default.program=QC1CDPL + +####################### +# External MQ queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.mq=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.mq=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.mq=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.mq=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.xml.xaq.mq=PRE.QWPO.XAQ_XML.QWR001 + +############################### +# Session queue configuration # +############################### + +# Name of the MQ queue where is sent the change of session message +session.queue.name=PRE.IMS.QWPO.QWR001 + +###################### +# JMS message broker # +###################### + +# IP address of JMS broker for external queues +ip.external.broker=${mq.host.name}:${mq.host.port}::${mq.host.manager}:${mq.host.channel} + +####################### +# External JMS queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.jms=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.jms=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.jms=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.jms=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for XML-formatted messages over XAQ logical protocol +queue.xml.xaq.jms=PRE.QWPO.XAQ_XML.QWR001 +# Queue for XML-formatted messages over Generic logical protocol +queue.xml.generic.jms=PRE.QWPO.GENERIC_XML.QWR001 +# Queue used to send events +event.queue=DYD.QTGE.RECEP.SUCESOS.QWR001 +# Queue used to send emails and sms by ESB +esb.queue=DYD.ANYNORESP.ESB.QWR001 + +################################# +# SOAP-JMS queues configuration # +################################# + +tibco.ems.queue.name.esb.elara.generic=queue.sample.generic +tibco.ems.queue.name.esb.elara.otma=queue.sample.otma +tibco.ems.queue.name.esb.elara.otma.pg=queue.sample.otmapg +tibco.ems.queue.name.esb.elara.ps9=queue.sample.ps9 +tibco.ems.queue.name.esb.elara.xaq=queue.sample.xaq + +########################### +# Tibco EMS configuration # +########################### + +tibco.ems.url= +tibco.ems.user= +tibco.ems.passw= + +# Bundlor URL +arq.bundlor.url=http://localhost:8101/qwjr_mult_mult_01/ +# Activate or deactivate session change through JMS queue +jms.listener.activated=true +# NTP +ntp.host=15.150.139.187 +ntp.port=123 +ntp.timeOut=10 +ntp.waitTime=60 +ntp.threshold=5 +# Scheduler configuration +scheduler.bundleCleanerTrigger.cronExpression=0 0/5 * * * ? +scheduler.nodeArchitectureControllerTrigger.cronExpression=15 0/1 * * * ? +scheduler.ntpServiceTrigger.cronExpression=0 1 08,20 * * ? +scheduler.sessionLocalModeTrigger.cronExpression=0 0/5 * * * ? +# JMS +jms.poolexecutor.corepoolsize=10 +jms.poolexecutor.maxpoolsize=10 +jms.poolexecutor.keepaliveseconds=1 +jms.listener.concurrency=2-10 +jms.listener.idletaskexecutionlimit=1 +jms.listener.idleconsumerlimit=1 +# Disruptor +disruptor.in.consumers=5 +disruptor.out.consumers=5 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 + +# Pass for the console +felix.webconsole.password=AdminCore +# Value to indicate the ROP writing mode. (ROP_WRITES_DEPENDING_ON_APP, ROP_NEVER_WRITES, ROP_ALWAYS_WRITES) +rop.writingMode=ROP_ALWAYS_WRITES + +# Message used in logging component as default +default.log.message=Could not load error catalog message +# Default description for unexpected exceptions +default.error.description=No se puede cargar la descripcion del error +# Number of retries to insert in DB a new Record Operation +rop.num.entries=3 +# Number of retries to insert in DB a new Journal Operation +journal.num.entries=3 +# Application code size (For error catalog code) +error.catalog.code.application.code.size=4 +# Error type size (For error catalog code) +error.catalog.code.error.type.size=1 +# Error code size (For error catalog code) +error.catalog.code.error.code.size=8 +# OTMA Error code size (For error catalog code) +error.catalog.code.error.code.start.otma=5 +# Size of the catalog of errors +error.catalog.code.size=13 +# Size of the PG catalog of errors +error.catalog.code.pg.size=12 +# Default error description size +error.description.size=80 +# Path for the xml Record Operation files (Files with ROP that could be saved) +rop.path=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +journal.path=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +journal.persistence.type=ELARA +# Default channel for channel handler component +channel.handler.channel=0 +# Default service for channel handler component +channel.handler.service=0 +# Default environ for channel handler component +channel.handler.environ=0 +# Mail version service for ESB +esb.mail.service.version=1 +# SMS version service for ESB +esb.sms.service.version=1 +# Default priority for SMSs +default.sms.priority=0 +# Default priority for Emails +default.email.priority=0 +# Path for attachments files (For emails) +attachments.path=/attachments +# [Hit counter] Maximum counter store size +max.counter.size=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +counter.elements.after.remove=10 +# Timeout for WS connections +ws.connect.timeout=3000 +# Timeout for WS requests +ws.request.timeout=3000 +# Timeout for transaction executions (milliseconds) +transaction.timeout=5000 +# Default message for multilanguage responses +multilanguage.default.message=Could not load multilanguage response +# Multilanguage file name +multilanguage.file.name=multilanguage- +#Timeout in query. +query.timeout=4 +#MaxRows in a query. +query.maxrows=5000 +# Banking session flag +banking.session.flag=SCHEDULER +# PS9 properties +ps9.uppercase=TRUE +ps9.uppercase.use.header=TRUE +# WS control library properties +control.ws.default.user=e000000 +control.ws.default.pid=999 +# Bundlor properties +arq.bundlor.context.node.ping=/node/ping.do +arq.bundlor.context.node.properties=/node/properties.do +arq.bundlor.context.node.properties.uuaa=/node/propertiesUUAA.do +arq.bundlor.context.node.ping.boot=/node/pingBoot.do +# Transactions repository address +repository.transaction.jar=${arq.bundlor.url}/transaction/download.do?txName= +repository.library.jar=${arq.bundlor.url}/library/download.do?libName= +# Logs Repository address +repository.log.file=${arq.bundlor.url}/uuaa/log/download.do?uuaaName= +# Database properties +database.name=ORACLE +database.showSql=true +jdbc.default.schema=QWPO +# Crypto algorithm +crypto.algorithm=PBEWithMD5AndDES +# Crypto iteration count +crypto.iteration.count=19 +# Passphase for Crypto service +passphase=Accenture1 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 +# LUA script cofiguration +lua.forbidden.funcs=coroutine; module; package : loadlib, seeall; io; os : execute, exit, getenv, remove, rename, setlocale, tmpname; debug +# Symbolic name of topology +org.apache.cxf.dosgi.topology.symbolic.name=cxf-dosgi-ri-topology-manager +# Symbolic name of DOSGi +org.apache.cxf.dosgi.admin.symbolic.name=cxf-dosgi-ri-dsw-cxf +# Property name of filter service +org.apache.cxf.dosgi.ws.property.name=org.apache.cxf.ws.databinding +# Property name of filter service for rest +org.apache.cxf.dosgi.rest.property.name=org.apache.cxf.rs.httpservice.context +# Security service configuration +secured.bundle.categories=library;transaction +transaction.service.filter=com.bbva.elara.utility;com.bbva.elara.transaction;com.bbva.elara.support.provisioning.store.TransactionStoreDelegate;com.bbva.elara.configuration.manager.ConfigurationManager +library.service.filter=com.bbva.elara.utility;com.bbva.elara.control.WSControl + +# Default Locale = es_ES +systemlocale=es_ES +# Country Code for "es_ES" locale = ES +country.es_ES=ES +# language Code for "es_ES" locale = es +language.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +dateformat.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +timezone.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +currency.es_ES=EURO +# Deployed locale = es_ES +localedeploy=es_ES + +# Position of group code last character +group.code.last=3 +# Position of parameter code last character +parameter.code.last=6 +# Binary code representation +binary.code=Binary +# Integer code reprensentation +integer.code=Integer +# Long code representation +long.code=Long +# Double code representation +double.code=Double +# String code representation +string.code=String +# Map format header tag +header.tag=header +# Map format body tag +body.tag=body +# Map format advice tag +advice.tag=advice +# Tag representing Header class +general.header.tag=header +# Tag representing IdLogicTransaction class +id.logic.transaction.tag=idLogicTransaction +# Tag representing TransactionOrigin class +transaction.origin.tag=transactionOrigin +# Parameter separator +parameter.separator=\u003B +# Complex parameter separator +complex.parameter.separator=\u002C +# End request separator +end.request.separator=\\] +# Begin request separator +begin.request.separator=\\[ +# End request separator (Map only) +map.end.request.separator=\u005D +# Begin request separator (Map only) +map.begin.request.separator=\u005B +# Begin complex parameter values +begin.complex.parameter=\u0028 +# End complex parameter values +end.complex.parameter=\u0029 +# Separator between parameter name and value +name.value.separator=\u003D +# Separator between message header and body +head.body.separator= \u0026 +# Header for advice number +header.advice.number=001000 +# Header for advice code +header.advice.code=002001 +# Header for advice description +header.advice.description=002002 +# Advice code header +advice.code.header=code +# Advice description header +advice.description.header=description +# File code representation +file.code=InputStream + +############################################## +# Paths to XML marshallers and unmarshallers # +############################################## + +# Path for standard request +path.standard.request=/META-INF/parser/standardHeaderRequest +# Path for pg request +path.pg.request=/META-INF/parser/headerRequest +# Path for standard response +path.standard.response=/META-INF/parser/standardHeaderResponse +# Path for map request +path.map.request=/META-INF/parser/mapHeaderRequest +# Path for map response +path.map.response=/META-INF/parser/mapHeaderResponse + + + +################################################# +# Old configuration # +################################################# + +url.bundle.action=/connectorTx + +# Message used in logging component as default +DEFAULTLOGMESSAGE=Could not load error catalog message +# IP of the NTP server +NTP_VIRTUAL_HOST=15.150.139.187 +# Port used to get NTP messages +NTP_SERVER_PORT=123 +# Number of seconds that the ntp component waits at NTP server +NTP_TIME_OUT=10 +# Number of seconds that the ntp server waits between +NTP_WAIT_TIME=60 +# Number of seconds of difference between Elara and NTP server which are considered normal +NTP_THRESHOLD=5 +# Number of retries to insert in DB a new Record Operation +ROP_NUM_RETRIES=3 +# Number of retries to insert in DB a new Journal Operation +JOURNAL_NUM_RETRIES=3 +# Application code size (For error catalog code) +ERRORCATALOGCODE_APPLICATIONCODESIZE=4 +# Error type size (For error catalog code) +ERRORCATALOGCODE_ERRORTYPESIZE=1 +# Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODESIZE=8 +# OTMA Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODE_START_OTMA=5 +# Size of the catalog of errors +ERRORCATALOGCODESIZE=13 +# Path for the xml Record Operation files (Files with ROP that could be saved) +ROP_PATH=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +JOURNAL_PATH=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +JOURNAL_PERSISTENCE_TYPE=ELARA +# Channel of the events +EVENT_CHANNEL=0 +# Number used to correlate events +EVENT_CORREL_ID= +# Identifies which environ has been used by an event +EVENT_ENVIRON=13 +# Event mode +EVENT_MODE=O +# Service event code +EVENT_SERVICE=5 +# Source of the event code +EVENT_ORIGIN=0 +# Default event type +EVENT_TYPE_DEFAULT_POSTACTIONS=0 +# Default event type for pre-actions +EVENT_TYPE_DEFAULT_PREACTIONS=1 +# Default event version +EVENT_VERSION_DEFAULT=00 +# Default event client +EVENT_CLIENT_DEFAULT=0 +# Default event client type +EVENT_CLIENT_TYPE_DEFAULT=0 +# Default event No Client +EVENT_NO_CLIENT_DEFAULT=0 +# Default channel for channel handler component +CHANNEL_HANDLER_CHANNEL=0 +# Default service for channel handler component +CHANNEL_HANDLER_SERVICE=0 +# Default environ for channel handler component +CHANNEL_HANDLER_ENVIRON=0 +# Mail version service for ESB +ESB_MAIL_SERVICE_VERSION=1 +# SMS version service for ESB +ESB_SMS_SERVICE_VERSION=1 +# Default priority for SMSs +DEFAULT_SMS_PRIORITY=0 +# Default priority for Emails +DEFAULT_EMAIL_PRIORITY=0 +# Path for attachments files (For emails) +ATTACHMENTS_PATH=/attachments +# [Hit counter] Maximum counter store size +MAX_COUNTER_SIZE=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +COUNTER_ELEMENTS_AFTER_REMOVE=10 + +# Timeout for WS connections +WS_CONNECT_TIMEOUT=3000 +# Timeout for WS requests +WS_REQUEST_TIMEOUT=3000 +# Timeout for transaction executions (milliseconds) +TRANSACTION_TIMEOUT =5000 +# Path where there are SMS xsds +ESB_SMS_PATH =/xsd/SMS_ +# Path where there are Email xsds +ESB_MAIL_PATH =/xsd/Mail_ +# Path where there are ESB's ds xsd +ESB_DS_PATH =/xsd/ds.xsd +# Path where there are ESB's dc xsd +ESB_DC_PATH =/xsd/dc.xsd +# Path where there is the events xsd +EVENTS_XSD_PATH =/xsd/HeaderAndContextEvent.xsd +# Default message for multilanguage responses +MULTILANGUAGE_DEFAULT_MESSAGE=Could not load multilanguage response +# Multilanguage file name +MULTILANGUAGE_FILE_NAME=multilanguage- +# Deletion criteria TQWPOLOG +PERIODIC_REMOVE_TQWPOLOG=10 +# Deletion criteria TQWPOEXR +PERIODIC_REMOVE_TQWPOEXR=1 +#Monitoring Functional Event +FLAG_JMX_EVENT_FUNCTIONAL=true +#Timeout in query. +QUERY_TIMEOUT=4 +#MaxRows in a query. +QUERY_MAXROWS=5000 +# Banking session flag +BANKING_SESSION_FLAG = SCHEDULER +PS9_UPPERCASE=TRUE +PS9_UPPERCASE_USE_HEADER=TRUE +####################################################################################################################### +################################# Database properties ################################ +DATABASE_AUTOCOMIT=false +DATABASE_READONLY=false +DATABASE_TRANSACTION_ISOLATION=-1 +DATABASE_INITIAL_SIZE=0 +DATABASE_NUM_MAX_ACTIVE=200 +DATABASE_MAX_IDLE=0 +DATABASE_MAX_OPEN_PREPARED_STATEMENT=-1 +DATABASE_MAX_WAIT=-1 +DATABASE_MIN_EVICTABLE_IDLE_TIME_MILLIS=1800000 +DATABASE_MIN_IDLE=0 +DATABASE_POOL_PREPARED_STATEMENT=false +DATABASE_TEST_ON_BORROW=true +DATABASE_TEST_ON_RETURN=false +DATABASE_TEST_WHILE_IDLE=false +DATABASE_TIME_BETWEEN_EVICTION_RUNS_MILLIS=-1 +DATABASE_VALIDATION_QUERY=select 1 from dual +DATABASE_NUM_TEST_PER_EVICTION_RUN=3 +DATABASE_ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED=false + +# Position of group code last character +GROUP_CODE_LAST=3 +# Position of parameter code last character +PARAMETER_CODE_LAST=6 +# Binary code representation +BINARY_CODE=Binary +# Integer code reprensentation +INTEGER_CODE=Integer +# Long code representation +LONG_CODE=Long +# Double code representation +DOUBLE_CODE=Double +# String code representation +STRING_CODE=String +# Map format header tag +HEADER_TAG=header +# Map format body tag +BODY_TAG=body +# Map format advice tag +ADVICE_TAG=advice +# Tag representing Header class +GENERAL_HEADER_TAG=header +# Tag representing IdLogicTransaction class +ID_LOGIC_TRANSACTION_TAG=idLogicTransaction +# Tag representing TransactionOrigin class +TRANSACTION_ORIGIN_TAG=transactionOrigin +# Parameter separator +PARAMETER_SEPARATOR = ; +# Complex parameter separator +COMPLEX_PARAMETER_SEPARATOR = , +# End request separator +END_REQUEST_SEPARATOR = \] +# Begin request separator +BEGIN_REQUEST_SEPARATOR = \[ +# End request separator (Map only) +MAP_END_REQUEST_SEPARATOR = ] +# Begin request separator (Map only) +MAP_BEGIN_REQUEST_SEPARATOR = [ +# Begin complex parameter values +BEGIN_COMPLEX_PARAMETER= ( +# End complex parameter values +END_COMPLEX_PARAMETER= ) +# Separator between parameter name and value +NAME_VALUE_SEPARATOR = = +# Separator between message header and body +HEAD_BODY_SEPARATOR = & +# Header for advice number +HEADER_ADVICE_NUMBER=001000 +# Header for advice code +HEADER_ADVICE_CODE=002001 +# Header for advice description +HEADER_ADVICE_DESCRIPTION=002002 +# Advice code header +ADVICE_CODE_HEADER=code +# Advice description header +ADVICE_DESCRIPTION_HEADER=description + +# Default Locale = es_ES +SYSTEMLOCALE=es_ES +# Country Code for "es_ES" locale = ES +COUNTRY.es_ES=ES +# language Code for "es_ES" locale = es +LANGUAGE.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +DATEFORMAT.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +TIMEZONE.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +CURRENCY.es_ES=EURO +# Country Code for "pl_PL" locale = PL +COUNTRY.pl_PL=PL +# language Code for "pl_PL" locale = pl +LANGUAGE.pl_PL=pl +# Date Format for "pl_PL" locale = MM/dd/yyyy +DATEFORMAT.pl_PL=MM/dd/yyyy +# Time Zone for "pl_PL" locale = Europe/Warsaw +TIMEZONE.pl_PL=Europe/Warsaw +# Currency for "pl_PL" locale = DOLLAR +CURRENCY.pl_PL=DOLLAR +# Deployed locale = es_ES +LOCALEDEPLOY=es_ES +# arq type (for evo. utilidades compartidas) +arq.type=ONLINE \ No newline at end of file diff --git a/artifact/transactions/QTDITC9001-CO/src/test/resources/log4j.xml b/artifact/transactions/QTDITC9001-CO/src/test/resources/log4j.xml new file mode 100644 index 0000000..215502b --- /dev/null +++ b/artifact/transactions/QTDITC9001-CO/src/test/resources/log4j.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDIT09001-CO/.classpath b/artifact/transactions/QTDITC9101-CO/.classpath similarity index 100% rename from artifact/transactions/QTDIT09001-CO/.classpath rename to artifact/transactions/QTDITC9101-CO/.classpath diff --git a/artifact/transactions/QTDITC9101-CO/.project b/artifact/transactions/QTDITC9101-CO/.project new file mode 100644 index 0000000..7b765b0 --- /dev/null +++ b/artifact/transactions/QTDITC9101-CO/.project @@ -0,0 +1,29 @@ + + + QTDITC9101-CO + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + org.springframework.ide.eclipse.core.springbuilder + + + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/artifact/transactions/QTDIT09001-CO/.settings/org.eclipse.core.resources.prefs b/artifact/transactions/QTDITC9101-CO/.settings/org.eclipse.core.resources.prefs similarity index 100% rename from artifact/transactions/QTDIT09001-CO/.settings/org.eclipse.core.resources.prefs rename to artifact/transactions/QTDITC9101-CO/.settings/org.eclipse.core.resources.prefs diff --git a/artifact/transactions/QTDIT09001-CO/.settings/org.eclipse.jdt.core.prefs b/artifact/transactions/QTDITC9101-CO/.settings/org.eclipse.jdt.core.prefs similarity index 100% rename from artifact/transactions/QTDIT09001-CO/.settings/org.eclipse.jdt.core.prefs rename to artifact/transactions/QTDITC9101-CO/.settings/org.eclipse.jdt.core.prefs diff --git a/artifact/transactions/QTDITC9101-CO/pom.xml b/artifact/transactions/QTDITC9101-CO/pom.xml new file mode 100644 index 0000000..f0c82d1 --- /dev/null +++ b/artifact/transactions/QTDITC9101-CO/pom.xml @@ -0,0 +1,224 @@ + + 4.0.0 + + com.bbva.qtdi + TRANSACTIONS + 0.0.1 + + com.bbva.qtdi + QTDITC91 + 01-CO + POST authorization-questions + + 0.0 + + + + com.bbva.elara + elara-transaction + ${apx.core.online.version} + compile + + + com.bbva.elara + elara-test + ${apx.core.online.version} + test + + + org.eclipse.persistence + org.eclipse.persistence.jpa + test + + + org.springframework + spring-test + test + + + org.springframework + spring-beans + test + + + org.springframework + spring-tx + test + + + org.mockito + mockito-all + test + + + com.google.guava + guava + test + + + com.bbva.qtdi + QTDIRC02 + 0.0.1 + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.felix + maven-bundle-plugin + [2.3.7,) + + manifest + + + + + + + + + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + bundle-manifest + process-classes + + manifest + + + + + + jar + + + ${project.artifactId}-${project.version} + com.bbva.qtdi.QTDITC9101COTransaction + transaction + com.bbva.elara.*;version="${arc.osgi.version}", + *;version="${arc.osgi.version}" + + + + + maven-jar-plugin + 2.3.1 + + ${project.artifactId}-${project.version} + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + maven-resources-plugin + + + copy-resources + install + + copy-resources + + + ${project.build.directory}/config + + + src/main/resources + + **/database-${project.artifactId}-${project.version}.properties + **/database-passw-${project.artifactId}-${project.version}.properties + **/${project.artifactId}-${project.version}.properties + + + + + + + + + maven-antrun-plugin + + + install + + run + + + + + + + + + + + org.jacoco + jacoco-maven-plugin + 0.7.7.201606060606 + + + default-prepare-agent + + prepare-agent + + + + default-prepare-agent-integration + + prepare-agent-integration + + + + default-report + + report + + + + default-report-integration + + report-integration + + + + default-check + + check + + + + + BUNDLE + + + ${jacoco.type.coverage} + COVEREDRATIO + ${jacoco.no.coverage} + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9101-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9101COTransaction.java b/artifact/transactions/QTDITC9101-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9101COTransaction.java new file mode 100644 index 0000000..99fe337 --- /dev/null +++ b/artifact/transactions/QTDITC9101-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9101COTransaction.java @@ -0,0 +1,16 @@ +package com.bbva.qtdi; + + +import com.bbva.elara.transaction.AbstractTransaction; + +public abstract class AbstractQTDITC9101COTransaction extends AbstractTransaction { + + public AbstractQTDITC9101COTransaction(){ + } + + + + + + +} diff --git a/artifact/transactions/QTDITC9101-CO/src/main/java/com/bbva/qtdi/QTDITC9101COTransaction.java b/artifact/transactions/QTDITC9101-CO/src/main/java/com/bbva/qtdi/QTDITC9101COTransaction.java new file mode 100644 index 0000000..5583a9a --- /dev/null +++ b/artifact/transactions/QTDITC9101-CO/src/main/java/com/bbva/qtdi/QTDITC9101COTransaction.java @@ -0,0 +1,21 @@ +/** + * + */ +package com.bbva.qtdi; +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +/** + * POST authorization-questions + * Business Logic implementation. + * @author Novatec Solutions + * + */ +public class QTDITC9101COTransaction extends AbstractQTDITC9101COTransaction { + + @Override + public void execute() { + QTDIRC02 qtdiRC02 = (QTDIRC02)getServiceLibrary(QTDIRC02.class); + // TODO + } + +} diff --git a/artifact/transactions/QTDITC9101-CO/src/main/resources/META-INF/MANIFEST.MF b/artifact/transactions/QTDITC9101-CO/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9101-CO/src/main/resources/QTDITC91-01-CO.xml b/artifact/transactions/QTDITC9101-CO/src/main/resources/QTDITC91-01-CO.xml new file mode 100644 index 0000000..b43efac --- /dev/null +++ b/artifact/transactions/QTDITC9101-CO/src/main/resources/QTDITC91-01-CO.xml @@ -0,0 +1 @@ +POST authorization-questions \ No newline at end of file diff --git a/artifact/transactions/QTDITC9101-CO/src/main/resources/multilanguage-CO.properties b/artifact/transactions/QTDITC9101-CO/src/main/resources/multilanguage-CO.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9101-CO/src/test/java/com/bbva/qtdi/QTDITC9101COTransactionTest.java b/artifact/transactions/QTDITC9101-CO/src/test/java/com/bbva/qtdi/QTDITC9101COTransactionTest.java new file mode 100644 index 0000000..ffbb0ae --- /dev/null +++ b/artifact/transactions/QTDITC9101-CO/src/test/java/com/bbva/qtdi/QTDITC9101COTransactionTest.java @@ -0,0 +1,100 @@ +package com.bbva.qtdi; + + +import java.util.ArrayList; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mockito; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import com.bbva.elara.domain.transaction.Context; +import com.bbva.elara.domain.transaction.ParameterTable; +import com.bbva.elara.domain.transaction.TransactionParameter; +import com.bbva.elara.domain.transaction.request.TransactionRequest; +import com.bbva.elara.domain.transaction.request.body.CommonRequestBody; +import com.bbva.elara.test.osgi.DummyBundleContext; + + +/** + * Test for transaction QTDITC9101COTransaction + */ +@RunWith(SpringJUnit4ClassRunner.class) +@ContextConfiguration(locations = { + "classpath:/META-INF/spring/elara-test.xml", + "classpath:/META-INF/spring/QTDITC9101COTest.xml" }) +public class QTDITC9101COTransactionTest { + private static final Logger LOGGER = LoggerFactory.getLogger(QTDITC9101COTransactionTest.class); + + @Autowired + private QTDITC9101COTransaction transaction; + + @Resource(name="dummyBundleContext") + private DummyBundleContext bundleContext; + + private TransactionRequest transactionRequest; + + + @Before + public void initializeClass() throws Exception { + this.transaction.start(bundleContext); + + // Initializing transaction to test + this.transaction.setContext(new Context()); + this.transaction.getContext().setLanguageCode("ES"); + + transactionRequest = Mockito.mock(TransactionRequest.class); + CommonRequestBody commonRequestBody = new CommonRequestBody(); + commonRequestBody.setTransactionParameters(new ArrayList()); + transactionRequest.setBody(commonRequestBody); + Mockito.when(transactionRequest.getRestfulMethod()).thenReturn(null); + this.transaction.getContext().setTransactionRequest(transactionRequest); + + } + + @Test + public void testNotNull(){ + Assert.assertNotNull(this.transaction); + //The method getRestfulMethod() will return null by default. To test other methods add a line like this + //Mockito.when(transactionRequest.getRestfulMethod()).thenReturn("getBancos"); + this.transaction.execute(); + } + + + private void addTable(final String key, final List> table) { + ParameterTable parameterTable = new ParameterTable(); + parameterTable.setParameterTableList(table); + this.addParameter(key, parameterTable); + } + + private void addParameter(final String parameter, final Object value) { + final TransactionParameter tParameter = new TransactionParameter( + parameter, value); + transaction.getContext().getParameterList().put(parameter, tParameter); + } + + private Object getParameter(final String parameter) { + final TransactionParameter param = transaction.getContext() + .getParameterList().get(parameter); + return param.getValue(); + } + + private Object getTableParameter(final int rowNumber, final String table, final String key) + { + ParameterTable param = (ParameterTable)getParameter(table); + Map row = param.get(rowNumber); + return row.get(key); + } +} diff --git a/artifact/transactions/QTDITC9101-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java b/artifact/transactions/QTDITC9101-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java new file mode 100644 index 0000000..c9d694e --- /dev/null +++ b/artifact/transactions/QTDITC9101-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +public class QTDIRC02Mock implements QTDIRC02 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDITC9101-CO/src/test/resources/META-INF/spring/QTDITC9101COTest.xml b/artifact/transactions/QTDITC9101-CO/src/test/resources/META-INF/spring/QTDITC9101COTest.xml new file mode 100644 index 0000000..ff9ce80 --- /dev/null +++ b/artifact/transactions/QTDITC9101-CO/src/test/resources/META-INF/spring/QTDITC9101COTest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + classpath:/common-env.properties + classpath:/QTDI.properties + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9101-CO/src/test/resources/QTDI.properties b/artifact/transactions/QTDITC9101-CO/src/test/resources/QTDI.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9101-CO/src/test/resources/common-env.properties b/artifact/transactions/QTDITC9101-CO/src/test/resources/common-env.properties new file mode 100644 index 0000000..c44cc81 --- /dev/null +++ b/artifact/transactions/QTDITC9101-CO/src/test/resources/common-env.properties @@ -0,0 +1,545 @@ +######################### +# MQ manager definition # +######################### + +# MQ host name +mq.host.name=ADMBM101 +# MQ host port +mq.host.port=1414 +# MQ host channel +nq.host.channel=CLNT.QWPO.ES +# MQ host manager +mq.host.manager=QMDESM01 +# MQ default program +mq.default.program=QC1CDPL + +####################### +# External MQ queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.mq=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.mq=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.mq=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.mq=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.xml.xaq.mq=PRE.QWPO.XAQ_XML.QWR001 + +############################### +# Session queue configuration # +############################### + +# Name of the MQ queue where is sent the change of session message +session.queue.name=PRE.IMS.QWPO.QWR001 + +###################### +# JMS message broker # +###################### + +# IP address of JMS broker for external queues +ip.external.broker=${mq.host.name}:${mq.host.port}::${mq.host.manager}:${mq.host.channel} + +####################### +# External JMS queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.jms=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.jms=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.jms=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.jms=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for XML-formatted messages over XAQ logical protocol +queue.xml.xaq.jms=PRE.QWPO.XAQ_XML.QWR001 +# Queue for XML-formatted messages over Generic logical protocol +queue.xml.generic.jms=PRE.QWPO.GENERIC_XML.QWR001 +# Queue used to send events +event.queue=DYD.QTGE.RECEP.SUCESOS.QWR001 +# Queue used to send emails and sms by ESB +esb.queue=DYD.ANYNORESP.ESB.QWR001 + +################################# +# SOAP-JMS queues configuration # +################################# + +tibco.ems.queue.name.esb.elara.generic=queue.sample.generic +tibco.ems.queue.name.esb.elara.otma=queue.sample.otma +tibco.ems.queue.name.esb.elara.otma.pg=queue.sample.otmapg +tibco.ems.queue.name.esb.elara.ps9=queue.sample.ps9 +tibco.ems.queue.name.esb.elara.xaq=queue.sample.xaq + +########################### +# Tibco EMS configuration # +########################### + +tibco.ems.url= +tibco.ems.user= +tibco.ems.passw= + +# Bundlor URL +arq.bundlor.url=http://localhost:8101/qwjr_mult_mult_01/ +# Activate or deactivate session change through JMS queue +jms.listener.activated=true +# NTP +ntp.host=15.150.139.187 +ntp.port=123 +ntp.timeOut=10 +ntp.waitTime=60 +ntp.threshold=5 +# Scheduler configuration +scheduler.bundleCleanerTrigger.cronExpression=0 0/5 * * * ? +scheduler.nodeArchitectureControllerTrigger.cronExpression=15 0/1 * * * ? +scheduler.ntpServiceTrigger.cronExpression=0 1 08,20 * * ? +scheduler.sessionLocalModeTrigger.cronExpression=0 0/5 * * * ? +# JMS +jms.poolexecutor.corepoolsize=10 +jms.poolexecutor.maxpoolsize=10 +jms.poolexecutor.keepaliveseconds=1 +jms.listener.concurrency=2-10 +jms.listener.idletaskexecutionlimit=1 +jms.listener.idleconsumerlimit=1 +# Disruptor +disruptor.in.consumers=5 +disruptor.out.consumers=5 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 + +# Pass for the console +felix.webconsole.password=AdminCore +# Value to indicate the ROP writing mode. (ROP_WRITES_DEPENDING_ON_APP, ROP_NEVER_WRITES, ROP_ALWAYS_WRITES) +rop.writingMode=ROP_ALWAYS_WRITES + +# Message used in logging component as default +default.log.message=Could not load error catalog message +# Default description for unexpected exceptions +default.error.description=No se puede cargar la descripcion del error +# Number of retries to insert in DB a new Record Operation +rop.num.entries=3 +# Number of retries to insert in DB a new Journal Operation +journal.num.entries=3 +# Application code size (For error catalog code) +error.catalog.code.application.code.size=4 +# Error type size (For error catalog code) +error.catalog.code.error.type.size=1 +# Error code size (For error catalog code) +error.catalog.code.error.code.size=8 +# OTMA Error code size (For error catalog code) +error.catalog.code.error.code.start.otma=5 +# Size of the catalog of errors +error.catalog.code.size=13 +# Size of the PG catalog of errors +error.catalog.code.pg.size=12 +# Default error description size +error.description.size=80 +# Path for the xml Record Operation files (Files with ROP that could be saved) +rop.path=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +journal.path=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +journal.persistence.type=ELARA +# Default channel for channel handler component +channel.handler.channel=0 +# Default service for channel handler component +channel.handler.service=0 +# Default environ for channel handler component +channel.handler.environ=0 +# Mail version service for ESB +esb.mail.service.version=1 +# SMS version service for ESB +esb.sms.service.version=1 +# Default priority for SMSs +default.sms.priority=0 +# Default priority for Emails +default.email.priority=0 +# Path for attachments files (For emails) +attachments.path=/attachments +# [Hit counter] Maximum counter store size +max.counter.size=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +counter.elements.after.remove=10 +# Timeout for WS connections +ws.connect.timeout=3000 +# Timeout for WS requests +ws.request.timeout=3000 +# Timeout for transaction executions (milliseconds) +transaction.timeout=5000 +# Default message for multilanguage responses +multilanguage.default.message=Could not load multilanguage response +# Multilanguage file name +multilanguage.file.name=multilanguage- +#Timeout in query. +query.timeout=4 +#MaxRows in a query. +query.maxrows=5000 +# Banking session flag +banking.session.flag=SCHEDULER +# PS9 properties +ps9.uppercase=TRUE +ps9.uppercase.use.header=TRUE +# WS control library properties +control.ws.default.user=e000000 +control.ws.default.pid=999 +# Bundlor properties +arq.bundlor.context.node.ping=/node/ping.do +arq.bundlor.context.node.properties=/node/properties.do +arq.bundlor.context.node.properties.uuaa=/node/propertiesUUAA.do +arq.bundlor.context.node.ping.boot=/node/pingBoot.do +# Transactions repository address +repository.transaction.jar=${arq.bundlor.url}/transaction/download.do?txName= +repository.library.jar=${arq.bundlor.url}/library/download.do?libName= +# Logs Repository address +repository.log.file=${arq.bundlor.url}/uuaa/log/download.do?uuaaName= +# Database properties +database.name=ORACLE +database.showSql=true +jdbc.default.schema=QWPO +# Crypto algorithm +crypto.algorithm=PBEWithMD5AndDES +# Crypto iteration count +crypto.iteration.count=19 +# Passphase for Crypto service +passphase=Accenture1 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 +# LUA script cofiguration +lua.forbidden.funcs=coroutine; module; package : loadlib, seeall; io; os : execute, exit, getenv, remove, rename, setlocale, tmpname; debug +# Symbolic name of topology +org.apache.cxf.dosgi.topology.symbolic.name=cxf-dosgi-ri-topology-manager +# Symbolic name of DOSGi +org.apache.cxf.dosgi.admin.symbolic.name=cxf-dosgi-ri-dsw-cxf +# Property name of filter service +org.apache.cxf.dosgi.ws.property.name=org.apache.cxf.ws.databinding +# Property name of filter service for rest +org.apache.cxf.dosgi.rest.property.name=org.apache.cxf.rs.httpservice.context +# Security service configuration +secured.bundle.categories=library;transaction +transaction.service.filter=com.bbva.elara.utility;com.bbva.elara.transaction;com.bbva.elara.support.provisioning.store.TransactionStoreDelegate;com.bbva.elara.configuration.manager.ConfigurationManager +library.service.filter=com.bbva.elara.utility;com.bbva.elara.control.WSControl + +# Default Locale = es_ES +systemlocale=es_ES +# Country Code for "es_ES" locale = ES +country.es_ES=ES +# language Code for "es_ES" locale = es +language.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +dateformat.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +timezone.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +currency.es_ES=EURO +# Deployed locale = es_ES +localedeploy=es_ES + +# Position of group code last character +group.code.last=3 +# Position of parameter code last character +parameter.code.last=6 +# Binary code representation +binary.code=Binary +# Integer code reprensentation +integer.code=Integer +# Long code representation +long.code=Long +# Double code representation +double.code=Double +# String code representation +string.code=String +# Map format header tag +header.tag=header +# Map format body tag +body.tag=body +# Map format advice tag +advice.tag=advice +# Tag representing Header class +general.header.tag=header +# Tag representing IdLogicTransaction class +id.logic.transaction.tag=idLogicTransaction +# Tag representing TransactionOrigin class +transaction.origin.tag=transactionOrigin +# Parameter separator +parameter.separator=\u003B +# Complex parameter separator +complex.parameter.separator=\u002C +# End request separator +end.request.separator=\\] +# Begin request separator +begin.request.separator=\\[ +# End request separator (Map only) +map.end.request.separator=\u005D +# Begin request separator (Map only) +map.begin.request.separator=\u005B +# Begin complex parameter values +begin.complex.parameter=\u0028 +# End complex parameter values +end.complex.parameter=\u0029 +# Separator between parameter name and value +name.value.separator=\u003D +# Separator between message header and body +head.body.separator= \u0026 +# Header for advice number +header.advice.number=001000 +# Header for advice code +header.advice.code=002001 +# Header for advice description +header.advice.description=002002 +# Advice code header +advice.code.header=code +# Advice description header +advice.description.header=description +# File code representation +file.code=InputStream + +############################################## +# Paths to XML marshallers and unmarshallers # +############################################## + +# Path for standard request +path.standard.request=/META-INF/parser/standardHeaderRequest +# Path for pg request +path.pg.request=/META-INF/parser/headerRequest +# Path for standard response +path.standard.response=/META-INF/parser/standardHeaderResponse +# Path for map request +path.map.request=/META-INF/parser/mapHeaderRequest +# Path for map response +path.map.response=/META-INF/parser/mapHeaderResponse + + + +################################################# +# Old configuration # +################################################# + +url.bundle.action=/connectorTx + +# Message used in logging component as default +DEFAULTLOGMESSAGE=Could not load error catalog message +# IP of the NTP server +NTP_VIRTUAL_HOST=15.150.139.187 +# Port used to get NTP messages +NTP_SERVER_PORT=123 +# Number of seconds that the ntp component waits at NTP server +NTP_TIME_OUT=10 +# Number of seconds that the ntp server waits between +NTP_WAIT_TIME=60 +# Number of seconds of difference between Elara and NTP server which are considered normal +NTP_THRESHOLD=5 +# Number of retries to insert in DB a new Record Operation +ROP_NUM_RETRIES=3 +# Number of retries to insert in DB a new Journal Operation +JOURNAL_NUM_RETRIES=3 +# Application code size (For error catalog code) +ERRORCATALOGCODE_APPLICATIONCODESIZE=4 +# Error type size (For error catalog code) +ERRORCATALOGCODE_ERRORTYPESIZE=1 +# Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODESIZE=8 +# OTMA Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODE_START_OTMA=5 +# Size of the catalog of errors +ERRORCATALOGCODESIZE=13 +# Path for the xml Record Operation files (Files with ROP that could be saved) +ROP_PATH=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +JOURNAL_PATH=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +JOURNAL_PERSISTENCE_TYPE=ELARA +# Channel of the events +EVENT_CHANNEL=0 +# Number used to correlate events +EVENT_CORREL_ID= +# Identifies which environ has been used by an event +EVENT_ENVIRON=13 +# Event mode +EVENT_MODE=O +# Service event code +EVENT_SERVICE=5 +# Source of the event code +EVENT_ORIGIN=0 +# Default event type +EVENT_TYPE_DEFAULT_POSTACTIONS=0 +# Default event type for pre-actions +EVENT_TYPE_DEFAULT_PREACTIONS=1 +# Default event version +EVENT_VERSION_DEFAULT=00 +# Default event client +EVENT_CLIENT_DEFAULT=0 +# Default event client type +EVENT_CLIENT_TYPE_DEFAULT=0 +# Default event No Client +EVENT_NO_CLIENT_DEFAULT=0 +# Default channel for channel handler component +CHANNEL_HANDLER_CHANNEL=0 +# Default service for channel handler component +CHANNEL_HANDLER_SERVICE=0 +# Default environ for channel handler component +CHANNEL_HANDLER_ENVIRON=0 +# Mail version service for ESB +ESB_MAIL_SERVICE_VERSION=1 +# SMS version service for ESB +ESB_SMS_SERVICE_VERSION=1 +# Default priority for SMSs +DEFAULT_SMS_PRIORITY=0 +# Default priority for Emails +DEFAULT_EMAIL_PRIORITY=0 +# Path for attachments files (For emails) +ATTACHMENTS_PATH=/attachments +# [Hit counter] Maximum counter store size +MAX_COUNTER_SIZE=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +COUNTER_ELEMENTS_AFTER_REMOVE=10 + +# Timeout for WS connections +WS_CONNECT_TIMEOUT=3000 +# Timeout for WS requests +WS_REQUEST_TIMEOUT=3000 +# Timeout for transaction executions (milliseconds) +TRANSACTION_TIMEOUT =5000 +# Path where there are SMS xsds +ESB_SMS_PATH =/xsd/SMS_ +# Path where there are Email xsds +ESB_MAIL_PATH =/xsd/Mail_ +# Path where there are ESB's ds xsd +ESB_DS_PATH =/xsd/ds.xsd +# Path where there are ESB's dc xsd +ESB_DC_PATH =/xsd/dc.xsd +# Path where there is the events xsd +EVENTS_XSD_PATH =/xsd/HeaderAndContextEvent.xsd +# Default message for multilanguage responses +MULTILANGUAGE_DEFAULT_MESSAGE=Could not load multilanguage response +# Multilanguage file name +MULTILANGUAGE_FILE_NAME=multilanguage- +# Deletion criteria TQWPOLOG +PERIODIC_REMOVE_TQWPOLOG=10 +# Deletion criteria TQWPOEXR +PERIODIC_REMOVE_TQWPOEXR=1 +#Monitoring Functional Event +FLAG_JMX_EVENT_FUNCTIONAL=true +#Timeout in query. +QUERY_TIMEOUT=4 +#MaxRows in a query. +QUERY_MAXROWS=5000 +# Banking session flag +BANKING_SESSION_FLAG = SCHEDULER +PS9_UPPERCASE=TRUE +PS9_UPPERCASE_USE_HEADER=TRUE +####################################################################################################################### +################################# Database properties ################################ +DATABASE_AUTOCOMIT=false +DATABASE_READONLY=false +DATABASE_TRANSACTION_ISOLATION=-1 +DATABASE_INITIAL_SIZE=0 +DATABASE_NUM_MAX_ACTIVE=200 +DATABASE_MAX_IDLE=0 +DATABASE_MAX_OPEN_PREPARED_STATEMENT=-1 +DATABASE_MAX_WAIT=-1 +DATABASE_MIN_EVICTABLE_IDLE_TIME_MILLIS=1800000 +DATABASE_MIN_IDLE=0 +DATABASE_POOL_PREPARED_STATEMENT=false +DATABASE_TEST_ON_BORROW=true +DATABASE_TEST_ON_RETURN=false +DATABASE_TEST_WHILE_IDLE=false +DATABASE_TIME_BETWEEN_EVICTION_RUNS_MILLIS=-1 +DATABASE_VALIDATION_QUERY=select 1 from dual +DATABASE_NUM_TEST_PER_EVICTION_RUN=3 +DATABASE_ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED=false + +# Position of group code last character +GROUP_CODE_LAST=3 +# Position of parameter code last character +PARAMETER_CODE_LAST=6 +# Binary code representation +BINARY_CODE=Binary +# Integer code reprensentation +INTEGER_CODE=Integer +# Long code representation +LONG_CODE=Long +# Double code representation +DOUBLE_CODE=Double +# String code representation +STRING_CODE=String +# Map format header tag +HEADER_TAG=header +# Map format body tag +BODY_TAG=body +# Map format advice tag +ADVICE_TAG=advice +# Tag representing Header class +GENERAL_HEADER_TAG=header +# Tag representing IdLogicTransaction class +ID_LOGIC_TRANSACTION_TAG=idLogicTransaction +# Tag representing TransactionOrigin class +TRANSACTION_ORIGIN_TAG=transactionOrigin +# Parameter separator +PARAMETER_SEPARATOR = ; +# Complex parameter separator +COMPLEX_PARAMETER_SEPARATOR = , +# End request separator +END_REQUEST_SEPARATOR = \] +# Begin request separator +BEGIN_REQUEST_SEPARATOR = \[ +# End request separator (Map only) +MAP_END_REQUEST_SEPARATOR = ] +# Begin request separator (Map only) +MAP_BEGIN_REQUEST_SEPARATOR = [ +# Begin complex parameter values +BEGIN_COMPLEX_PARAMETER= ( +# End complex parameter values +END_COMPLEX_PARAMETER= ) +# Separator between parameter name and value +NAME_VALUE_SEPARATOR = = +# Separator between message header and body +HEAD_BODY_SEPARATOR = & +# Header for advice number +HEADER_ADVICE_NUMBER=001000 +# Header for advice code +HEADER_ADVICE_CODE=002001 +# Header for advice description +HEADER_ADVICE_DESCRIPTION=002002 +# Advice code header +ADVICE_CODE_HEADER=code +# Advice description header +ADVICE_DESCRIPTION_HEADER=description + +# Default Locale = es_ES +SYSTEMLOCALE=es_ES +# Country Code for "es_ES" locale = ES +COUNTRY.es_ES=ES +# language Code for "es_ES" locale = es +LANGUAGE.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +DATEFORMAT.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +TIMEZONE.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +CURRENCY.es_ES=EURO +# Country Code for "pl_PL" locale = PL +COUNTRY.pl_PL=PL +# language Code for "pl_PL" locale = pl +LANGUAGE.pl_PL=pl +# Date Format for "pl_PL" locale = MM/dd/yyyy +DATEFORMAT.pl_PL=MM/dd/yyyy +# Time Zone for "pl_PL" locale = Europe/Warsaw +TIMEZONE.pl_PL=Europe/Warsaw +# Currency for "pl_PL" locale = DOLLAR +CURRENCY.pl_PL=DOLLAR +# Deployed locale = es_ES +LOCALEDEPLOY=es_ES +# arq type (for evo. utilidades compartidas) +arq.type=ONLINE \ No newline at end of file diff --git a/artifact/transactions/QTDITC9101-CO/src/test/resources/log4j.xml b/artifact/transactions/QTDITC9101-CO/src/test/resources/log4j.xml new file mode 100644 index 0000000..215502b --- /dev/null +++ b/artifact/transactions/QTDITC9101-CO/src/test/resources/log4j.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9201-CO/.classpath b/artifact/transactions/QTDITC9201-CO/.classpath new file mode 100644 index 0000000..fae1a2b --- /dev/null +++ b/artifact/transactions/QTDITC9201-CO/.classpath @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9201-CO/.project b/artifact/transactions/QTDITC9201-CO/.project new file mode 100644 index 0000000..23e9e71 --- /dev/null +++ b/artifact/transactions/QTDITC9201-CO/.project @@ -0,0 +1,29 @@ + + + QTDITC9201-CO + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + org.springframework.ide.eclipse.core.springbuilder + + + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/artifact/transactions/QTDITC9201-CO/.settings/org.eclipse.core.resources.prefs b/artifact/transactions/QTDITC9201-CO/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..29abf99 --- /dev/null +++ b/artifact/transactions/QTDITC9201-CO/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding//src/test/java=UTF-8 +encoding//src/test/resources=UTF-8 +encoding/=UTF-8 diff --git a/artifact/transactions/QTDITC9201-CO/.settings/org.eclipse.jdt.core.prefs b/artifact/transactions/QTDITC9201-CO/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..714351a --- /dev/null +++ b/artifact/transactions/QTDITC9201-CO/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/artifact/transactions/QTDITC9201-CO/pom.xml b/artifact/transactions/QTDITC9201-CO/pom.xml new file mode 100644 index 0000000..32c0b72 --- /dev/null +++ b/artifact/transactions/QTDITC9201-CO/pom.xml @@ -0,0 +1,224 @@ + + 4.0.0 + + com.bbva.qtdi + TRANSACTIONS + 0.0.1 + + com.bbva.qtdi + QTDITC92 + 01-CO + GET authorization-question-id + + 0.0 + + + + com.bbva.elara + elara-transaction + ${apx.core.online.version} + compile + + + com.bbva.elara + elara-test + ${apx.core.online.version} + test + + + org.eclipse.persistence + org.eclipse.persistence.jpa + test + + + org.springframework + spring-test + test + + + org.springframework + spring-beans + test + + + org.springframework + spring-tx + test + + + org.mockito + mockito-all + test + + + com.google.guava + guava + test + + + com.bbva.qtdi + QTDIRC02 + 0.0.1 + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.felix + maven-bundle-plugin + [2.3.7,) + + manifest + + + + + + + + + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + bundle-manifest + process-classes + + manifest + + + + + + jar + + + ${project.artifactId}-${project.version} + com.bbva.qtdi.QTDITC9201COTransaction + transaction + com.bbva.elara.*;version="${arc.osgi.version}", + *;version="${arc.osgi.version}" + + + + + maven-jar-plugin + 2.3.1 + + ${project.artifactId}-${project.version} + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + maven-resources-plugin + + + copy-resources + install + + copy-resources + + + ${project.build.directory}/config + + + src/main/resources + + **/database-${project.artifactId}-${project.version}.properties + **/database-passw-${project.artifactId}-${project.version}.properties + **/${project.artifactId}-${project.version}.properties + + + + + + + + + maven-antrun-plugin + + + install + + run + + + + + + + + + + + org.jacoco + jacoco-maven-plugin + 0.7.7.201606060606 + + + default-prepare-agent + + prepare-agent + + + + default-prepare-agent-integration + + prepare-agent-integration + + + + default-report + + report + + + + default-report-integration + + report-integration + + + + default-check + + check + + + + + BUNDLE + + + ${jacoco.type.coverage} + COVEREDRATIO + ${jacoco.no.coverage} + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9201-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9201COTransaction.java b/artifact/transactions/QTDITC9201-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9201COTransaction.java new file mode 100644 index 0000000..a80a2e0 --- /dev/null +++ b/artifact/transactions/QTDITC9201-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9201COTransaction.java @@ -0,0 +1,16 @@ +package com.bbva.qtdi; + + +import com.bbva.elara.transaction.AbstractTransaction; + +public abstract class AbstractQTDITC9201COTransaction extends AbstractTransaction { + + public AbstractQTDITC9201COTransaction(){ + } + + + + + + +} diff --git a/artifact/transactions/QTDITC9201-CO/src/main/java/com/bbva/qtdi/QTDITC9201COTransaction.java b/artifact/transactions/QTDITC9201-CO/src/main/java/com/bbva/qtdi/QTDITC9201COTransaction.java new file mode 100644 index 0000000..9464711 --- /dev/null +++ b/artifact/transactions/QTDITC9201-CO/src/main/java/com/bbva/qtdi/QTDITC9201COTransaction.java @@ -0,0 +1,21 @@ +/** + * + */ +package com.bbva.qtdi; +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +/** + * GET authorization-question-id + * Business Logic implementation. + * @author Novatec Solutions + * + */ +public class QTDITC9201COTransaction extends AbstractQTDITC9201COTransaction { + + @Override + public void execute() { + QTDIRC02 qtdiRC02 = (QTDIRC02)getServiceLibrary(QTDIRC02.class); + // TODO + } + +} diff --git a/artifact/transactions/QTDITC9201-CO/src/main/resources/META-INF/MANIFEST.MF b/artifact/transactions/QTDITC9201-CO/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9201-CO/src/main/resources/QTDITC92-01-CO.xml b/artifact/transactions/QTDITC9201-CO/src/main/resources/QTDITC92-01-CO.xml new file mode 100644 index 0000000..ccac03e --- /dev/null +++ b/artifact/transactions/QTDITC9201-CO/src/main/resources/QTDITC92-01-CO.xml @@ -0,0 +1 @@ +GET authorization-question-id \ No newline at end of file diff --git a/artifact/transactions/QTDITC9201-CO/src/main/resources/multilanguage-CO.properties b/artifact/transactions/QTDITC9201-CO/src/main/resources/multilanguage-CO.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9201-CO/src/test/java/com/bbva/qtdi/QTDITC9201COTransactionTest.java b/artifact/transactions/QTDITC9201-CO/src/test/java/com/bbva/qtdi/QTDITC9201COTransactionTest.java new file mode 100644 index 0000000..3d7a020 --- /dev/null +++ b/artifact/transactions/QTDITC9201-CO/src/test/java/com/bbva/qtdi/QTDITC9201COTransactionTest.java @@ -0,0 +1,100 @@ +package com.bbva.qtdi; + + +import java.util.ArrayList; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mockito; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import com.bbva.elara.domain.transaction.Context; +import com.bbva.elara.domain.transaction.ParameterTable; +import com.bbva.elara.domain.transaction.TransactionParameter; +import com.bbva.elara.domain.transaction.request.TransactionRequest; +import com.bbva.elara.domain.transaction.request.body.CommonRequestBody; +import com.bbva.elara.test.osgi.DummyBundleContext; + + +/** + * Test for transaction QTDITC9201COTransaction + */ +@RunWith(SpringJUnit4ClassRunner.class) +@ContextConfiguration(locations = { + "classpath:/META-INF/spring/elara-test.xml", + "classpath:/META-INF/spring/QTDITC9201COTest.xml" }) +public class QTDITC9201COTransactionTest { + private static final Logger LOGGER = LoggerFactory.getLogger(QTDITC9201COTransactionTest.class); + + @Autowired + private QTDITC9201COTransaction transaction; + + @Resource(name="dummyBundleContext") + private DummyBundleContext bundleContext; + + private TransactionRequest transactionRequest; + + + @Before + public void initializeClass() throws Exception { + this.transaction.start(bundleContext); + + // Initializing transaction to test + this.transaction.setContext(new Context()); + this.transaction.getContext().setLanguageCode("ES"); + + transactionRequest = Mockito.mock(TransactionRequest.class); + CommonRequestBody commonRequestBody = new CommonRequestBody(); + commonRequestBody.setTransactionParameters(new ArrayList()); + transactionRequest.setBody(commonRequestBody); + Mockito.when(transactionRequest.getRestfulMethod()).thenReturn(null); + this.transaction.getContext().setTransactionRequest(transactionRequest); + + } + + @Test + public void testNotNull(){ + Assert.assertNotNull(this.transaction); + //The method getRestfulMethod() will return null by default. To test other methods add a line like this + //Mockito.when(transactionRequest.getRestfulMethod()).thenReturn("getBancos"); + this.transaction.execute(); + } + + + private void addTable(final String key, final List> table) { + ParameterTable parameterTable = new ParameterTable(); + parameterTable.setParameterTableList(table); + this.addParameter(key, parameterTable); + } + + private void addParameter(final String parameter, final Object value) { + final TransactionParameter tParameter = new TransactionParameter( + parameter, value); + transaction.getContext().getParameterList().put(parameter, tParameter); + } + + private Object getParameter(final String parameter) { + final TransactionParameter param = transaction.getContext() + .getParameterList().get(parameter); + return param.getValue(); + } + + private Object getTableParameter(final int rowNumber, final String table, final String key) + { + ParameterTable param = (ParameterTable)getParameter(table); + Map row = param.get(rowNumber); + return row.get(key); + } +} diff --git a/artifact/transactions/QTDITC9201-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java b/artifact/transactions/QTDITC9201-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java new file mode 100644 index 0000000..c9d694e --- /dev/null +++ b/artifact/transactions/QTDITC9201-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +public class QTDIRC02Mock implements QTDIRC02 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDITC9201-CO/src/test/resources/META-INF/spring/QTDITC9201COTest.xml b/artifact/transactions/QTDITC9201-CO/src/test/resources/META-INF/spring/QTDITC9201COTest.xml new file mode 100644 index 0000000..0025e0f --- /dev/null +++ b/artifact/transactions/QTDITC9201-CO/src/test/resources/META-INF/spring/QTDITC9201COTest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + classpath:/common-env.properties + classpath:/QTDI.properties + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9201-CO/src/test/resources/QTDI.properties b/artifact/transactions/QTDITC9201-CO/src/test/resources/QTDI.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9201-CO/src/test/resources/common-env.properties b/artifact/transactions/QTDITC9201-CO/src/test/resources/common-env.properties new file mode 100644 index 0000000..c44cc81 --- /dev/null +++ b/artifact/transactions/QTDITC9201-CO/src/test/resources/common-env.properties @@ -0,0 +1,545 @@ +######################### +# MQ manager definition # +######################### + +# MQ host name +mq.host.name=ADMBM101 +# MQ host port +mq.host.port=1414 +# MQ host channel +nq.host.channel=CLNT.QWPO.ES +# MQ host manager +mq.host.manager=QMDESM01 +# MQ default program +mq.default.program=QC1CDPL + +####################### +# External MQ queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.mq=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.mq=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.mq=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.mq=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.xml.xaq.mq=PRE.QWPO.XAQ_XML.QWR001 + +############################### +# Session queue configuration # +############################### + +# Name of the MQ queue where is sent the change of session message +session.queue.name=PRE.IMS.QWPO.QWR001 + +###################### +# JMS message broker # +###################### + +# IP address of JMS broker for external queues +ip.external.broker=${mq.host.name}:${mq.host.port}::${mq.host.manager}:${mq.host.channel} + +####################### +# External JMS queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.jms=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.jms=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.jms=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.jms=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for XML-formatted messages over XAQ logical protocol +queue.xml.xaq.jms=PRE.QWPO.XAQ_XML.QWR001 +# Queue for XML-formatted messages over Generic logical protocol +queue.xml.generic.jms=PRE.QWPO.GENERIC_XML.QWR001 +# Queue used to send events +event.queue=DYD.QTGE.RECEP.SUCESOS.QWR001 +# Queue used to send emails and sms by ESB +esb.queue=DYD.ANYNORESP.ESB.QWR001 + +################################# +# SOAP-JMS queues configuration # +################################# + +tibco.ems.queue.name.esb.elara.generic=queue.sample.generic +tibco.ems.queue.name.esb.elara.otma=queue.sample.otma +tibco.ems.queue.name.esb.elara.otma.pg=queue.sample.otmapg +tibco.ems.queue.name.esb.elara.ps9=queue.sample.ps9 +tibco.ems.queue.name.esb.elara.xaq=queue.sample.xaq + +########################### +# Tibco EMS configuration # +########################### + +tibco.ems.url= +tibco.ems.user= +tibco.ems.passw= + +# Bundlor URL +arq.bundlor.url=http://localhost:8101/qwjr_mult_mult_01/ +# Activate or deactivate session change through JMS queue +jms.listener.activated=true +# NTP +ntp.host=15.150.139.187 +ntp.port=123 +ntp.timeOut=10 +ntp.waitTime=60 +ntp.threshold=5 +# Scheduler configuration +scheduler.bundleCleanerTrigger.cronExpression=0 0/5 * * * ? +scheduler.nodeArchitectureControllerTrigger.cronExpression=15 0/1 * * * ? +scheduler.ntpServiceTrigger.cronExpression=0 1 08,20 * * ? +scheduler.sessionLocalModeTrigger.cronExpression=0 0/5 * * * ? +# JMS +jms.poolexecutor.corepoolsize=10 +jms.poolexecutor.maxpoolsize=10 +jms.poolexecutor.keepaliveseconds=1 +jms.listener.concurrency=2-10 +jms.listener.idletaskexecutionlimit=1 +jms.listener.idleconsumerlimit=1 +# Disruptor +disruptor.in.consumers=5 +disruptor.out.consumers=5 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 + +# Pass for the console +felix.webconsole.password=AdminCore +# Value to indicate the ROP writing mode. (ROP_WRITES_DEPENDING_ON_APP, ROP_NEVER_WRITES, ROP_ALWAYS_WRITES) +rop.writingMode=ROP_ALWAYS_WRITES + +# Message used in logging component as default +default.log.message=Could not load error catalog message +# Default description for unexpected exceptions +default.error.description=No se puede cargar la descripcion del error +# Number of retries to insert in DB a new Record Operation +rop.num.entries=3 +# Number of retries to insert in DB a new Journal Operation +journal.num.entries=3 +# Application code size (For error catalog code) +error.catalog.code.application.code.size=4 +# Error type size (For error catalog code) +error.catalog.code.error.type.size=1 +# Error code size (For error catalog code) +error.catalog.code.error.code.size=8 +# OTMA Error code size (For error catalog code) +error.catalog.code.error.code.start.otma=5 +# Size of the catalog of errors +error.catalog.code.size=13 +# Size of the PG catalog of errors +error.catalog.code.pg.size=12 +# Default error description size +error.description.size=80 +# Path for the xml Record Operation files (Files with ROP that could be saved) +rop.path=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +journal.path=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +journal.persistence.type=ELARA +# Default channel for channel handler component +channel.handler.channel=0 +# Default service for channel handler component +channel.handler.service=0 +# Default environ for channel handler component +channel.handler.environ=0 +# Mail version service for ESB +esb.mail.service.version=1 +# SMS version service for ESB +esb.sms.service.version=1 +# Default priority for SMSs +default.sms.priority=0 +# Default priority for Emails +default.email.priority=0 +# Path for attachments files (For emails) +attachments.path=/attachments +# [Hit counter] Maximum counter store size +max.counter.size=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +counter.elements.after.remove=10 +# Timeout for WS connections +ws.connect.timeout=3000 +# Timeout for WS requests +ws.request.timeout=3000 +# Timeout for transaction executions (milliseconds) +transaction.timeout=5000 +# Default message for multilanguage responses +multilanguage.default.message=Could not load multilanguage response +# Multilanguage file name +multilanguage.file.name=multilanguage- +#Timeout in query. +query.timeout=4 +#MaxRows in a query. +query.maxrows=5000 +# Banking session flag +banking.session.flag=SCHEDULER +# PS9 properties +ps9.uppercase=TRUE +ps9.uppercase.use.header=TRUE +# WS control library properties +control.ws.default.user=e000000 +control.ws.default.pid=999 +# Bundlor properties +arq.bundlor.context.node.ping=/node/ping.do +arq.bundlor.context.node.properties=/node/properties.do +arq.bundlor.context.node.properties.uuaa=/node/propertiesUUAA.do +arq.bundlor.context.node.ping.boot=/node/pingBoot.do +# Transactions repository address +repository.transaction.jar=${arq.bundlor.url}/transaction/download.do?txName= +repository.library.jar=${arq.bundlor.url}/library/download.do?libName= +# Logs Repository address +repository.log.file=${arq.bundlor.url}/uuaa/log/download.do?uuaaName= +# Database properties +database.name=ORACLE +database.showSql=true +jdbc.default.schema=QWPO +# Crypto algorithm +crypto.algorithm=PBEWithMD5AndDES +# Crypto iteration count +crypto.iteration.count=19 +# Passphase for Crypto service +passphase=Accenture1 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 +# LUA script cofiguration +lua.forbidden.funcs=coroutine; module; package : loadlib, seeall; io; os : execute, exit, getenv, remove, rename, setlocale, tmpname; debug +# Symbolic name of topology +org.apache.cxf.dosgi.topology.symbolic.name=cxf-dosgi-ri-topology-manager +# Symbolic name of DOSGi +org.apache.cxf.dosgi.admin.symbolic.name=cxf-dosgi-ri-dsw-cxf +# Property name of filter service +org.apache.cxf.dosgi.ws.property.name=org.apache.cxf.ws.databinding +# Property name of filter service for rest +org.apache.cxf.dosgi.rest.property.name=org.apache.cxf.rs.httpservice.context +# Security service configuration +secured.bundle.categories=library;transaction +transaction.service.filter=com.bbva.elara.utility;com.bbva.elara.transaction;com.bbva.elara.support.provisioning.store.TransactionStoreDelegate;com.bbva.elara.configuration.manager.ConfigurationManager +library.service.filter=com.bbva.elara.utility;com.bbva.elara.control.WSControl + +# Default Locale = es_ES +systemlocale=es_ES +# Country Code for "es_ES" locale = ES +country.es_ES=ES +# language Code for "es_ES" locale = es +language.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +dateformat.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +timezone.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +currency.es_ES=EURO +# Deployed locale = es_ES +localedeploy=es_ES + +# Position of group code last character +group.code.last=3 +# Position of parameter code last character +parameter.code.last=6 +# Binary code representation +binary.code=Binary +# Integer code reprensentation +integer.code=Integer +# Long code representation +long.code=Long +# Double code representation +double.code=Double +# String code representation +string.code=String +# Map format header tag +header.tag=header +# Map format body tag +body.tag=body +# Map format advice tag +advice.tag=advice +# Tag representing Header class +general.header.tag=header +# Tag representing IdLogicTransaction class +id.logic.transaction.tag=idLogicTransaction +# Tag representing TransactionOrigin class +transaction.origin.tag=transactionOrigin +# Parameter separator +parameter.separator=\u003B +# Complex parameter separator +complex.parameter.separator=\u002C +# End request separator +end.request.separator=\\] +# Begin request separator +begin.request.separator=\\[ +# End request separator (Map only) +map.end.request.separator=\u005D +# Begin request separator (Map only) +map.begin.request.separator=\u005B +# Begin complex parameter values +begin.complex.parameter=\u0028 +# End complex parameter values +end.complex.parameter=\u0029 +# Separator between parameter name and value +name.value.separator=\u003D +# Separator between message header and body +head.body.separator= \u0026 +# Header for advice number +header.advice.number=001000 +# Header for advice code +header.advice.code=002001 +# Header for advice description +header.advice.description=002002 +# Advice code header +advice.code.header=code +# Advice description header +advice.description.header=description +# File code representation +file.code=InputStream + +############################################## +# Paths to XML marshallers and unmarshallers # +############################################## + +# Path for standard request +path.standard.request=/META-INF/parser/standardHeaderRequest +# Path for pg request +path.pg.request=/META-INF/parser/headerRequest +# Path for standard response +path.standard.response=/META-INF/parser/standardHeaderResponse +# Path for map request +path.map.request=/META-INF/parser/mapHeaderRequest +# Path for map response +path.map.response=/META-INF/parser/mapHeaderResponse + + + +################################################# +# Old configuration # +################################################# + +url.bundle.action=/connectorTx + +# Message used in logging component as default +DEFAULTLOGMESSAGE=Could not load error catalog message +# IP of the NTP server +NTP_VIRTUAL_HOST=15.150.139.187 +# Port used to get NTP messages +NTP_SERVER_PORT=123 +# Number of seconds that the ntp component waits at NTP server +NTP_TIME_OUT=10 +# Number of seconds that the ntp server waits between +NTP_WAIT_TIME=60 +# Number of seconds of difference between Elara and NTP server which are considered normal +NTP_THRESHOLD=5 +# Number of retries to insert in DB a new Record Operation +ROP_NUM_RETRIES=3 +# Number of retries to insert in DB a new Journal Operation +JOURNAL_NUM_RETRIES=3 +# Application code size (For error catalog code) +ERRORCATALOGCODE_APPLICATIONCODESIZE=4 +# Error type size (For error catalog code) +ERRORCATALOGCODE_ERRORTYPESIZE=1 +# Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODESIZE=8 +# OTMA Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODE_START_OTMA=5 +# Size of the catalog of errors +ERRORCATALOGCODESIZE=13 +# Path for the xml Record Operation files (Files with ROP that could be saved) +ROP_PATH=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +JOURNAL_PATH=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +JOURNAL_PERSISTENCE_TYPE=ELARA +# Channel of the events +EVENT_CHANNEL=0 +# Number used to correlate events +EVENT_CORREL_ID= +# Identifies which environ has been used by an event +EVENT_ENVIRON=13 +# Event mode +EVENT_MODE=O +# Service event code +EVENT_SERVICE=5 +# Source of the event code +EVENT_ORIGIN=0 +# Default event type +EVENT_TYPE_DEFAULT_POSTACTIONS=0 +# Default event type for pre-actions +EVENT_TYPE_DEFAULT_PREACTIONS=1 +# Default event version +EVENT_VERSION_DEFAULT=00 +# Default event client +EVENT_CLIENT_DEFAULT=0 +# Default event client type +EVENT_CLIENT_TYPE_DEFAULT=0 +# Default event No Client +EVENT_NO_CLIENT_DEFAULT=0 +# Default channel for channel handler component +CHANNEL_HANDLER_CHANNEL=0 +# Default service for channel handler component +CHANNEL_HANDLER_SERVICE=0 +# Default environ for channel handler component +CHANNEL_HANDLER_ENVIRON=0 +# Mail version service for ESB +ESB_MAIL_SERVICE_VERSION=1 +# SMS version service for ESB +ESB_SMS_SERVICE_VERSION=1 +# Default priority for SMSs +DEFAULT_SMS_PRIORITY=0 +# Default priority for Emails +DEFAULT_EMAIL_PRIORITY=0 +# Path for attachments files (For emails) +ATTACHMENTS_PATH=/attachments +# [Hit counter] Maximum counter store size +MAX_COUNTER_SIZE=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +COUNTER_ELEMENTS_AFTER_REMOVE=10 + +# Timeout for WS connections +WS_CONNECT_TIMEOUT=3000 +# Timeout for WS requests +WS_REQUEST_TIMEOUT=3000 +# Timeout for transaction executions (milliseconds) +TRANSACTION_TIMEOUT =5000 +# Path where there are SMS xsds +ESB_SMS_PATH =/xsd/SMS_ +# Path where there are Email xsds +ESB_MAIL_PATH =/xsd/Mail_ +# Path where there are ESB's ds xsd +ESB_DS_PATH =/xsd/ds.xsd +# Path where there are ESB's dc xsd +ESB_DC_PATH =/xsd/dc.xsd +# Path where there is the events xsd +EVENTS_XSD_PATH =/xsd/HeaderAndContextEvent.xsd +# Default message for multilanguage responses +MULTILANGUAGE_DEFAULT_MESSAGE=Could not load multilanguage response +# Multilanguage file name +MULTILANGUAGE_FILE_NAME=multilanguage- +# Deletion criteria TQWPOLOG +PERIODIC_REMOVE_TQWPOLOG=10 +# Deletion criteria TQWPOEXR +PERIODIC_REMOVE_TQWPOEXR=1 +#Monitoring Functional Event +FLAG_JMX_EVENT_FUNCTIONAL=true +#Timeout in query. +QUERY_TIMEOUT=4 +#MaxRows in a query. +QUERY_MAXROWS=5000 +# Banking session flag +BANKING_SESSION_FLAG = SCHEDULER +PS9_UPPERCASE=TRUE +PS9_UPPERCASE_USE_HEADER=TRUE +####################################################################################################################### +################################# Database properties ################################ +DATABASE_AUTOCOMIT=false +DATABASE_READONLY=false +DATABASE_TRANSACTION_ISOLATION=-1 +DATABASE_INITIAL_SIZE=0 +DATABASE_NUM_MAX_ACTIVE=200 +DATABASE_MAX_IDLE=0 +DATABASE_MAX_OPEN_PREPARED_STATEMENT=-1 +DATABASE_MAX_WAIT=-1 +DATABASE_MIN_EVICTABLE_IDLE_TIME_MILLIS=1800000 +DATABASE_MIN_IDLE=0 +DATABASE_POOL_PREPARED_STATEMENT=false +DATABASE_TEST_ON_BORROW=true +DATABASE_TEST_ON_RETURN=false +DATABASE_TEST_WHILE_IDLE=false +DATABASE_TIME_BETWEEN_EVICTION_RUNS_MILLIS=-1 +DATABASE_VALIDATION_QUERY=select 1 from dual +DATABASE_NUM_TEST_PER_EVICTION_RUN=3 +DATABASE_ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED=false + +# Position of group code last character +GROUP_CODE_LAST=3 +# Position of parameter code last character +PARAMETER_CODE_LAST=6 +# Binary code representation +BINARY_CODE=Binary +# Integer code reprensentation +INTEGER_CODE=Integer +# Long code representation +LONG_CODE=Long +# Double code representation +DOUBLE_CODE=Double +# String code representation +STRING_CODE=String +# Map format header tag +HEADER_TAG=header +# Map format body tag +BODY_TAG=body +# Map format advice tag +ADVICE_TAG=advice +# Tag representing Header class +GENERAL_HEADER_TAG=header +# Tag representing IdLogicTransaction class +ID_LOGIC_TRANSACTION_TAG=idLogicTransaction +# Tag representing TransactionOrigin class +TRANSACTION_ORIGIN_TAG=transactionOrigin +# Parameter separator +PARAMETER_SEPARATOR = ; +# Complex parameter separator +COMPLEX_PARAMETER_SEPARATOR = , +# End request separator +END_REQUEST_SEPARATOR = \] +# Begin request separator +BEGIN_REQUEST_SEPARATOR = \[ +# End request separator (Map only) +MAP_END_REQUEST_SEPARATOR = ] +# Begin request separator (Map only) +MAP_BEGIN_REQUEST_SEPARATOR = [ +# Begin complex parameter values +BEGIN_COMPLEX_PARAMETER= ( +# End complex parameter values +END_COMPLEX_PARAMETER= ) +# Separator between parameter name and value +NAME_VALUE_SEPARATOR = = +# Separator between message header and body +HEAD_BODY_SEPARATOR = & +# Header for advice number +HEADER_ADVICE_NUMBER=001000 +# Header for advice code +HEADER_ADVICE_CODE=002001 +# Header for advice description +HEADER_ADVICE_DESCRIPTION=002002 +# Advice code header +ADVICE_CODE_HEADER=code +# Advice description header +ADVICE_DESCRIPTION_HEADER=description + +# Default Locale = es_ES +SYSTEMLOCALE=es_ES +# Country Code for "es_ES" locale = ES +COUNTRY.es_ES=ES +# language Code for "es_ES" locale = es +LANGUAGE.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +DATEFORMAT.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +TIMEZONE.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +CURRENCY.es_ES=EURO +# Country Code for "pl_PL" locale = PL +COUNTRY.pl_PL=PL +# language Code for "pl_PL" locale = pl +LANGUAGE.pl_PL=pl +# Date Format for "pl_PL" locale = MM/dd/yyyy +DATEFORMAT.pl_PL=MM/dd/yyyy +# Time Zone for "pl_PL" locale = Europe/Warsaw +TIMEZONE.pl_PL=Europe/Warsaw +# Currency for "pl_PL" locale = DOLLAR +CURRENCY.pl_PL=DOLLAR +# Deployed locale = es_ES +LOCALEDEPLOY=es_ES +# arq type (for evo. utilidades compartidas) +arq.type=ONLINE \ No newline at end of file diff --git a/artifact/transactions/QTDITC9201-CO/src/test/resources/log4j.xml b/artifact/transactions/QTDITC9201-CO/src/test/resources/log4j.xml new file mode 100644 index 0000000..215502b --- /dev/null +++ b/artifact/transactions/QTDITC9201-CO/src/test/resources/log4j.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9301-CO/.classpath b/artifact/transactions/QTDITC9301-CO/.classpath new file mode 100644 index 0000000..fae1a2b --- /dev/null +++ b/artifact/transactions/QTDITC9301-CO/.classpath @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9301-CO/.project b/artifact/transactions/QTDITC9301-CO/.project new file mode 100644 index 0000000..b9782d9 --- /dev/null +++ b/artifact/transactions/QTDITC9301-CO/.project @@ -0,0 +1,29 @@ + + + QTDITC9301-CO + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + org.springframework.ide.eclipse.core.springbuilder + + + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/artifact/transactions/QTDITC9301-CO/.settings/org.eclipse.core.resources.prefs b/artifact/transactions/QTDITC9301-CO/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..29abf99 --- /dev/null +++ b/artifact/transactions/QTDITC9301-CO/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding//src/test/java=UTF-8 +encoding//src/test/resources=UTF-8 +encoding/=UTF-8 diff --git a/artifact/transactions/QTDITC9301-CO/.settings/org.eclipse.jdt.core.prefs b/artifact/transactions/QTDITC9301-CO/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..714351a --- /dev/null +++ b/artifact/transactions/QTDITC9301-CO/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/artifact/transactions/QTDITC9301-CO/pom.xml b/artifact/transactions/QTDITC9301-CO/pom.xml new file mode 100644 index 0000000..de52f78 --- /dev/null +++ b/artifact/transactions/QTDITC9301-CO/pom.xml @@ -0,0 +1,224 @@ + + 4.0.0 + + com.bbva.qtdi + TRANSACTIONS + 0.0.1 + + com.bbva.qtdi + QTDITC93 + 01-CO + PATCH authorization-question-id + + 0.0 + + + + com.bbva.elara + elara-transaction + ${apx.core.online.version} + compile + + + com.bbva.elara + elara-test + ${apx.core.online.version} + test + + + org.eclipse.persistence + org.eclipse.persistence.jpa + test + + + org.springframework + spring-test + test + + + org.springframework + spring-beans + test + + + org.springframework + spring-tx + test + + + org.mockito + mockito-all + test + + + com.google.guava + guava + test + + + com.bbva.qtdi + QTDIRC02 + 0.0.1 + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.felix + maven-bundle-plugin + [2.3.7,) + + manifest + + + + + + + + + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + bundle-manifest + process-classes + + manifest + + + + + + jar + + + ${project.artifactId}-${project.version} + com.bbva.qtdi.QTDITC9301COTransaction + transaction + com.bbva.elara.*;version="${arc.osgi.version}", + *;version="${arc.osgi.version}" + + + + + maven-jar-plugin + 2.3.1 + + ${project.artifactId}-${project.version} + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + maven-resources-plugin + + + copy-resources + install + + copy-resources + + + ${project.build.directory}/config + + + src/main/resources + + **/database-${project.artifactId}-${project.version}.properties + **/database-passw-${project.artifactId}-${project.version}.properties + **/${project.artifactId}-${project.version}.properties + + + + + + + + + maven-antrun-plugin + + + install + + run + + + + + + + + + + + org.jacoco + jacoco-maven-plugin + 0.7.7.201606060606 + + + default-prepare-agent + + prepare-agent + + + + default-prepare-agent-integration + + prepare-agent-integration + + + + default-report + + report + + + + default-report-integration + + report-integration + + + + default-check + + check + + + + + BUNDLE + + + ${jacoco.type.coverage} + COVEREDRATIO + ${jacoco.no.coverage} + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9301-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9301COTransaction.java b/artifact/transactions/QTDITC9301-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9301COTransaction.java new file mode 100644 index 0000000..be77cad --- /dev/null +++ b/artifact/transactions/QTDITC9301-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9301COTransaction.java @@ -0,0 +1,16 @@ +package com.bbva.qtdi; + + +import com.bbva.elara.transaction.AbstractTransaction; + +public abstract class AbstractQTDITC9301COTransaction extends AbstractTransaction { + + public AbstractQTDITC9301COTransaction(){ + } + + + + + + +} diff --git a/artifact/transactions/QTDITC9301-CO/src/main/java/com/bbva/qtdi/QTDITC9301COTransaction.java b/artifact/transactions/QTDITC9301-CO/src/main/java/com/bbva/qtdi/QTDITC9301COTransaction.java new file mode 100644 index 0000000..9e69f72 --- /dev/null +++ b/artifact/transactions/QTDITC9301-CO/src/main/java/com/bbva/qtdi/QTDITC9301COTransaction.java @@ -0,0 +1,21 @@ +/** + * + */ +package com.bbva.qtdi; +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +/** + * PATCH authorization-question-id + * Business Logic implementation. + * @author Novatec Solutions + * + */ +public class QTDITC9301COTransaction extends AbstractQTDITC9301COTransaction { + + @Override + public void execute() { + QTDIRC02 qtdiRC02 = (QTDIRC02)getServiceLibrary(QTDIRC02.class); + // TODO + } + +} diff --git a/artifact/transactions/QTDITC9301-CO/src/main/resources/META-INF/MANIFEST.MF b/artifact/transactions/QTDITC9301-CO/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9301-CO/src/main/resources/QTDITC93-01-CO.xml b/artifact/transactions/QTDITC9301-CO/src/main/resources/QTDITC93-01-CO.xml new file mode 100644 index 0000000..bf7f1a2 --- /dev/null +++ b/artifact/transactions/QTDITC9301-CO/src/main/resources/QTDITC93-01-CO.xml @@ -0,0 +1 @@ +PATCH authorization-question-id \ No newline at end of file diff --git a/artifact/transactions/QTDITC9301-CO/src/main/resources/multilanguage-CO.properties b/artifact/transactions/QTDITC9301-CO/src/main/resources/multilanguage-CO.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9301-CO/src/test/java/com/bbva/qtdi/QTDITC9301COTransactionTest.java b/artifact/transactions/QTDITC9301-CO/src/test/java/com/bbva/qtdi/QTDITC9301COTransactionTest.java new file mode 100644 index 0000000..8aed649 --- /dev/null +++ b/artifact/transactions/QTDITC9301-CO/src/test/java/com/bbva/qtdi/QTDITC9301COTransactionTest.java @@ -0,0 +1,100 @@ +package com.bbva.qtdi; + + +import java.util.ArrayList; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mockito; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import com.bbva.elara.domain.transaction.Context; +import com.bbva.elara.domain.transaction.ParameterTable; +import com.bbva.elara.domain.transaction.TransactionParameter; +import com.bbva.elara.domain.transaction.request.TransactionRequest; +import com.bbva.elara.domain.transaction.request.body.CommonRequestBody; +import com.bbva.elara.test.osgi.DummyBundleContext; + + +/** + * Test for transaction QTDITC9301COTransaction + */ +@RunWith(SpringJUnit4ClassRunner.class) +@ContextConfiguration(locations = { + "classpath:/META-INF/spring/elara-test.xml", + "classpath:/META-INF/spring/QTDITC9301COTest.xml" }) +public class QTDITC9301COTransactionTest { + private static final Logger LOGGER = LoggerFactory.getLogger(QTDITC9301COTransactionTest.class); + + @Autowired + private QTDITC9301COTransaction transaction; + + @Resource(name="dummyBundleContext") + private DummyBundleContext bundleContext; + + private TransactionRequest transactionRequest; + + + @Before + public void initializeClass() throws Exception { + this.transaction.start(bundleContext); + + // Initializing transaction to test + this.transaction.setContext(new Context()); + this.transaction.getContext().setLanguageCode("ES"); + + transactionRequest = Mockito.mock(TransactionRequest.class); + CommonRequestBody commonRequestBody = new CommonRequestBody(); + commonRequestBody.setTransactionParameters(new ArrayList()); + transactionRequest.setBody(commonRequestBody); + Mockito.when(transactionRequest.getRestfulMethod()).thenReturn(null); + this.transaction.getContext().setTransactionRequest(transactionRequest); + + } + + @Test + public void testNotNull(){ + Assert.assertNotNull(this.transaction); + //The method getRestfulMethod() will return null by default. To test other methods add a line like this + //Mockito.when(transactionRequest.getRestfulMethod()).thenReturn("getBancos"); + this.transaction.execute(); + } + + + private void addTable(final String key, final List> table) { + ParameterTable parameterTable = new ParameterTable(); + parameterTable.setParameterTableList(table); + this.addParameter(key, parameterTable); + } + + private void addParameter(final String parameter, final Object value) { + final TransactionParameter tParameter = new TransactionParameter( + parameter, value); + transaction.getContext().getParameterList().put(parameter, tParameter); + } + + private Object getParameter(final String parameter) { + final TransactionParameter param = transaction.getContext() + .getParameterList().get(parameter); + return param.getValue(); + } + + private Object getTableParameter(final int rowNumber, final String table, final String key) + { + ParameterTable param = (ParameterTable)getParameter(table); + Map row = param.get(rowNumber); + return row.get(key); + } +} diff --git a/artifact/transactions/QTDITC9301-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java b/artifact/transactions/QTDITC9301-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java new file mode 100644 index 0000000..c9d694e --- /dev/null +++ b/artifact/transactions/QTDITC9301-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +public class QTDIRC02Mock implements QTDIRC02 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDITC9301-CO/src/test/resources/META-INF/spring/QTDITC9301COTest.xml b/artifact/transactions/QTDITC9301-CO/src/test/resources/META-INF/spring/QTDITC9301COTest.xml new file mode 100644 index 0000000..19b6178 --- /dev/null +++ b/artifact/transactions/QTDITC9301-CO/src/test/resources/META-INF/spring/QTDITC9301COTest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + classpath:/common-env.properties + classpath:/QTDI.properties + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9301-CO/src/test/resources/QTDI.properties b/artifact/transactions/QTDITC9301-CO/src/test/resources/QTDI.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9301-CO/src/test/resources/common-env.properties b/artifact/transactions/QTDITC9301-CO/src/test/resources/common-env.properties new file mode 100644 index 0000000..c44cc81 --- /dev/null +++ b/artifact/transactions/QTDITC9301-CO/src/test/resources/common-env.properties @@ -0,0 +1,545 @@ +######################### +# MQ manager definition # +######################### + +# MQ host name +mq.host.name=ADMBM101 +# MQ host port +mq.host.port=1414 +# MQ host channel +nq.host.channel=CLNT.QWPO.ES +# MQ host manager +mq.host.manager=QMDESM01 +# MQ default program +mq.default.program=QC1CDPL + +####################### +# External MQ queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.mq=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.mq=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.mq=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.mq=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.xml.xaq.mq=PRE.QWPO.XAQ_XML.QWR001 + +############################### +# Session queue configuration # +############################### + +# Name of the MQ queue where is sent the change of session message +session.queue.name=PRE.IMS.QWPO.QWR001 + +###################### +# JMS message broker # +###################### + +# IP address of JMS broker for external queues +ip.external.broker=${mq.host.name}:${mq.host.port}::${mq.host.manager}:${mq.host.channel} + +####################### +# External JMS queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.jms=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.jms=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.jms=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.jms=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for XML-formatted messages over XAQ logical protocol +queue.xml.xaq.jms=PRE.QWPO.XAQ_XML.QWR001 +# Queue for XML-formatted messages over Generic logical protocol +queue.xml.generic.jms=PRE.QWPO.GENERIC_XML.QWR001 +# Queue used to send events +event.queue=DYD.QTGE.RECEP.SUCESOS.QWR001 +# Queue used to send emails and sms by ESB +esb.queue=DYD.ANYNORESP.ESB.QWR001 + +################################# +# SOAP-JMS queues configuration # +################################# + +tibco.ems.queue.name.esb.elara.generic=queue.sample.generic +tibco.ems.queue.name.esb.elara.otma=queue.sample.otma +tibco.ems.queue.name.esb.elara.otma.pg=queue.sample.otmapg +tibco.ems.queue.name.esb.elara.ps9=queue.sample.ps9 +tibco.ems.queue.name.esb.elara.xaq=queue.sample.xaq + +########################### +# Tibco EMS configuration # +########################### + +tibco.ems.url= +tibco.ems.user= +tibco.ems.passw= + +# Bundlor URL +arq.bundlor.url=http://localhost:8101/qwjr_mult_mult_01/ +# Activate or deactivate session change through JMS queue +jms.listener.activated=true +# NTP +ntp.host=15.150.139.187 +ntp.port=123 +ntp.timeOut=10 +ntp.waitTime=60 +ntp.threshold=5 +# Scheduler configuration +scheduler.bundleCleanerTrigger.cronExpression=0 0/5 * * * ? +scheduler.nodeArchitectureControllerTrigger.cronExpression=15 0/1 * * * ? +scheduler.ntpServiceTrigger.cronExpression=0 1 08,20 * * ? +scheduler.sessionLocalModeTrigger.cronExpression=0 0/5 * * * ? +# JMS +jms.poolexecutor.corepoolsize=10 +jms.poolexecutor.maxpoolsize=10 +jms.poolexecutor.keepaliveseconds=1 +jms.listener.concurrency=2-10 +jms.listener.idletaskexecutionlimit=1 +jms.listener.idleconsumerlimit=1 +# Disruptor +disruptor.in.consumers=5 +disruptor.out.consumers=5 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 + +# Pass for the console +felix.webconsole.password=AdminCore +# Value to indicate the ROP writing mode. (ROP_WRITES_DEPENDING_ON_APP, ROP_NEVER_WRITES, ROP_ALWAYS_WRITES) +rop.writingMode=ROP_ALWAYS_WRITES + +# Message used in logging component as default +default.log.message=Could not load error catalog message +# Default description for unexpected exceptions +default.error.description=No se puede cargar la descripcion del error +# Number of retries to insert in DB a new Record Operation +rop.num.entries=3 +# Number of retries to insert in DB a new Journal Operation +journal.num.entries=3 +# Application code size (For error catalog code) +error.catalog.code.application.code.size=4 +# Error type size (For error catalog code) +error.catalog.code.error.type.size=1 +# Error code size (For error catalog code) +error.catalog.code.error.code.size=8 +# OTMA Error code size (For error catalog code) +error.catalog.code.error.code.start.otma=5 +# Size of the catalog of errors +error.catalog.code.size=13 +# Size of the PG catalog of errors +error.catalog.code.pg.size=12 +# Default error description size +error.description.size=80 +# Path for the xml Record Operation files (Files with ROP that could be saved) +rop.path=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +journal.path=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +journal.persistence.type=ELARA +# Default channel for channel handler component +channel.handler.channel=0 +# Default service for channel handler component +channel.handler.service=0 +# Default environ for channel handler component +channel.handler.environ=0 +# Mail version service for ESB +esb.mail.service.version=1 +# SMS version service for ESB +esb.sms.service.version=1 +# Default priority for SMSs +default.sms.priority=0 +# Default priority for Emails +default.email.priority=0 +# Path for attachments files (For emails) +attachments.path=/attachments +# [Hit counter] Maximum counter store size +max.counter.size=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +counter.elements.after.remove=10 +# Timeout for WS connections +ws.connect.timeout=3000 +# Timeout for WS requests +ws.request.timeout=3000 +# Timeout for transaction executions (milliseconds) +transaction.timeout=5000 +# Default message for multilanguage responses +multilanguage.default.message=Could not load multilanguage response +# Multilanguage file name +multilanguage.file.name=multilanguage- +#Timeout in query. +query.timeout=4 +#MaxRows in a query. +query.maxrows=5000 +# Banking session flag +banking.session.flag=SCHEDULER +# PS9 properties +ps9.uppercase=TRUE +ps9.uppercase.use.header=TRUE +# WS control library properties +control.ws.default.user=e000000 +control.ws.default.pid=999 +# Bundlor properties +arq.bundlor.context.node.ping=/node/ping.do +arq.bundlor.context.node.properties=/node/properties.do +arq.bundlor.context.node.properties.uuaa=/node/propertiesUUAA.do +arq.bundlor.context.node.ping.boot=/node/pingBoot.do +# Transactions repository address +repository.transaction.jar=${arq.bundlor.url}/transaction/download.do?txName= +repository.library.jar=${arq.bundlor.url}/library/download.do?libName= +# Logs Repository address +repository.log.file=${arq.bundlor.url}/uuaa/log/download.do?uuaaName= +# Database properties +database.name=ORACLE +database.showSql=true +jdbc.default.schema=QWPO +# Crypto algorithm +crypto.algorithm=PBEWithMD5AndDES +# Crypto iteration count +crypto.iteration.count=19 +# Passphase for Crypto service +passphase=Accenture1 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 +# LUA script cofiguration +lua.forbidden.funcs=coroutine; module; package : loadlib, seeall; io; os : execute, exit, getenv, remove, rename, setlocale, tmpname; debug +# Symbolic name of topology +org.apache.cxf.dosgi.topology.symbolic.name=cxf-dosgi-ri-topology-manager +# Symbolic name of DOSGi +org.apache.cxf.dosgi.admin.symbolic.name=cxf-dosgi-ri-dsw-cxf +# Property name of filter service +org.apache.cxf.dosgi.ws.property.name=org.apache.cxf.ws.databinding +# Property name of filter service for rest +org.apache.cxf.dosgi.rest.property.name=org.apache.cxf.rs.httpservice.context +# Security service configuration +secured.bundle.categories=library;transaction +transaction.service.filter=com.bbva.elara.utility;com.bbva.elara.transaction;com.bbva.elara.support.provisioning.store.TransactionStoreDelegate;com.bbva.elara.configuration.manager.ConfigurationManager +library.service.filter=com.bbva.elara.utility;com.bbva.elara.control.WSControl + +# Default Locale = es_ES +systemlocale=es_ES +# Country Code for "es_ES" locale = ES +country.es_ES=ES +# language Code for "es_ES" locale = es +language.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +dateformat.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +timezone.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +currency.es_ES=EURO +# Deployed locale = es_ES +localedeploy=es_ES + +# Position of group code last character +group.code.last=3 +# Position of parameter code last character +parameter.code.last=6 +# Binary code representation +binary.code=Binary +# Integer code reprensentation +integer.code=Integer +# Long code representation +long.code=Long +# Double code representation +double.code=Double +# String code representation +string.code=String +# Map format header tag +header.tag=header +# Map format body tag +body.tag=body +# Map format advice tag +advice.tag=advice +# Tag representing Header class +general.header.tag=header +# Tag representing IdLogicTransaction class +id.logic.transaction.tag=idLogicTransaction +# Tag representing TransactionOrigin class +transaction.origin.tag=transactionOrigin +# Parameter separator +parameter.separator=\u003B +# Complex parameter separator +complex.parameter.separator=\u002C +# End request separator +end.request.separator=\\] +# Begin request separator +begin.request.separator=\\[ +# End request separator (Map only) +map.end.request.separator=\u005D +# Begin request separator (Map only) +map.begin.request.separator=\u005B +# Begin complex parameter values +begin.complex.parameter=\u0028 +# End complex parameter values +end.complex.parameter=\u0029 +# Separator between parameter name and value +name.value.separator=\u003D +# Separator between message header and body +head.body.separator= \u0026 +# Header for advice number +header.advice.number=001000 +# Header for advice code +header.advice.code=002001 +# Header for advice description +header.advice.description=002002 +# Advice code header +advice.code.header=code +# Advice description header +advice.description.header=description +# File code representation +file.code=InputStream + +############################################## +# Paths to XML marshallers and unmarshallers # +############################################## + +# Path for standard request +path.standard.request=/META-INF/parser/standardHeaderRequest +# Path for pg request +path.pg.request=/META-INF/parser/headerRequest +# Path for standard response +path.standard.response=/META-INF/parser/standardHeaderResponse +# Path for map request +path.map.request=/META-INF/parser/mapHeaderRequest +# Path for map response +path.map.response=/META-INF/parser/mapHeaderResponse + + + +################################################# +# Old configuration # +################################################# + +url.bundle.action=/connectorTx + +# Message used in logging component as default +DEFAULTLOGMESSAGE=Could not load error catalog message +# IP of the NTP server +NTP_VIRTUAL_HOST=15.150.139.187 +# Port used to get NTP messages +NTP_SERVER_PORT=123 +# Number of seconds that the ntp component waits at NTP server +NTP_TIME_OUT=10 +# Number of seconds that the ntp server waits between +NTP_WAIT_TIME=60 +# Number of seconds of difference between Elara and NTP server which are considered normal +NTP_THRESHOLD=5 +# Number of retries to insert in DB a new Record Operation +ROP_NUM_RETRIES=3 +# Number of retries to insert in DB a new Journal Operation +JOURNAL_NUM_RETRIES=3 +# Application code size (For error catalog code) +ERRORCATALOGCODE_APPLICATIONCODESIZE=4 +# Error type size (For error catalog code) +ERRORCATALOGCODE_ERRORTYPESIZE=1 +# Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODESIZE=8 +# OTMA Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODE_START_OTMA=5 +# Size of the catalog of errors +ERRORCATALOGCODESIZE=13 +# Path for the xml Record Operation files (Files with ROP that could be saved) +ROP_PATH=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +JOURNAL_PATH=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +JOURNAL_PERSISTENCE_TYPE=ELARA +# Channel of the events +EVENT_CHANNEL=0 +# Number used to correlate events +EVENT_CORREL_ID= +# Identifies which environ has been used by an event +EVENT_ENVIRON=13 +# Event mode +EVENT_MODE=O +# Service event code +EVENT_SERVICE=5 +# Source of the event code +EVENT_ORIGIN=0 +# Default event type +EVENT_TYPE_DEFAULT_POSTACTIONS=0 +# Default event type for pre-actions +EVENT_TYPE_DEFAULT_PREACTIONS=1 +# Default event version +EVENT_VERSION_DEFAULT=00 +# Default event client +EVENT_CLIENT_DEFAULT=0 +# Default event client type +EVENT_CLIENT_TYPE_DEFAULT=0 +# Default event No Client +EVENT_NO_CLIENT_DEFAULT=0 +# Default channel for channel handler component +CHANNEL_HANDLER_CHANNEL=0 +# Default service for channel handler component +CHANNEL_HANDLER_SERVICE=0 +# Default environ for channel handler component +CHANNEL_HANDLER_ENVIRON=0 +# Mail version service for ESB +ESB_MAIL_SERVICE_VERSION=1 +# SMS version service for ESB +ESB_SMS_SERVICE_VERSION=1 +# Default priority for SMSs +DEFAULT_SMS_PRIORITY=0 +# Default priority for Emails +DEFAULT_EMAIL_PRIORITY=0 +# Path for attachments files (For emails) +ATTACHMENTS_PATH=/attachments +# [Hit counter] Maximum counter store size +MAX_COUNTER_SIZE=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +COUNTER_ELEMENTS_AFTER_REMOVE=10 + +# Timeout for WS connections +WS_CONNECT_TIMEOUT=3000 +# Timeout for WS requests +WS_REQUEST_TIMEOUT=3000 +# Timeout for transaction executions (milliseconds) +TRANSACTION_TIMEOUT =5000 +# Path where there are SMS xsds +ESB_SMS_PATH =/xsd/SMS_ +# Path where there are Email xsds +ESB_MAIL_PATH =/xsd/Mail_ +# Path where there are ESB's ds xsd +ESB_DS_PATH =/xsd/ds.xsd +# Path where there are ESB's dc xsd +ESB_DC_PATH =/xsd/dc.xsd +# Path where there is the events xsd +EVENTS_XSD_PATH =/xsd/HeaderAndContextEvent.xsd +# Default message for multilanguage responses +MULTILANGUAGE_DEFAULT_MESSAGE=Could not load multilanguage response +# Multilanguage file name +MULTILANGUAGE_FILE_NAME=multilanguage- +# Deletion criteria TQWPOLOG +PERIODIC_REMOVE_TQWPOLOG=10 +# Deletion criteria TQWPOEXR +PERIODIC_REMOVE_TQWPOEXR=1 +#Monitoring Functional Event +FLAG_JMX_EVENT_FUNCTIONAL=true +#Timeout in query. +QUERY_TIMEOUT=4 +#MaxRows in a query. +QUERY_MAXROWS=5000 +# Banking session flag +BANKING_SESSION_FLAG = SCHEDULER +PS9_UPPERCASE=TRUE +PS9_UPPERCASE_USE_HEADER=TRUE +####################################################################################################################### +################################# Database properties ################################ +DATABASE_AUTOCOMIT=false +DATABASE_READONLY=false +DATABASE_TRANSACTION_ISOLATION=-1 +DATABASE_INITIAL_SIZE=0 +DATABASE_NUM_MAX_ACTIVE=200 +DATABASE_MAX_IDLE=0 +DATABASE_MAX_OPEN_PREPARED_STATEMENT=-1 +DATABASE_MAX_WAIT=-1 +DATABASE_MIN_EVICTABLE_IDLE_TIME_MILLIS=1800000 +DATABASE_MIN_IDLE=0 +DATABASE_POOL_PREPARED_STATEMENT=false +DATABASE_TEST_ON_BORROW=true +DATABASE_TEST_ON_RETURN=false +DATABASE_TEST_WHILE_IDLE=false +DATABASE_TIME_BETWEEN_EVICTION_RUNS_MILLIS=-1 +DATABASE_VALIDATION_QUERY=select 1 from dual +DATABASE_NUM_TEST_PER_EVICTION_RUN=3 +DATABASE_ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED=false + +# Position of group code last character +GROUP_CODE_LAST=3 +# Position of parameter code last character +PARAMETER_CODE_LAST=6 +# Binary code representation +BINARY_CODE=Binary +# Integer code reprensentation +INTEGER_CODE=Integer +# Long code representation +LONG_CODE=Long +# Double code representation +DOUBLE_CODE=Double +# String code representation +STRING_CODE=String +# Map format header tag +HEADER_TAG=header +# Map format body tag +BODY_TAG=body +# Map format advice tag +ADVICE_TAG=advice +# Tag representing Header class +GENERAL_HEADER_TAG=header +# Tag representing IdLogicTransaction class +ID_LOGIC_TRANSACTION_TAG=idLogicTransaction +# Tag representing TransactionOrigin class +TRANSACTION_ORIGIN_TAG=transactionOrigin +# Parameter separator +PARAMETER_SEPARATOR = ; +# Complex parameter separator +COMPLEX_PARAMETER_SEPARATOR = , +# End request separator +END_REQUEST_SEPARATOR = \] +# Begin request separator +BEGIN_REQUEST_SEPARATOR = \[ +# End request separator (Map only) +MAP_END_REQUEST_SEPARATOR = ] +# Begin request separator (Map only) +MAP_BEGIN_REQUEST_SEPARATOR = [ +# Begin complex parameter values +BEGIN_COMPLEX_PARAMETER= ( +# End complex parameter values +END_COMPLEX_PARAMETER= ) +# Separator between parameter name and value +NAME_VALUE_SEPARATOR = = +# Separator between message header and body +HEAD_BODY_SEPARATOR = & +# Header for advice number +HEADER_ADVICE_NUMBER=001000 +# Header for advice code +HEADER_ADVICE_CODE=002001 +# Header for advice description +HEADER_ADVICE_DESCRIPTION=002002 +# Advice code header +ADVICE_CODE_HEADER=code +# Advice description header +ADVICE_DESCRIPTION_HEADER=description + +# Default Locale = es_ES +SYSTEMLOCALE=es_ES +# Country Code for "es_ES" locale = ES +COUNTRY.es_ES=ES +# language Code for "es_ES" locale = es +LANGUAGE.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +DATEFORMAT.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +TIMEZONE.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +CURRENCY.es_ES=EURO +# Country Code for "pl_PL" locale = PL +COUNTRY.pl_PL=PL +# language Code for "pl_PL" locale = pl +LANGUAGE.pl_PL=pl +# Date Format for "pl_PL" locale = MM/dd/yyyy +DATEFORMAT.pl_PL=MM/dd/yyyy +# Time Zone for "pl_PL" locale = Europe/Warsaw +TIMEZONE.pl_PL=Europe/Warsaw +# Currency for "pl_PL" locale = DOLLAR +CURRENCY.pl_PL=DOLLAR +# Deployed locale = es_ES +LOCALEDEPLOY=es_ES +# arq type (for evo. utilidades compartidas) +arq.type=ONLINE \ No newline at end of file diff --git a/artifact/transactions/QTDITC9301-CO/src/test/resources/log4j.xml b/artifact/transactions/QTDITC9301-CO/src/test/resources/log4j.xml new file mode 100644 index 0000000..215502b --- /dev/null +++ b/artifact/transactions/QTDITC9301-CO/src/test/resources/log4j.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9401-CO/.classpath b/artifact/transactions/QTDITC9401-CO/.classpath new file mode 100644 index 0000000..fae1a2b --- /dev/null +++ b/artifact/transactions/QTDITC9401-CO/.classpath @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9401-CO/.project b/artifact/transactions/QTDITC9401-CO/.project new file mode 100644 index 0000000..06165e8 --- /dev/null +++ b/artifact/transactions/QTDITC9401-CO/.project @@ -0,0 +1,29 @@ + + + QTDITC9401-CO + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + org.springframework.ide.eclipse.core.springbuilder + + + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/artifact/transactions/QTDITC9401-CO/.settings/org.eclipse.core.resources.prefs b/artifact/transactions/QTDITC9401-CO/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..29abf99 --- /dev/null +++ b/artifact/transactions/QTDITC9401-CO/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding//src/test/java=UTF-8 +encoding//src/test/resources=UTF-8 +encoding/=UTF-8 diff --git a/artifact/transactions/QTDITC9401-CO/.settings/org.eclipse.jdt.core.prefs b/artifact/transactions/QTDITC9401-CO/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..714351a --- /dev/null +++ b/artifact/transactions/QTDITC9401-CO/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/artifact/transactions/QTDITC9401-CO/pom.xml b/artifact/transactions/QTDITC9401-CO/pom.xml new file mode 100644 index 0000000..04d08c8 --- /dev/null +++ b/artifact/transactions/QTDITC9401-CO/pom.xml @@ -0,0 +1,224 @@ + + 4.0.0 + + com.bbva.qtdi + TRANSACTIONS + 0.0.1 + + com.bbva.qtdi + QTDITC94 + 01-CO + GET contract-types + + 0.0 + + + + com.bbva.elara + elara-transaction + ${apx.core.online.version} + compile + + + com.bbva.elara + elara-test + ${apx.core.online.version} + test + + + org.eclipse.persistence + org.eclipse.persistence.jpa + test + + + org.springframework + spring-test + test + + + org.springframework + spring-beans + test + + + org.springframework + spring-tx + test + + + org.mockito + mockito-all + test + + + com.google.guava + guava + test + + + com.bbva.qtdi + QTDIRC02 + 0.0.1 + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.felix + maven-bundle-plugin + [2.3.7,) + + manifest + + + + + + + + + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + bundle-manifest + process-classes + + manifest + + + + + + jar + + + ${project.artifactId}-${project.version} + com.bbva.qtdi.QTDITC9401COTransaction + transaction + com.bbva.elara.*;version="${arc.osgi.version}", + *;version="${arc.osgi.version}" + + + + + maven-jar-plugin + 2.3.1 + + ${project.artifactId}-${project.version} + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + maven-resources-plugin + + + copy-resources + install + + copy-resources + + + ${project.build.directory}/config + + + src/main/resources + + **/database-${project.artifactId}-${project.version}.properties + **/database-passw-${project.artifactId}-${project.version}.properties + **/${project.artifactId}-${project.version}.properties + + + + + + + + + maven-antrun-plugin + + + install + + run + + + + + + + + + + + org.jacoco + jacoco-maven-plugin + 0.7.7.201606060606 + + + default-prepare-agent + + prepare-agent + + + + default-prepare-agent-integration + + prepare-agent-integration + + + + default-report + + report + + + + default-report-integration + + report-integration + + + + default-check + + check + + + + + BUNDLE + + + ${jacoco.type.coverage} + COVEREDRATIO + ${jacoco.no.coverage} + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9401-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9401COTransaction.java b/artifact/transactions/QTDITC9401-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9401COTransaction.java new file mode 100644 index 0000000..a3cf06b --- /dev/null +++ b/artifact/transactions/QTDITC9401-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9401COTransaction.java @@ -0,0 +1,16 @@ +package com.bbva.qtdi; + + +import com.bbva.elara.transaction.AbstractTransaction; + +public abstract class AbstractQTDITC9401COTransaction extends AbstractTransaction { + + public AbstractQTDITC9401COTransaction(){ + } + + + + + + +} diff --git a/artifact/transactions/QTDITC9401-CO/src/main/java/com/bbva/qtdi/QTDITC9401COTransaction.java b/artifact/transactions/QTDITC9401-CO/src/main/java/com/bbva/qtdi/QTDITC9401COTransaction.java new file mode 100644 index 0000000..5156b79 --- /dev/null +++ b/artifact/transactions/QTDITC9401-CO/src/main/java/com/bbva/qtdi/QTDITC9401COTransaction.java @@ -0,0 +1,21 @@ +/** + * + */ +package com.bbva.qtdi; +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +/** + * GET contract-types + * Business Logic implementation. + * @author Novatec Solutions + * + */ +public class QTDITC9401COTransaction extends AbstractQTDITC9401COTransaction { + + @Override + public void execute() { + QTDIRC02 qtdiRC02 = (QTDIRC02)getServiceLibrary(QTDIRC02.class); + // TODO + } + +} diff --git a/artifact/transactions/QTDITC9401-CO/src/main/resources/META-INF/MANIFEST.MF b/artifact/transactions/QTDITC9401-CO/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9401-CO/src/main/resources/QTDITC94-01-CO.xml b/artifact/transactions/QTDITC9401-CO/src/main/resources/QTDITC94-01-CO.xml new file mode 100644 index 0000000..030ad25 --- /dev/null +++ b/artifact/transactions/QTDITC9401-CO/src/main/resources/QTDITC94-01-CO.xml @@ -0,0 +1 @@ +GET contract-types \ No newline at end of file diff --git a/artifact/transactions/QTDITC9401-CO/src/main/resources/multilanguage-CO.properties b/artifact/transactions/QTDITC9401-CO/src/main/resources/multilanguage-CO.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9401-CO/src/test/java/com/bbva/qtdi/QTDITC9401COTransactionTest.java b/artifact/transactions/QTDITC9401-CO/src/test/java/com/bbva/qtdi/QTDITC9401COTransactionTest.java new file mode 100644 index 0000000..10ee3e1 --- /dev/null +++ b/artifact/transactions/QTDITC9401-CO/src/test/java/com/bbva/qtdi/QTDITC9401COTransactionTest.java @@ -0,0 +1,100 @@ +package com.bbva.qtdi; + + +import java.util.ArrayList; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mockito; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import com.bbva.elara.domain.transaction.Context; +import com.bbva.elara.domain.transaction.ParameterTable; +import com.bbva.elara.domain.transaction.TransactionParameter; +import com.bbva.elara.domain.transaction.request.TransactionRequest; +import com.bbva.elara.domain.transaction.request.body.CommonRequestBody; +import com.bbva.elara.test.osgi.DummyBundleContext; + + +/** + * Test for transaction QTDITC9401COTransaction + */ +@RunWith(SpringJUnit4ClassRunner.class) +@ContextConfiguration(locations = { + "classpath:/META-INF/spring/elara-test.xml", + "classpath:/META-INF/spring/QTDITC9401COTest.xml" }) +public class QTDITC9401COTransactionTest { + private static final Logger LOGGER = LoggerFactory.getLogger(QTDITC9401COTransactionTest.class); + + @Autowired + private QTDITC9401COTransaction transaction; + + @Resource(name="dummyBundleContext") + private DummyBundleContext bundleContext; + + private TransactionRequest transactionRequest; + + + @Before + public void initializeClass() throws Exception { + this.transaction.start(bundleContext); + + // Initializing transaction to test + this.transaction.setContext(new Context()); + this.transaction.getContext().setLanguageCode("ES"); + + transactionRequest = Mockito.mock(TransactionRequest.class); + CommonRequestBody commonRequestBody = new CommonRequestBody(); + commonRequestBody.setTransactionParameters(new ArrayList()); + transactionRequest.setBody(commonRequestBody); + Mockito.when(transactionRequest.getRestfulMethod()).thenReturn(null); + this.transaction.getContext().setTransactionRequest(transactionRequest); + + } + + @Test + public void testNotNull(){ + Assert.assertNotNull(this.transaction); + //The method getRestfulMethod() will return null by default. To test other methods add a line like this + //Mockito.when(transactionRequest.getRestfulMethod()).thenReturn("getBancos"); + this.transaction.execute(); + } + + + private void addTable(final String key, final List> table) { + ParameterTable parameterTable = new ParameterTable(); + parameterTable.setParameterTableList(table); + this.addParameter(key, parameterTable); + } + + private void addParameter(final String parameter, final Object value) { + final TransactionParameter tParameter = new TransactionParameter( + parameter, value); + transaction.getContext().getParameterList().put(parameter, tParameter); + } + + private Object getParameter(final String parameter) { + final TransactionParameter param = transaction.getContext() + .getParameterList().get(parameter); + return param.getValue(); + } + + private Object getTableParameter(final int rowNumber, final String table, final String key) + { + ParameterTable param = (ParameterTable)getParameter(table); + Map row = param.get(rowNumber); + return row.get(key); + } +} diff --git a/artifact/transactions/QTDITC9401-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java b/artifact/transactions/QTDITC9401-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java new file mode 100644 index 0000000..c9d694e --- /dev/null +++ b/artifact/transactions/QTDITC9401-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +public class QTDIRC02Mock implements QTDIRC02 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDITC9401-CO/src/test/resources/META-INF/spring/QTDITC9401COTest.xml b/artifact/transactions/QTDITC9401-CO/src/test/resources/META-INF/spring/QTDITC9401COTest.xml new file mode 100644 index 0000000..9d433bf --- /dev/null +++ b/artifact/transactions/QTDITC9401-CO/src/test/resources/META-INF/spring/QTDITC9401COTest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + classpath:/common-env.properties + classpath:/QTDI.properties + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9401-CO/src/test/resources/QTDI.properties b/artifact/transactions/QTDITC9401-CO/src/test/resources/QTDI.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9401-CO/src/test/resources/common-env.properties b/artifact/transactions/QTDITC9401-CO/src/test/resources/common-env.properties new file mode 100644 index 0000000..c44cc81 --- /dev/null +++ b/artifact/transactions/QTDITC9401-CO/src/test/resources/common-env.properties @@ -0,0 +1,545 @@ +######################### +# MQ manager definition # +######################### + +# MQ host name +mq.host.name=ADMBM101 +# MQ host port +mq.host.port=1414 +# MQ host channel +nq.host.channel=CLNT.QWPO.ES +# MQ host manager +mq.host.manager=QMDESM01 +# MQ default program +mq.default.program=QC1CDPL + +####################### +# External MQ queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.mq=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.mq=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.mq=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.mq=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.xml.xaq.mq=PRE.QWPO.XAQ_XML.QWR001 + +############################### +# Session queue configuration # +############################### + +# Name of the MQ queue where is sent the change of session message +session.queue.name=PRE.IMS.QWPO.QWR001 + +###################### +# JMS message broker # +###################### + +# IP address of JMS broker for external queues +ip.external.broker=${mq.host.name}:${mq.host.port}::${mq.host.manager}:${mq.host.channel} + +####################### +# External JMS queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.jms=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.jms=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.jms=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.jms=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for XML-formatted messages over XAQ logical protocol +queue.xml.xaq.jms=PRE.QWPO.XAQ_XML.QWR001 +# Queue for XML-formatted messages over Generic logical protocol +queue.xml.generic.jms=PRE.QWPO.GENERIC_XML.QWR001 +# Queue used to send events +event.queue=DYD.QTGE.RECEP.SUCESOS.QWR001 +# Queue used to send emails and sms by ESB +esb.queue=DYD.ANYNORESP.ESB.QWR001 + +################################# +# SOAP-JMS queues configuration # +################################# + +tibco.ems.queue.name.esb.elara.generic=queue.sample.generic +tibco.ems.queue.name.esb.elara.otma=queue.sample.otma +tibco.ems.queue.name.esb.elara.otma.pg=queue.sample.otmapg +tibco.ems.queue.name.esb.elara.ps9=queue.sample.ps9 +tibco.ems.queue.name.esb.elara.xaq=queue.sample.xaq + +########################### +# Tibco EMS configuration # +########################### + +tibco.ems.url= +tibco.ems.user= +tibco.ems.passw= + +# Bundlor URL +arq.bundlor.url=http://localhost:8101/qwjr_mult_mult_01/ +# Activate or deactivate session change through JMS queue +jms.listener.activated=true +# NTP +ntp.host=15.150.139.187 +ntp.port=123 +ntp.timeOut=10 +ntp.waitTime=60 +ntp.threshold=5 +# Scheduler configuration +scheduler.bundleCleanerTrigger.cronExpression=0 0/5 * * * ? +scheduler.nodeArchitectureControllerTrigger.cronExpression=15 0/1 * * * ? +scheduler.ntpServiceTrigger.cronExpression=0 1 08,20 * * ? +scheduler.sessionLocalModeTrigger.cronExpression=0 0/5 * * * ? +# JMS +jms.poolexecutor.corepoolsize=10 +jms.poolexecutor.maxpoolsize=10 +jms.poolexecutor.keepaliveseconds=1 +jms.listener.concurrency=2-10 +jms.listener.idletaskexecutionlimit=1 +jms.listener.idleconsumerlimit=1 +# Disruptor +disruptor.in.consumers=5 +disruptor.out.consumers=5 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 + +# Pass for the console +felix.webconsole.password=AdminCore +# Value to indicate the ROP writing mode. (ROP_WRITES_DEPENDING_ON_APP, ROP_NEVER_WRITES, ROP_ALWAYS_WRITES) +rop.writingMode=ROP_ALWAYS_WRITES + +# Message used in logging component as default +default.log.message=Could not load error catalog message +# Default description for unexpected exceptions +default.error.description=No se puede cargar la descripcion del error +# Number of retries to insert in DB a new Record Operation +rop.num.entries=3 +# Number of retries to insert in DB a new Journal Operation +journal.num.entries=3 +# Application code size (For error catalog code) +error.catalog.code.application.code.size=4 +# Error type size (For error catalog code) +error.catalog.code.error.type.size=1 +# Error code size (For error catalog code) +error.catalog.code.error.code.size=8 +# OTMA Error code size (For error catalog code) +error.catalog.code.error.code.start.otma=5 +# Size of the catalog of errors +error.catalog.code.size=13 +# Size of the PG catalog of errors +error.catalog.code.pg.size=12 +# Default error description size +error.description.size=80 +# Path for the xml Record Operation files (Files with ROP that could be saved) +rop.path=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +journal.path=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +journal.persistence.type=ELARA +# Default channel for channel handler component +channel.handler.channel=0 +# Default service for channel handler component +channel.handler.service=0 +# Default environ for channel handler component +channel.handler.environ=0 +# Mail version service for ESB +esb.mail.service.version=1 +# SMS version service for ESB +esb.sms.service.version=1 +# Default priority for SMSs +default.sms.priority=0 +# Default priority for Emails +default.email.priority=0 +# Path for attachments files (For emails) +attachments.path=/attachments +# [Hit counter] Maximum counter store size +max.counter.size=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +counter.elements.after.remove=10 +# Timeout for WS connections +ws.connect.timeout=3000 +# Timeout for WS requests +ws.request.timeout=3000 +# Timeout for transaction executions (milliseconds) +transaction.timeout=5000 +# Default message for multilanguage responses +multilanguage.default.message=Could not load multilanguage response +# Multilanguage file name +multilanguage.file.name=multilanguage- +#Timeout in query. +query.timeout=4 +#MaxRows in a query. +query.maxrows=5000 +# Banking session flag +banking.session.flag=SCHEDULER +# PS9 properties +ps9.uppercase=TRUE +ps9.uppercase.use.header=TRUE +# WS control library properties +control.ws.default.user=e000000 +control.ws.default.pid=999 +# Bundlor properties +arq.bundlor.context.node.ping=/node/ping.do +arq.bundlor.context.node.properties=/node/properties.do +arq.bundlor.context.node.properties.uuaa=/node/propertiesUUAA.do +arq.bundlor.context.node.ping.boot=/node/pingBoot.do +# Transactions repository address +repository.transaction.jar=${arq.bundlor.url}/transaction/download.do?txName= +repository.library.jar=${arq.bundlor.url}/library/download.do?libName= +# Logs Repository address +repository.log.file=${arq.bundlor.url}/uuaa/log/download.do?uuaaName= +# Database properties +database.name=ORACLE +database.showSql=true +jdbc.default.schema=QWPO +# Crypto algorithm +crypto.algorithm=PBEWithMD5AndDES +# Crypto iteration count +crypto.iteration.count=19 +# Passphase for Crypto service +passphase=Accenture1 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 +# LUA script cofiguration +lua.forbidden.funcs=coroutine; module; package : loadlib, seeall; io; os : execute, exit, getenv, remove, rename, setlocale, tmpname; debug +# Symbolic name of topology +org.apache.cxf.dosgi.topology.symbolic.name=cxf-dosgi-ri-topology-manager +# Symbolic name of DOSGi +org.apache.cxf.dosgi.admin.symbolic.name=cxf-dosgi-ri-dsw-cxf +# Property name of filter service +org.apache.cxf.dosgi.ws.property.name=org.apache.cxf.ws.databinding +# Property name of filter service for rest +org.apache.cxf.dosgi.rest.property.name=org.apache.cxf.rs.httpservice.context +# Security service configuration +secured.bundle.categories=library;transaction +transaction.service.filter=com.bbva.elara.utility;com.bbva.elara.transaction;com.bbva.elara.support.provisioning.store.TransactionStoreDelegate;com.bbva.elara.configuration.manager.ConfigurationManager +library.service.filter=com.bbva.elara.utility;com.bbva.elara.control.WSControl + +# Default Locale = es_ES +systemlocale=es_ES +# Country Code for "es_ES" locale = ES +country.es_ES=ES +# language Code for "es_ES" locale = es +language.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +dateformat.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +timezone.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +currency.es_ES=EURO +# Deployed locale = es_ES +localedeploy=es_ES + +# Position of group code last character +group.code.last=3 +# Position of parameter code last character +parameter.code.last=6 +# Binary code representation +binary.code=Binary +# Integer code reprensentation +integer.code=Integer +# Long code representation +long.code=Long +# Double code representation +double.code=Double +# String code representation +string.code=String +# Map format header tag +header.tag=header +# Map format body tag +body.tag=body +# Map format advice tag +advice.tag=advice +# Tag representing Header class +general.header.tag=header +# Tag representing IdLogicTransaction class +id.logic.transaction.tag=idLogicTransaction +# Tag representing TransactionOrigin class +transaction.origin.tag=transactionOrigin +# Parameter separator +parameter.separator=\u003B +# Complex parameter separator +complex.parameter.separator=\u002C +# End request separator +end.request.separator=\\] +# Begin request separator +begin.request.separator=\\[ +# End request separator (Map only) +map.end.request.separator=\u005D +# Begin request separator (Map only) +map.begin.request.separator=\u005B +# Begin complex parameter values +begin.complex.parameter=\u0028 +# End complex parameter values +end.complex.parameter=\u0029 +# Separator between parameter name and value +name.value.separator=\u003D +# Separator between message header and body +head.body.separator= \u0026 +# Header for advice number +header.advice.number=001000 +# Header for advice code +header.advice.code=002001 +# Header for advice description +header.advice.description=002002 +# Advice code header +advice.code.header=code +# Advice description header +advice.description.header=description +# File code representation +file.code=InputStream + +############################################## +# Paths to XML marshallers and unmarshallers # +############################################## + +# Path for standard request +path.standard.request=/META-INF/parser/standardHeaderRequest +# Path for pg request +path.pg.request=/META-INF/parser/headerRequest +# Path for standard response +path.standard.response=/META-INF/parser/standardHeaderResponse +# Path for map request +path.map.request=/META-INF/parser/mapHeaderRequest +# Path for map response +path.map.response=/META-INF/parser/mapHeaderResponse + + + +################################################# +# Old configuration # +################################################# + +url.bundle.action=/connectorTx + +# Message used in logging component as default +DEFAULTLOGMESSAGE=Could not load error catalog message +# IP of the NTP server +NTP_VIRTUAL_HOST=15.150.139.187 +# Port used to get NTP messages +NTP_SERVER_PORT=123 +# Number of seconds that the ntp component waits at NTP server +NTP_TIME_OUT=10 +# Number of seconds that the ntp server waits between +NTP_WAIT_TIME=60 +# Number of seconds of difference between Elara and NTP server which are considered normal +NTP_THRESHOLD=5 +# Number of retries to insert in DB a new Record Operation +ROP_NUM_RETRIES=3 +# Number of retries to insert in DB a new Journal Operation +JOURNAL_NUM_RETRIES=3 +# Application code size (For error catalog code) +ERRORCATALOGCODE_APPLICATIONCODESIZE=4 +# Error type size (For error catalog code) +ERRORCATALOGCODE_ERRORTYPESIZE=1 +# Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODESIZE=8 +# OTMA Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODE_START_OTMA=5 +# Size of the catalog of errors +ERRORCATALOGCODESIZE=13 +# Path for the xml Record Operation files (Files with ROP that could be saved) +ROP_PATH=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +JOURNAL_PATH=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +JOURNAL_PERSISTENCE_TYPE=ELARA +# Channel of the events +EVENT_CHANNEL=0 +# Number used to correlate events +EVENT_CORREL_ID= +# Identifies which environ has been used by an event +EVENT_ENVIRON=13 +# Event mode +EVENT_MODE=O +# Service event code +EVENT_SERVICE=5 +# Source of the event code +EVENT_ORIGIN=0 +# Default event type +EVENT_TYPE_DEFAULT_POSTACTIONS=0 +# Default event type for pre-actions +EVENT_TYPE_DEFAULT_PREACTIONS=1 +# Default event version +EVENT_VERSION_DEFAULT=00 +# Default event client +EVENT_CLIENT_DEFAULT=0 +# Default event client type +EVENT_CLIENT_TYPE_DEFAULT=0 +# Default event No Client +EVENT_NO_CLIENT_DEFAULT=0 +# Default channel for channel handler component +CHANNEL_HANDLER_CHANNEL=0 +# Default service for channel handler component +CHANNEL_HANDLER_SERVICE=0 +# Default environ for channel handler component +CHANNEL_HANDLER_ENVIRON=0 +# Mail version service for ESB +ESB_MAIL_SERVICE_VERSION=1 +# SMS version service for ESB +ESB_SMS_SERVICE_VERSION=1 +# Default priority for SMSs +DEFAULT_SMS_PRIORITY=0 +# Default priority for Emails +DEFAULT_EMAIL_PRIORITY=0 +# Path for attachments files (For emails) +ATTACHMENTS_PATH=/attachments +# [Hit counter] Maximum counter store size +MAX_COUNTER_SIZE=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +COUNTER_ELEMENTS_AFTER_REMOVE=10 + +# Timeout for WS connections +WS_CONNECT_TIMEOUT=3000 +# Timeout for WS requests +WS_REQUEST_TIMEOUT=3000 +# Timeout for transaction executions (milliseconds) +TRANSACTION_TIMEOUT =5000 +# Path where there are SMS xsds +ESB_SMS_PATH =/xsd/SMS_ +# Path where there are Email xsds +ESB_MAIL_PATH =/xsd/Mail_ +# Path where there are ESB's ds xsd +ESB_DS_PATH =/xsd/ds.xsd +# Path where there are ESB's dc xsd +ESB_DC_PATH =/xsd/dc.xsd +# Path where there is the events xsd +EVENTS_XSD_PATH =/xsd/HeaderAndContextEvent.xsd +# Default message for multilanguage responses +MULTILANGUAGE_DEFAULT_MESSAGE=Could not load multilanguage response +# Multilanguage file name +MULTILANGUAGE_FILE_NAME=multilanguage- +# Deletion criteria TQWPOLOG +PERIODIC_REMOVE_TQWPOLOG=10 +# Deletion criteria TQWPOEXR +PERIODIC_REMOVE_TQWPOEXR=1 +#Monitoring Functional Event +FLAG_JMX_EVENT_FUNCTIONAL=true +#Timeout in query. +QUERY_TIMEOUT=4 +#MaxRows in a query. +QUERY_MAXROWS=5000 +# Banking session flag +BANKING_SESSION_FLAG = SCHEDULER +PS9_UPPERCASE=TRUE +PS9_UPPERCASE_USE_HEADER=TRUE +####################################################################################################################### +################################# Database properties ################################ +DATABASE_AUTOCOMIT=false +DATABASE_READONLY=false +DATABASE_TRANSACTION_ISOLATION=-1 +DATABASE_INITIAL_SIZE=0 +DATABASE_NUM_MAX_ACTIVE=200 +DATABASE_MAX_IDLE=0 +DATABASE_MAX_OPEN_PREPARED_STATEMENT=-1 +DATABASE_MAX_WAIT=-1 +DATABASE_MIN_EVICTABLE_IDLE_TIME_MILLIS=1800000 +DATABASE_MIN_IDLE=0 +DATABASE_POOL_PREPARED_STATEMENT=false +DATABASE_TEST_ON_BORROW=true +DATABASE_TEST_ON_RETURN=false +DATABASE_TEST_WHILE_IDLE=false +DATABASE_TIME_BETWEEN_EVICTION_RUNS_MILLIS=-1 +DATABASE_VALIDATION_QUERY=select 1 from dual +DATABASE_NUM_TEST_PER_EVICTION_RUN=3 +DATABASE_ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED=false + +# Position of group code last character +GROUP_CODE_LAST=3 +# Position of parameter code last character +PARAMETER_CODE_LAST=6 +# Binary code representation +BINARY_CODE=Binary +# Integer code reprensentation +INTEGER_CODE=Integer +# Long code representation +LONG_CODE=Long +# Double code representation +DOUBLE_CODE=Double +# String code representation +STRING_CODE=String +# Map format header tag +HEADER_TAG=header +# Map format body tag +BODY_TAG=body +# Map format advice tag +ADVICE_TAG=advice +# Tag representing Header class +GENERAL_HEADER_TAG=header +# Tag representing IdLogicTransaction class +ID_LOGIC_TRANSACTION_TAG=idLogicTransaction +# Tag representing TransactionOrigin class +TRANSACTION_ORIGIN_TAG=transactionOrigin +# Parameter separator +PARAMETER_SEPARATOR = ; +# Complex parameter separator +COMPLEX_PARAMETER_SEPARATOR = , +# End request separator +END_REQUEST_SEPARATOR = \] +# Begin request separator +BEGIN_REQUEST_SEPARATOR = \[ +# End request separator (Map only) +MAP_END_REQUEST_SEPARATOR = ] +# Begin request separator (Map only) +MAP_BEGIN_REQUEST_SEPARATOR = [ +# Begin complex parameter values +BEGIN_COMPLEX_PARAMETER= ( +# End complex parameter values +END_COMPLEX_PARAMETER= ) +# Separator between parameter name and value +NAME_VALUE_SEPARATOR = = +# Separator between message header and body +HEAD_BODY_SEPARATOR = & +# Header for advice number +HEADER_ADVICE_NUMBER=001000 +# Header for advice code +HEADER_ADVICE_CODE=002001 +# Header for advice description +HEADER_ADVICE_DESCRIPTION=002002 +# Advice code header +ADVICE_CODE_HEADER=code +# Advice description header +ADVICE_DESCRIPTION_HEADER=description + +# Default Locale = es_ES +SYSTEMLOCALE=es_ES +# Country Code for "es_ES" locale = ES +COUNTRY.es_ES=ES +# language Code for "es_ES" locale = es +LANGUAGE.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +DATEFORMAT.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +TIMEZONE.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +CURRENCY.es_ES=EURO +# Country Code for "pl_PL" locale = PL +COUNTRY.pl_PL=PL +# language Code for "pl_PL" locale = pl +LANGUAGE.pl_PL=pl +# Date Format for "pl_PL" locale = MM/dd/yyyy +DATEFORMAT.pl_PL=MM/dd/yyyy +# Time Zone for "pl_PL" locale = Europe/Warsaw +TIMEZONE.pl_PL=Europe/Warsaw +# Currency for "pl_PL" locale = DOLLAR +CURRENCY.pl_PL=DOLLAR +# Deployed locale = es_ES +LOCALEDEPLOY=es_ES +# arq type (for evo. utilidades compartidas) +arq.type=ONLINE \ No newline at end of file diff --git a/artifact/transactions/QTDITC9401-CO/src/test/resources/log4j.xml b/artifact/transactions/QTDITC9401-CO/src/test/resources/log4j.xml new file mode 100644 index 0000000..215502b --- /dev/null +++ b/artifact/transactions/QTDITC9401-CO/src/test/resources/log4j.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9501-CO/.classpath b/artifact/transactions/QTDITC9501-CO/.classpath new file mode 100644 index 0000000..fae1a2b --- /dev/null +++ b/artifact/transactions/QTDITC9501-CO/.classpath @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9501-CO/.project b/artifact/transactions/QTDITC9501-CO/.project new file mode 100644 index 0000000..ea527f6 --- /dev/null +++ b/artifact/transactions/QTDITC9501-CO/.project @@ -0,0 +1,29 @@ + + + QTDITC9501-CO + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + org.springframework.ide.eclipse.core.springbuilder + + + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/artifact/transactions/QTDITC9501-CO/.settings/org.eclipse.core.resources.prefs b/artifact/transactions/QTDITC9501-CO/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..29abf99 --- /dev/null +++ b/artifact/transactions/QTDITC9501-CO/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding//src/test/java=UTF-8 +encoding//src/test/resources=UTF-8 +encoding/=UTF-8 diff --git a/artifact/transactions/QTDITC9501-CO/.settings/org.eclipse.jdt.core.prefs b/artifact/transactions/QTDITC9501-CO/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..714351a --- /dev/null +++ b/artifact/transactions/QTDITC9501-CO/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/artifact/transactions/QTDITC9501-CO/pom.xml b/artifact/transactions/QTDITC9501-CO/pom.xml new file mode 100644 index 0000000..7f4f547 --- /dev/null +++ b/artifact/transactions/QTDITC9501-CO/pom.xml @@ -0,0 +1,224 @@ + + 4.0.0 + + com.bbva.qtdi + TRANSACTIONS + 0.0.1 + + com.bbva.qtdi + QTDITC95 + 01-CO + POST contract-types + + 0.0 + + + + com.bbva.elara + elara-transaction + ${apx.core.online.version} + compile + + + com.bbva.elara + elara-test + ${apx.core.online.version} + test + + + org.eclipse.persistence + org.eclipse.persistence.jpa + test + + + org.springframework + spring-test + test + + + org.springframework + spring-beans + test + + + org.springframework + spring-tx + test + + + org.mockito + mockito-all + test + + + com.google.guava + guava + test + + + com.bbva.qtdi + QTDIRC02 + 0.0.1 + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.felix + maven-bundle-plugin + [2.3.7,) + + manifest + + + + + + + + + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + bundle-manifest + process-classes + + manifest + + + + + + jar + + + ${project.artifactId}-${project.version} + com.bbva.qtdi.QTDITC9501COTransaction + transaction + com.bbva.elara.*;version="${arc.osgi.version}", + *;version="${arc.osgi.version}" + + + + + maven-jar-plugin + 2.3.1 + + ${project.artifactId}-${project.version} + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + maven-resources-plugin + + + copy-resources + install + + copy-resources + + + ${project.build.directory}/config + + + src/main/resources + + **/database-${project.artifactId}-${project.version}.properties + **/database-passw-${project.artifactId}-${project.version}.properties + **/${project.artifactId}-${project.version}.properties + + + + + + + + + maven-antrun-plugin + + + install + + run + + + + + + + + + + + org.jacoco + jacoco-maven-plugin + 0.7.7.201606060606 + + + default-prepare-agent + + prepare-agent + + + + default-prepare-agent-integration + + prepare-agent-integration + + + + default-report + + report + + + + default-report-integration + + report-integration + + + + default-check + + check + + + + + BUNDLE + + + ${jacoco.type.coverage} + COVEREDRATIO + ${jacoco.no.coverage} + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9501-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9501COTransaction.java b/artifact/transactions/QTDITC9501-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9501COTransaction.java new file mode 100644 index 0000000..cdb194d --- /dev/null +++ b/artifact/transactions/QTDITC9501-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9501COTransaction.java @@ -0,0 +1,16 @@ +package com.bbva.qtdi; + + +import com.bbva.elara.transaction.AbstractTransaction; + +public abstract class AbstractQTDITC9501COTransaction extends AbstractTransaction { + + public AbstractQTDITC9501COTransaction(){ + } + + + + + + +} diff --git a/artifact/transactions/QTDITC9501-CO/src/main/java/com/bbva/qtdi/QTDITC9501COTransaction.java b/artifact/transactions/QTDITC9501-CO/src/main/java/com/bbva/qtdi/QTDITC9501COTransaction.java new file mode 100644 index 0000000..25aebef --- /dev/null +++ b/artifact/transactions/QTDITC9501-CO/src/main/java/com/bbva/qtdi/QTDITC9501COTransaction.java @@ -0,0 +1,21 @@ +/** + * + */ +package com.bbva.qtdi; +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +/** + * POST contract-types + * Business Logic implementation. + * @author Novatec Solutions + * + */ +public class QTDITC9501COTransaction extends AbstractQTDITC9501COTransaction { + + @Override + public void execute() { + QTDIRC02 qtdiRC02 = (QTDIRC02)getServiceLibrary(QTDIRC02.class); + // TODO + } + +} diff --git a/artifact/transactions/QTDITC9501-CO/src/main/resources/META-INF/MANIFEST.MF b/artifact/transactions/QTDITC9501-CO/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9501-CO/src/main/resources/QTDITC95-01-CO.xml b/artifact/transactions/QTDITC9501-CO/src/main/resources/QTDITC95-01-CO.xml new file mode 100644 index 0000000..9b80201 --- /dev/null +++ b/artifact/transactions/QTDITC9501-CO/src/main/resources/QTDITC95-01-CO.xml @@ -0,0 +1 @@ +POST contract-types \ No newline at end of file diff --git a/artifact/transactions/QTDITC9501-CO/src/main/resources/multilanguage-CO.properties b/artifact/transactions/QTDITC9501-CO/src/main/resources/multilanguage-CO.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9501-CO/src/test/java/com/bbva/qtdi/QTDITC9501COTransactionTest.java b/artifact/transactions/QTDITC9501-CO/src/test/java/com/bbva/qtdi/QTDITC9501COTransactionTest.java new file mode 100644 index 0000000..8622866 --- /dev/null +++ b/artifact/transactions/QTDITC9501-CO/src/test/java/com/bbva/qtdi/QTDITC9501COTransactionTest.java @@ -0,0 +1,100 @@ +package com.bbva.qtdi; + + +import java.util.ArrayList; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mockito; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import com.bbva.elara.domain.transaction.Context; +import com.bbva.elara.domain.transaction.ParameterTable; +import com.bbva.elara.domain.transaction.TransactionParameter; +import com.bbva.elara.domain.transaction.request.TransactionRequest; +import com.bbva.elara.domain.transaction.request.body.CommonRequestBody; +import com.bbva.elara.test.osgi.DummyBundleContext; + + +/** + * Test for transaction QTDITC9501COTransaction + */ +@RunWith(SpringJUnit4ClassRunner.class) +@ContextConfiguration(locations = { + "classpath:/META-INF/spring/elara-test.xml", + "classpath:/META-INF/spring/QTDITC9501COTest.xml" }) +public class QTDITC9501COTransactionTest { + private static final Logger LOGGER = LoggerFactory.getLogger(QTDITC9501COTransactionTest.class); + + @Autowired + private QTDITC9501COTransaction transaction; + + @Resource(name="dummyBundleContext") + private DummyBundleContext bundleContext; + + private TransactionRequest transactionRequest; + + + @Before + public void initializeClass() throws Exception { + this.transaction.start(bundleContext); + + // Initializing transaction to test + this.transaction.setContext(new Context()); + this.transaction.getContext().setLanguageCode("ES"); + + transactionRequest = Mockito.mock(TransactionRequest.class); + CommonRequestBody commonRequestBody = new CommonRequestBody(); + commonRequestBody.setTransactionParameters(new ArrayList()); + transactionRequest.setBody(commonRequestBody); + Mockito.when(transactionRequest.getRestfulMethod()).thenReturn(null); + this.transaction.getContext().setTransactionRequest(transactionRequest); + + } + + @Test + public void testNotNull(){ + Assert.assertNotNull(this.transaction); + //The method getRestfulMethod() will return null by default. To test other methods add a line like this + //Mockito.when(transactionRequest.getRestfulMethod()).thenReturn("getBancos"); + this.transaction.execute(); + } + + + private void addTable(final String key, final List> table) { + ParameterTable parameterTable = new ParameterTable(); + parameterTable.setParameterTableList(table); + this.addParameter(key, parameterTable); + } + + private void addParameter(final String parameter, final Object value) { + final TransactionParameter tParameter = new TransactionParameter( + parameter, value); + transaction.getContext().getParameterList().put(parameter, tParameter); + } + + private Object getParameter(final String parameter) { + final TransactionParameter param = transaction.getContext() + .getParameterList().get(parameter); + return param.getValue(); + } + + private Object getTableParameter(final int rowNumber, final String table, final String key) + { + ParameterTable param = (ParameterTable)getParameter(table); + Map row = param.get(rowNumber); + return row.get(key); + } +} diff --git a/artifact/transactions/QTDITC9501-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java b/artifact/transactions/QTDITC9501-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java new file mode 100644 index 0000000..c9d694e --- /dev/null +++ b/artifact/transactions/QTDITC9501-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +public class QTDIRC02Mock implements QTDIRC02 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDITC9501-CO/src/test/resources/META-INF/spring/QTDITC9501COTest.xml b/artifact/transactions/QTDITC9501-CO/src/test/resources/META-INF/spring/QTDITC9501COTest.xml new file mode 100644 index 0000000..6207abd --- /dev/null +++ b/artifact/transactions/QTDITC9501-CO/src/test/resources/META-INF/spring/QTDITC9501COTest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + classpath:/common-env.properties + classpath:/QTDI.properties + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9501-CO/src/test/resources/QTDI.properties b/artifact/transactions/QTDITC9501-CO/src/test/resources/QTDI.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9501-CO/src/test/resources/common-env.properties b/artifact/transactions/QTDITC9501-CO/src/test/resources/common-env.properties new file mode 100644 index 0000000..c44cc81 --- /dev/null +++ b/artifact/transactions/QTDITC9501-CO/src/test/resources/common-env.properties @@ -0,0 +1,545 @@ +######################### +# MQ manager definition # +######################### + +# MQ host name +mq.host.name=ADMBM101 +# MQ host port +mq.host.port=1414 +# MQ host channel +nq.host.channel=CLNT.QWPO.ES +# MQ host manager +mq.host.manager=QMDESM01 +# MQ default program +mq.default.program=QC1CDPL + +####################### +# External MQ queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.mq=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.mq=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.mq=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.mq=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.xml.xaq.mq=PRE.QWPO.XAQ_XML.QWR001 + +############################### +# Session queue configuration # +############################### + +# Name of the MQ queue where is sent the change of session message +session.queue.name=PRE.IMS.QWPO.QWR001 + +###################### +# JMS message broker # +###################### + +# IP address of JMS broker for external queues +ip.external.broker=${mq.host.name}:${mq.host.port}::${mq.host.manager}:${mq.host.channel} + +####################### +# External JMS queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.jms=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.jms=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.jms=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.jms=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for XML-formatted messages over XAQ logical protocol +queue.xml.xaq.jms=PRE.QWPO.XAQ_XML.QWR001 +# Queue for XML-formatted messages over Generic logical protocol +queue.xml.generic.jms=PRE.QWPO.GENERIC_XML.QWR001 +# Queue used to send events +event.queue=DYD.QTGE.RECEP.SUCESOS.QWR001 +# Queue used to send emails and sms by ESB +esb.queue=DYD.ANYNORESP.ESB.QWR001 + +################################# +# SOAP-JMS queues configuration # +################################# + +tibco.ems.queue.name.esb.elara.generic=queue.sample.generic +tibco.ems.queue.name.esb.elara.otma=queue.sample.otma +tibco.ems.queue.name.esb.elara.otma.pg=queue.sample.otmapg +tibco.ems.queue.name.esb.elara.ps9=queue.sample.ps9 +tibco.ems.queue.name.esb.elara.xaq=queue.sample.xaq + +########################### +# Tibco EMS configuration # +########################### + +tibco.ems.url= +tibco.ems.user= +tibco.ems.passw= + +# Bundlor URL +arq.bundlor.url=http://localhost:8101/qwjr_mult_mult_01/ +# Activate or deactivate session change through JMS queue +jms.listener.activated=true +# NTP +ntp.host=15.150.139.187 +ntp.port=123 +ntp.timeOut=10 +ntp.waitTime=60 +ntp.threshold=5 +# Scheduler configuration +scheduler.bundleCleanerTrigger.cronExpression=0 0/5 * * * ? +scheduler.nodeArchitectureControllerTrigger.cronExpression=15 0/1 * * * ? +scheduler.ntpServiceTrigger.cronExpression=0 1 08,20 * * ? +scheduler.sessionLocalModeTrigger.cronExpression=0 0/5 * * * ? +# JMS +jms.poolexecutor.corepoolsize=10 +jms.poolexecutor.maxpoolsize=10 +jms.poolexecutor.keepaliveseconds=1 +jms.listener.concurrency=2-10 +jms.listener.idletaskexecutionlimit=1 +jms.listener.idleconsumerlimit=1 +# Disruptor +disruptor.in.consumers=5 +disruptor.out.consumers=5 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 + +# Pass for the console +felix.webconsole.password=AdminCore +# Value to indicate the ROP writing mode. (ROP_WRITES_DEPENDING_ON_APP, ROP_NEVER_WRITES, ROP_ALWAYS_WRITES) +rop.writingMode=ROP_ALWAYS_WRITES + +# Message used in logging component as default +default.log.message=Could not load error catalog message +# Default description for unexpected exceptions +default.error.description=No se puede cargar la descripcion del error +# Number of retries to insert in DB a new Record Operation +rop.num.entries=3 +# Number of retries to insert in DB a new Journal Operation +journal.num.entries=3 +# Application code size (For error catalog code) +error.catalog.code.application.code.size=4 +# Error type size (For error catalog code) +error.catalog.code.error.type.size=1 +# Error code size (For error catalog code) +error.catalog.code.error.code.size=8 +# OTMA Error code size (For error catalog code) +error.catalog.code.error.code.start.otma=5 +# Size of the catalog of errors +error.catalog.code.size=13 +# Size of the PG catalog of errors +error.catalog.code.pg.size=12 +# Default error description size +error.description.size=80 +# Path for the xml Record Operation files (Files with ROP that could be saved) +rop.path=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +journal.path=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +journal.persistence.type=ELARA +# Default channel for channel handler component +channel.handler.channel=0 +# Default service for channel handler component +channel.handler.service=0 +# Default environ for channel handler component +channel.handler.environ=0 +# Mail version service for ESB +esb.mail.service.version=1 +# SMS version service for ESB +esb.sms.service.version=1 +# Default priority for SMSs +default.sms.priority=0 +# Default priority for Emails +default.email.priority=0 +# Path for attachments files (For emails) +attachments.path=/attachments +# [Hit counter] Maximum counter store size +max.counter.size=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +counter.elements.after.remove=10 +# Timeout for WS connections +ws.connect.timeout=3000 +# Timeout for WS requests +ws.request.timeout=3000 +# Timeout for transaction executions (milliseconds) +transaction.timeout=5000 +# Default message for multilanguage responses +multilanguage.default.message=Could not load multilanguage response +# Multilanguage file name +multilanguage.file.name=multilanguage- +#Timeout in query. +query.timeout=4 +#MaxRows in a query. +query.maxrows=5000 +# Banking session flag +banking.session.flag=SCHEDULER +# PS9 properties +ps9.uppercase=TRUE +ps9.uppercase.use.header=TRUE +# WS control library properties +control.ws.default.user=e000000 +control.ws.default.pid=999 +# Bundlor properties +arq.bundlor.context.node.ping=/node/ping.do +arq.bundlor.context.node.properties=/node/properties.do +arq.bundlor.context.node.properties.uuaa=/node/propertiesUUAA.do +arq.bundlor.context.node.ping.boot=/node/pingBoot.do +# Transactions repository address +repository.transaction.jar=${arq.bundlor.url}/transaction/download.do?txName= +repository.library.jar=${arq.bundlor.url}/library/download.do?libName= +# Logs Repository address +repository.log.file=${arq.bundlor.url}/uuaa/log/download.do?uuaaName= +# Database properties +database.name=ORACLE +database.showSql=true +jdbc.default.schema=QWPO +# Crypto algorithm +crypto.algorithm=PBEWithMD5AndDES +# Crypto iteration count +crypto.iteration.count=19 +# Passphase for Crypto service +passphase=Accenture1 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 +# LUA script cofiguration +lua.forbidden.funcs=coroutine; module; package : loadlib, seeall; io; os : execute, exit, getenv, remove, rename, setlocale, tmpname; debug +# Symbolic name of topology +org.apache.cxf.dosgi.topology.symbolic.name=cxf-dosgi-ri-topology-manager +# Symbolic name of DOSGi +org.apache.cxf.dosgi.admin.symbolic.name=cxf-dosgi-ri-dsw-cxf +# Property name of filter service +org.apache.cxf.dosgi.ws.property.name=org.apache.cxf.ws.databinding +# Property name of filter service for rest +org.apache.cxf.dosgi.rest.property.name=org.apache.cxf.rs.httpservice.context +# Security service configuration +secured.bundle.categories=library;transaction +transaction.service.filter=com.bbva.elara.utility;com.bbva.elara.transaction;com.bbva.elara.support.provisioning.store.TransactionStoreDelegate;com.bbva.elara.configuration.manager.ConfigurationManager +library.service.filter=com.bbva.elara.utility;com.bbva.elara.control.WSControl + +# Default Locale = es_ES +systemlocale=es_ES +# Country Code for "es_ES" locale = ES +country.es_ES=ES +# language Code for "es_ES" locale = es +language.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +dateformat.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +timezone.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +currency.es_ES=EURO +# Deployed locale = es_ES +localedeploy=es_ES + +# Position of group code last character +group.code.last=3 +# Position of parameter code last character +parameter.code.last=6 +# Binary code representation +binary.code=Binary +# Integer code reprensentation +integer.code=Integer +# Long code representation +long.code=Long +# Double code representation +double.code=Double +# String code representation +string.code=String +# Map format header tag +header.tag=header +# Map format body tag +body.tag=body +# Map format advice tag +advice.tag=advice +# Tag representing Header class +general.header.tag=header +# Tag representing IdLogicTransaction class +id.logic.transaction.tag=idLogicTransaction +# Tag representing TransactionOrigin class +transaction.origin.tag=transactionOrigin +# Parameter separator +parameter.separator=\u003B +# Complex parameter separator +complex.parameter.separator=\u002C +# End request separator +end.request.separator=\\] +# Begin request separator +begin.request.separator=\\[ +# End request separator (Map only) +map.end.request.separator=\u005D +# Begin request separator (Map only) +map.begin.request.separator=\u005B +# Begin complex parameter values +begin.complex.parameter=\u0028 +# End complex parameter values +end.complex.parameter=\u0029 +# Separator between parameter name and value +name.value.separator=\u003D +# Separator between message header and body +head.body.separator= \u0026 +# Header for advice number +header.advice.number=001000 +# Header for advice code +header.advice.code=002001 +# Header for advice description +header.advice.description=002002 +# Advice code header +advice.code.header=code +# Advice description header +advice.description.header=description +# File code representation +file.code=InputStream + +############################################## +# Paths to XML marshallers and unmarshallers # +############################################## + +# Path for standard request +path.standard.request=/META-INF/parser/standardHeaderRequest +# Path for pg request +path.pg.request=/META-INF/parser/headerRequest +# Path for standard response +path.standard.response=/META-INF/parser/standardHeaderResponse +# Path for map request +path.map.request=/META-INF/parser/mapHeaderRequest +# Path for map response +path.map.response=/META-INF/parser/mapHeaderResponse + + + +################################################# +# Old configuration # +################################################# + +url.bundle.action=/connectorTx + +# Message used in logging component as default +DEFAULTLOGMESSAGE=Could not load error catalog message +# IP of the NTP server +NTP_VIRTUAL_HOST=15.150.139.187 +# Port used to get NTP messages +NTP_SERVER_PORT=123 +# Number of seconds that the ntp component waits at NTP server +NTP_TIME_OUT=10 +# Number of seconds that the ntp server waits between +NTP_WAIT_TIME=60 +# Number of seconds of difference between Elara and NTP server which are considered normal +NTP_THRESHOLD=5 +# Number of retries to insert in DB a new Record Operation +ROP_NUM_RETRIES=3 +# Number of retries to insert in DB a new Journal Operation +JOURNAL_NUM_RETRIES=3 +# Application code size (For error catalog code) +ERRORCATALOGCODE_APPLICATIONCODESIZE=4 +# Error type size (For error catalog code) +ERRORCATALOGCODE_ERRORTYPESIZE=1 +# Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODESIZE=8 +# OTMA Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODE_START_OTMA=5 +# Size of the catalog of errors +ERRORCATALOGCODESIZE=13 +# Path for the xml Record Operation files (Files with ROP that could be saved) +ROP_PATH=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +JOURNAL_PATH=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +JOURNAL_PERSISTENCE_TYPE=ELARA +# Channel of the events +EVENT_CHANNEL=0 +# Number used to correlate events +EVENT_CORREL_ID= +# Identifies which environ has been used by an event +EVENT_ENVIRON=13 +# Event mode +EVENT_MODE=O +# Service event code +EVENT_SERVICE=5 +# Source of the event code +EVENT_ORIGIN=0 +# Default event type +EVENT_TYPE_DEFAULT_POSTACTIONS=0 +# Default event type for pre-actions +EVENT_TYPE_DEFAULT_PREACTIONS=1 +# Default event version +EVENT_VERSION_DEFAULT=00 +# Default event client +EVENT_CLIENT_DEFAULT=0 +# Default event client type +EVENT_CLIENT_TYPE_DEFAULT=0 +# Default event No Client +EVENT_NO_CLIENT_DEFAULT=0 +# Default channel for channel handler component +CHANNEL_HANDLER_CHANNEL=0 +# Default service for channel handler component +CHANNEL_HANDLER_SERVICE=0 +# Default environ for channel handler component +CHANNEL_HANDLER_ENVIRON=0 +# Mail version service for ESB +ESB_MAIL_SERVICE_VERSION=1 +# SMS version service for ESB +ESB_SMS_SERVICE_VERSION=1 +# Default priority for SMSs +DEFAULT_SMS_PRIORITY=0 +# Default priority for Emails +DEFAULT_EMAIL_PRIORITY=0 +# Path for attachments files (For emails) +ATTACHMENTS_PATH=/attachments +# [Hit counter] Maximum counter store size +MAX_COUNTER_SIZE=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +COUNTER_ELEMENTS_AFTER_REMOVE=10 + +# Timeout for WS connections +WS_CONNECT_TIMEOUT=3000 +# Timeout for WS requests +WS_REQUEST_TIMEOUT=3000 +# Timeout for transaction executions (milliseconds) +TRANSACTION_TIMEOUT =5000 +# Path where there are SMS xsds +ESB_SMS_PATH =/xsd/SMS_ +# Path where there are Email xsds +ESB_MAIL_PATH =/xsd/Mail_ +# Path where there are ESB's ds xsd +ESB_DS_PATH =/xsd/ds.xsd +# Path where there are ESB's dc xsd +ESB_DC_PATH =/xsd/dc.xsd +# Path where there is the events xsd +EVENTS_XSD_PATH =/xsd/HeaderAndContextEvent.xsd +# Default message for multilanguage responses +MULTILANGUAGE_DEFAULT_MESSAGE=Could not load multilanguage response +# Multilanguage file name +MULTILANGUAGE_FILE_NAME=multilanguage- +# Deletion criteria TQWPOLOG +PERIODIC_REMOVE_TQWPOLOG=10 +# Deletion criteria TQWPOEXR +PERIODIC_REMOVE_TQWPOEXR=1 +#Monitoring Functional Event +FLAG_JMX_EVENT_FUNCTIONAL=true +#Timeout in query. +QUERY_TIMEOUT=4 +#MaxRows in a query. +QUERY_MAXROWS=5000 +# Banking session flag +BANKING_SESSION_FLAG = SCHEDULER +PS9_UPPERCASE=TRUE +PS9_UPPERCASE_USE_HEADER=TRUE +####################################################################################################################### +################################# Database properties ################################ +DATABASE_AUTOCOMIT=false +DATABASE_READONLY=false +DATABASE_TRANSACTION_ISOLATION=-1 +DATABASE_INITIAL_SIZE=0 +DATABASE_NUM_MAX_ACTIVE=200 +DATABASE_MAX_IDLE=0 +DATABASE_MAX_OPEN_PREPARED_STATEMENT=-1 +DATABASE_MAX_WAIT=-1 +DATABASE_MIN_EVICTABLE_IDLE_TIME_MILLIS=1800000 +DATABASE_MIN_IDLE=0 +DATABASE_POOL_PREPARED_STATEMENT=false +DATABASE_TEST_ON_BORROW=true +DATABASE_TEST_ON_RETURN=false +DATABASE_TEST_WHILE_IDLE=false +DATABASE_TIME_BETWEEN_EVICTION_RUNS_MILLIS=-1 +DATABASE_VALIDATION_QUERY=select 1 from dual +DATABASE_NUM_TEST_PER_EVICTION_RUN=3 +DATABASE_ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED=false + +# Position of group code last character +GROUP_CODE_LAST=3 +# Position of parameter code last character +PARAMETER_CODE_LAST=6 +# Binary code representation +BINARY_CODE=Binary +# Integer code reprensentation +INTEGER_CODE=Integer +# Long code representation +LONG_CODE=Long +# Double code representation +DOUBLE_CODE=Double +# String code representation +STRING_CODE=String +# Map format header tag +HEADER_TAG=header +# Map format body tag +BODY_TAG=body +# Map format advice tag +ADVICE_TAG=advice +# Tag representing Header class +GENERAL_HEADER_TAG=header +# Tag representing IdLogicTransaction class +ID_LOGIC_TRANSACTION_TAG=idLogicTransaction +# Tag representing TransactionOrigin class +TRANSACTION_ORIGIN_TAG=transactionOrigin +# Parameter separator +PARAMETER_SEPARATOR = ; +# Complex parameter separator +COMPLEX_PARAMETER_SEPARATOR = , +# End request separator +END_REQUEST_SEPARATOR = \] +# Begin request separator +BEGIN_REQUEST_SEPARATOR = \[ +# End request separator (Map only) +MAP_END_REQUEST_SEPARATOR = ] +# Begin request separator (Map only) +MAP_BEGIN_REQUEST_SEPARATOR = [ +# Begin complex parameter values +BEGIN_COMPLEX_PARAMETER= ( +# End complex parameter values +END_COMPLEX_PARAMETER= ) +# Separator between parameter name and value +NAME_VALUE_SEPARATOR = = +# Separator between message header and body +HEAD_BODY_SEPARATOR = & +# Header for advice number +HEADER_ADVICE_NUMBER=001000 +# Header for advice code +HEADER_ADVICE_CODE=002001 +# Header for advice description +HEADER_ADVICE_DESCRIPTION=002002 +# Advice code header +ADVICE_CODE_HEADER=code +# Advice description header +ADVICE_DESCRIPTION_HEADER=description + +# Default Locale = es_ES +SYSTEMLOCALE=es_ES +# Country Code for "es_ES" locale = ES +COUNTRY.es_ES=ES +# language Code for "es_ES" locale = es +LANGUAGE.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +DATEFORMAT.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +TIMEZONE.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +CURRENCY.es_ES=EURO +# Country Code for "pl_PL" locale = PL +COUNTRY.pl_PL=PL +# language Code for "pl_PL" locale = pl +LANGUAGE.pl_PL=pl +# Date Format for "pl_PL" locale = MM/dd/yyyy +DATEFORMAT.pl_PL=MM/dd/yyyy +# Time Zone for "pl_PL" locale = Europe/Warsaw +TIMEZONE.pl_PL=Europe/Warsaw +# Currency for "pl_PL" locale = DOLLAR +CURRENCY.pl_PL=DOLLAR +# Deployed locale = es_ES +LOCALEDEPLOY=es_ES +# arq type (for evo. utilidades compartidas) +arq.type=ONLINE \ No newline at end of file diff --git a/artifact/transactions/QTDITC9501-CO/src/test/resources/log4j.xml b/artifact/transactions/QTDITC9501-CO/src/test/resources/log4j.xml new file mode 100644 index 0000000..215502b --- /dev/null +++ b/artifact/transactions/QTDITC9501-CO/src/test/resources/log4j.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9601-CO/.classpath b/artifact/transactions/QTDITC9601-CO/.classpath new file mode 100644 index 0000000..fae1a2b --- /dev/null +++ b/artifact/transactions/QTDITC9601-CO/.classpath @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9601-CO/.project b/artifact/transactions/QTDITC9601-CO/.project new file mode 100644 index 0000000..2bddd5d --- /dev/null +++ b/artifact/transactions/QTDITC9601-CO/.project @@ -0,0 +1,29 @@ + + + QTDITC9601-CO + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + org.springframework.ide.eclipse.core.springbuilder + + + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/artifact/transactions/QTDITC9601-CO/.settings/org.eclipse.core.resources.prefs b/artifact/transactions/QTDITC9601-CO/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..29abf99 --- /dev/null +++ b/artifact/transactions/QTDITC9601-CO/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding//src/test/java=UTF-8 +encoding//src/test/resources=UTF-8 +encoding/=UTF-8 diff --git a/artifact/transactions/QTDITC9601-CO/.settings/org.eclipse.jdt.core.prefs b/artifact/transactions/QTDITC9601-CO/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..714351a --- /dev/null +++ b/artifact/transactions/QTDITC9601-CO/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/artifact/transactions/QTDITC9601-CO/pom.xml b/artifact/transactions/QTDITC9601-CO/pom.xml new file mode 100644 index 0000000..9b10dec --- /dev/null +++ b/artifact/transactions/QTDITC9601-CO/pom.xml @@ -0,0 +1,224 @@ + + 4.0.0 + + com.bbva.qtdi + TRANSACTIONS + 0.0.1 + + com.bbva.qtdi + QTDITC96 + 01-CO + GET contract-type-id + + 0.0 + + + + com.bbva.elara + elara-transaction + ${apx.core.online.version} + compile + + + com.bbva.elara + elara-test + ${apx.core.online.version} + test + + + org.eclipse.persistence + org.eclipse.persistence.jpa + test + + + org.springframework + spring-test + test + + + org.springframework + spring-beans + test + + + org.springframework + spring-tx + test + + + org.mockito + mockito-all + test + + + com.google.guava + guava + test + + + com.bbva.qtdi + QTDIRC02 + 0.0.1 + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.felix + maven-bundle-plugin + [2.3.7,) + + manifest + + + + + + + + + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + bundle-manifest + process-classes + + manifest + + + + + + jar + + + ${project.artifactId}-${project.version} + com.bbva.qtdi.QTDITC9601COTransaction + transaction + com.bbva.elara.*;version="${arc.osgi.version}", + *;version="${arc.osgi.version}" + + + + + maven-jar-plugin + 2.3.1 + + ${project.artifactId}-${project.version} + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + maven-resources-plugin + + + copy-resources + install + + copy-resources + + + ${project.build.directory}/config + + + src/main/resources + + **/database-${project.artifactId}-${project.version}.properties + **/database-passw-${project.artifactId}-${project.version}.properties + **/${project.artifactId}-${project.version}.properties + + + + + + + + + maven-antrun-plugin + + + install + + run + + + + + + + + + + + org.jacoco + jacoco-maven-plugin + 0.7.7.201606060606 + + + default-prepare-agent + + prepare-agent + + + + default-prepare-agent-integration + + prepare-agent-integration + + + + default-report + + report + + + + default-report-integration + + report-integration + + + + default-check + + check + + + + + BUNDLE + + + ${jacoco.type.coverage} + COVEREDRATIO + ${jacoco.no.coverage} + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9601-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9601COTransaction.java b/artifact/transactions/QTDITC9601-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9601COTransaction.java new file mode 100644 index 0000000..f63aecd --- /dev/null +++ b/artifact/transactions/QTDITC9601-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9601COTransaction.java @@ -0,0 +1,16 @@ +package com.bbva.qtdi; + + +import com.bbva.elara.transaction.AbstractTransaction; + +public abstract class AbstractQTDITC9601COTransaction extends AbstractTransaction { + + public AbstractQTDITC9601COTransaction(){ + } + + + + + + +} diff --git a/artifact/transactions/QTDITC9601-CO/src/main/java/com/bbva/qtdi/QTDITC9601COTransaction.java b/artifact/transactions/QTDITC9601-CO/src/main/java/com/bbva/qtdi/QTDITC9601COTransaction.java new file mode 100644 index 0000000..545faae --- /dev/null +++ b/artifact/transactions/QTDITC9601-CO/src/main/java/com/bbva/qtdi/QTDITC9601COTransaction.java @@ -0,0 +1,21 @@ +/** + * + */ +package com.bbva.qtdi; +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +/** + * GET contract-type-id + * Business Logic implementation. + * @author Novatec Solutions + * + */ +public class QTDITC9601COTransaction extends AbstractQTDITC9601COTransaction { + + @Override + public void execute() { + QTDIRC02 qtdiRC02 = (QTDIRC02)getServiceLibrary(QTDIRC02.class); + // TODO + } + +} diff --git a/artifact/transactions/QTDITC9601-CO/src/main/resources/META-INF/MANIFEST.MF b/artifact/transactions/QTDITC9601-CO/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9601-CO/src/main/resources/QTDITC96-01-CO.xml b/artifact/transactions/QTDITC9601-CO/src/main/resources/QTDITC96-01-CO.xml new file mode 100644 index 0000000..62b19df --- /dev/null +++ b/artifact/transactions/QTDITC9601-CO/src/main/resources/QTDITC96-01-CO.xml @@ -0,0 +1 @@ +GET contract-type-id \ No newline at end of file diff --git a/artifact/transactions/QTDITC9601-CO/src/main/resources/multilanguage-CO.properties b/artifact/transactions/QTDITC9601-CO/src/main/resources/multilanguage-CO.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9601-CO/src/test/java/com/bbva/qtdi/QTDITC9601COTransactionTest.java b/artifact/transactions/QTDITC9601-CO/src/test/java/com/bbva/qtdi/QTDITC9601COTransactionTest.java new file mode 100644 index 0000000..476b791 --- /dev/null +++ b/artifact/transactions/QTDITC9601-CO/src/test/java/com/bbva/qtdi/QTDITC9601COTransactionTest.java @@ -0,0 +1,100 @@ +package com.bbva.qtdi; + + +import java.util.ArrayList; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mockito; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import com.bbva.elara.domain.transaction.Context; +import com.bbva.elara.domain.transaction.ParameterTable; +import com.bbva.elara.domain.transaction.TransactionParameter; +import com.bbva.elara.domain.transaction.request.TransactionRequest; +import com.bbva.elara.domain.transaction.request.body.CommonRequestBody; +import com.bbva.elara.test.osgi.DummyBundleContext; + + +/** + * Test for transaction QTDITC9601COTransaction + */ +@RunWith(SpringJUnit4ClassRunner.class) +@ContextConfiguration(locations = { + "classpath:/META-INF/spring/elara-test.xml", + "classpath:/META-INF/spring/QTDITC9601COTest.xml" }) +public class QTDITC9601COTransactionTest { + private static final Logger LOGGER = LoggerFactory.getLogger(QTDITC9601COTransactionTest.class); + + @Autowired + private QTDITC9601COTransaction transaction; + + @Resource(name="dummyBundleContext") + private DummyBundleContext bundleContext; + + private TransactionRequest transactionRequest; + + + @Before + public void initializeClass() throws Exception { + this.transaction.start(bundleContext); + + // Initializing transaction to test + this.transaction.setContext(new Context()); + this.transaction.getContext().setLanguageCode("ES"); + + transactionRequest = Mockito.mock(TransactionRequest.class); + CommonRequestBody commonRequestBody = new CommonRequestBody(); + commonRequestBody.setTransactionParameters(new ArrayList()); + transactionRequest.setBody(commonRequestBody); + Mockito.when(transactionRequest.getRestfulMethod()).thenReturn(null); + this.transaction.getContext().setTransactionRequest(transactionRequest); + + } + + @Test + public void testNotNull(){ + Assert.assertNotNull(this.transaction); + //The method getRestfulMethod() will return null by default. To test other methods add a line like this + //Mockito.when(transactionRequest.getRestfulMethod()).thenReturn("getBancos"); + this.transaction.execute(); + } + + + private void addTable(final String key, final List> table) { + ParameterTable parameterTable = new ParameterTable(); + parameterTable.setParameterTableList(table); + this.addParameter(key, parameterTable); + } + + private void addParameter(final String parameter, final Object value) { + final TransactionParameter tParameter = new TransactionParameter( + parameter, value); + transaction.getContext().getParameterList().put(parameter, tParameter); + } + + private Object getParameter(final String parameter) { + final TransactionParameter param = transaction.getContext() + .getParameterList().get(parameter); + return param.getValue(); + } + + private Object getTableParameter(final int rowNumber, final String table, final String key) + { + ParameterTable param = (ParameterTable)getParameter(table); + Map row = param.get(rowNumber); + return row.get(key); + } +} diff --git a/artifact/transactions/QTDITC9601-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java b/artifact/transactions/QTDITC9601-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java new file mode 100644 index 0000000..c9d694e --- /dev/null +++ b/artifact/transactions/QTDITC9601-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +public class QTDIRC02Mock implements QTDIRC02 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDITC9601-CO/src/test/resources/META-INF/spring/QTDITC9601COTest.xml b/artifact/transactions/QTDITC9601-CO/src/test/resources/META-INF/spring/QTDITC9601COTest.xml new file mode 100644 index 0000000..d9e0e46 --- /dev/null +++ b/artifact/transactions/QTDITC9601-CO/src/test/resources/META-INF/spring/QTDITC9601COTest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + classpath:/common-env.properties + classpath:/QTDI.properties + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9601-CO/src/test/resources/QTDI.properties b/artifact/transactions/QTDITC9601-CO/src/test/resources/QTDI.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9601-CO/src/test/resources/common-env.properties b/artifact/transactions/QTDITC9601-CO/src/test/resources/common-env.properties new file mode 100644 index 0000000..c44cc81 --- /dev/null +++ b/artifact/transactions/QTDITC9601-CO/src/test/resources/common-env.properties @@ -0,0 +1,545 @@ +######################### +# MQ manager definition # +######################### + +# MQ host name +mq.host.name=ADMBM101 +# MQ host port +mq.host.port=1414 +# MQ host channel +nq.host.channel=CLNT.QWPO.ES +# MQ host manager +mq.host.manager=QMDESM01 +# MQ default program +mq.default.program=QC1CDPL + +####################### +# External MQ queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.mq=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.mq=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.mq=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.mq=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.xml.xaq.mq=PRE.QWPO.XAQ_XML.QWR001 + +############################### +# Session queue configuration # +############################### + +# Name of the MQ queue where is sent the change of session message +session.queue.name=PRE.IMS.QWPO.QWR001 + +###################### +# JMS message broker # +###################### + +# IP address of JMS broker for external queues +ip.external.broker=${mq.host.name}:${mq.host.port}::${mq.host.manager}:${mq.host.channel} + +####################### +# External JMS queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.jms=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.jms=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.jms=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.jms=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for XML-formatted messages over XAQ logical protocol +queue.xml.xaq.jms=PRE.QWPO.XAQ_XML.QWR001 +# Queue for XML-formatted messages over Generic logical protocol +queue.xml.generic.jms=PRE.QWPO.GENERIC_XML.QWR001 +# Queue used to send events +event.queue=DYD.QTGE.RECEP.SUCESOS.QWR001 +# Queue used to send emails and sms by ESB +esb.queue=DYD.ANYNORESP.ESB.QWR001 + +################################# +# SOAP-JMS queues configuration # +################################# + +tibco.ems.queue.name.esb.elara.generic=queue.sample.generic +tibco.ems.queue.name.esb.elara.otma=queue.sample.otma +tibco.ems.queue.name.esb.elara.otma.pg=queue.sample.otmapg +tibco.ems.queue.name.esb.elara.ps9=queue.sample.ps9 +tibco.ems.queue.name.esb.elara.xaq=queue.sample.xaq + +########################### +# Tibco EMS configuration # +########################### + +tibco.ems.url= +tibco.ems.user= +tibco.ems.passw= + +# Bundlor URL +arq.bundlor.url=http://localhost:8101/qwjr_mult_mult_01/ +# Activate or deactivate session change through JMS queue +jms.listener.activated=true +# NTP +ntp.host=15.150.139.187 +ntp.port=123 +ntp.timeOut=10 +ntp.waitTime=60 +ntp.threshold=5 +# Scheduler configuration +scheduler.bundleCleanerTrigger.cronExpression=0 0/5 * * * ? +scheduler.nodeArchitectureControllerTrigger.cronExpression=15 0/1 * * * ? +scheduler.ntpServiceTrigger.cronExpression=0 1 08,20 * * ? +scheduler.sessionLocalModeTrigger.cronExpression=0 0/5 * * * ? +# JMS +jms.poolexecutor.corepoolsize=10 +jms.poolexecutor.maxpoolsize=10 +jms.poolexecutor.keepaliveseconds=1 +jms.listener.concurrency=2-10 +jms.listener.idletaskexecutionlimit=1 +jms.listener.idleconsumerlimit=1 +# Disruptor +disruptor.in.consumers=5 +disruptor.out.consumers=5 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 + +# Pass for the console +felix.webconsole.password=AdminCore +# Value to indicate the ROP writing mode. (ROP_WRITES_DEPENDING_ON_APP, ROP_NEVER_WRITES, ROP_ALWAYS_WRITES) +rop.writingMode=ROP_ALWAYS_WRITES + +# Message used in logging component as default +default.log.message=Could not load error catalog message +# Default description for unexpected exceptions +default.error.description=No se puede cargar la descripcion del error +# Number of retries to insert in DB a new Record Operation +rop.num.entries=3 +# Number of retries to insert in DB a new Journal Operation +journal.num.entries=3 +# Application code size (For error catalog code) +error.catalog.code.application.code.size=4 +# Error type size (For error catalog code) +error.catalog.code.error.type.size=1 +# Error code size (For error catalog code) +error.catalog.code.error.code.size=8 +# OTMA Error code size (For error catalog code) +error.catalog.code.error.code.start.otma=5 +# Size of the catalog of errors +error.catalog.code.size=13 +# Size of the PG catalog of errors +error.catalog.code.pg.size=12 +# Default error description size +error.description.size=80 +# Path for the xml Record Operation files (Files with ROP that could be saved) +rop.path=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +journal.path=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +journal.persistence.type=ELARA +# Default channel for channel handler component +channel.handler.channel=0 +# Default service for channel handler component +channel.handler.service=0 +# Default environ for channel handler component +channel.handler.environ=0 +# Mail version service for ESB +esb.mail.service.version=1 +# SMS version service for ESB +esb.sms.service.version=1 +# Default priority for SMSs +default.sms.priority=0 +# Default priority for Emails +default.email.priority=0 +# Path for attachments files (For emails) +attachments.path=/attachments +# [Hit counter] Maximum counter store size +max.counter.size=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +counter.elements.after.remove=10 +# Timeout for WS connections +ws.connect.timeout=3000 +# Timeout for WS requests +ws.request.timeout=3000 +# Timeout for transaction executions (milliseconds) +transaction.timeout=5000 +# Default message for multilanguage responses +multilanguage.default.message=Could not load multilanguage response +# Multilanguage file name +multilanguage.file.name=multilanguage- +#Timeout in query. +query.timeout=4 +#MaxRows in a query. +query.maxrows=5000 +# Banking session flag +banking.session.flag=SCHEDULER +# PS9 properties +ps9.uppercase=TRUE +ps9.uppercase.use.header=TRUE +# WS control library properties +control.ws.default.user=e000000 +control.ws.default.pid=999 +# Bundlor properties +arq.bundlor.context.node.ping=/node/ping.do +arq.bundlor.context.node.properties=/node/properties.do +arq.bundlor.context.node.properties.uuaa=/node/propertiesUUAA.do +arq.bundlor.context.node.ping.boot=/node/pingBoot.do +# Transactions repository address +repository.transaction.jar=${arq.bundlor.url}/transaction/download.do?txName= +repository.library.jar=${arq.bundlor.url}/library/download.do?libName= +# Logs Repository address +repository.log.file=${arq.bundlor.url}/uuaa/log/download.do?uuaaName= +# Database properties +database.name=ORACLE +database.showSql=true +jdbc.default.schema=QWPO +# Crypto algorithm +crypto.algorithm=PBEWithMD5AndDES +# Crypto iteration count +crypto.iteration.count=19 +# Passphase for Crypto service +passphase=Accenture1 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 +# LUA script cofiguration +lua.forbidden.funcs=coroutine; module; package : loadlib, seeall; io; os : execute, exit, getenv, remove, rename, setlocale, tmpname; debug +# Symbolic name of topology +org.apache.cxf.dosgi.topology.symbolic.name=cxf-dosgi-ri-topology-manager +# Symbolic name of DOSGi +org.apache.cxf.dosgi.admin.symbolic.name=cxf-dosgi-ri-dsw-cxf +# Property name of filter service +org.apache.cxf.dosgi.ws.property.name=org.apache.cxf.ws.databinding +# Property name of filter service for rest +org.apache.cxf.dosgi.rest.property.name=org.apache.cxf.rs.httpservice.context +# Security service configuration +secured.bundle.categories=library;transaction +transaction.service.filter=com.bbva.elara.utility;com.bbva.elara.transaction;com.bbva.elara.support.provisioning.store.TransactionStoreDelegate;com.bbva.elara.configuration.manager.ConfigurationManager +library.service.filter=com.bbva.elara.utility;com.bbva.elara.control.WSControl + +# Default Locale = es_ES +systemlocale=es_ES +# Country Code for "es_ES" locale = ES +country.es_ES=ES +# language Code for "es_ES" locale = es +language.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +dateformat.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +timezone.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +currency.es_ES=EURO +# Deployed locale = es_ES +localedeploy=es_ES + +# Position of group code last character +group.code.last=3 +# Position of parameter code last character +parameter.code.last=6 +# Binary code representation +binary.code=Binary +# Integer code reprensentation +integer.code=Integer +# Long code representation +long.code=Long +# Double code representation +double.code=Double +# String code representation +string.code=String +# Map format header tag +header.tag=header +# Map format body tag +body.tag=body +# Map format advice tag +advice.tag=advice +# Tag representing Header class +general.header.tag=header +# Tag representing IdLogicTransaction class +id.logic.transaction.tag=idLogicTransaction +# Tag representing TransactionOrigin class +transaction.origin.tag=transactionOrigin +# Parameter separator +parameter.separator=\u003B +# Complex parameter separator +complex.parameter.separator=\u002C +# End request separator +end.request.separator=\\] +# Begin request separator +begin.request.separator=\\[ +# End request separator (Map only) +map.end.request.separator=\u005D +# Begin request separator (Map only) +map.begin.request.separator=\u005B +# Begin complex parameter values +begin.complex.parameter=\u0028 +# End complex parameter values +end.complex.parameter=\u0029 +# Separator between parameter name and value +name.value.separator=\u003D +# Separator between message header and body +head.body.separator= \u0026 +# Header for advice number +header.advice.number=001000 +# Header for advice code +header.advice.code=002001 +# Header for advice description +header.advice.description=002002 +# Advice code header +advice.code.header=code +# Advice description header +advice.description.header=description +# File code representation +file.code=InputStream + +############################################## +# Paths to XML marshallers and unmarshallers # +############################################## + +# Path for standard request +path.standard.request=/META-INF/parser/standardHeaderRequest +# Path for pg request +path.pg.request=/META-INF/parser/headerRequest +# Path for standard response +path.standard.response=/META-INF/parser/standardHeaderResponse +# Path for map request +path.map.request=/META-INF/parser/mapHeaderRequest +# Path for map response +path.map.response=/META-INF/parser/mapHeaderResponse + + + +################################################# +# Old configuration # +################################################# + +url.bundle.action=/connectorTx + +# Message used in logging component as default +DEFAULTLOGMESSAGE=Could not load error catalog message +# IP of the NTP server +NTP_VIRTUAL_HOST=15.150.139.187 +# Port used to get NTP messages +NTP_SERVER_PORT=123 +# Number of seconds that the ntp component waits at NTP server +NTP_TIME_OUT=10 +# Number of seconds that the ntp server waits between +NTP_WAIT_TIME=60 +# Number of seconds of difference between Elara and NTP server which are considered normal +NTP_THRESHOLD=5 +# Number of retries to insert in DB a new Record Operation +ROP_NUM_RETRIES=3 +# Number of retries to insert in DB a new Journal Operation +JOURNAL_NUM_RETRIES=3 +# Application code size (For error catalog code) +ERRORCATALOGCODE_APPLICATIONCODESIZE=4 +# Error type size (For error catalog code) +ERRORCATALOGCODE_ERRORTYPESIZE=1 +# Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODESIZE=8 +# OTMA Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODE_START_OTMA=5 +# Size of the catalog of errors +ERRORCATALOGCODESIZE=13 +# Path for the xml Record Operation files (Files with ROP that could be saved) +ROP_PATH=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +JOURNAL_PATH=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +JOURNAL_PERSISTENCE_TYPE=ELARA +# Channel of the events +EVENT_CHANNEL=0 +# Number used to correlate events +EVENT_CORREL_ID= +# Identifies which environ has been used by an event +EVENT_ENVIRON=13 +# Event mode +EVENT_MODE=O +# Service event code +EVENT_SERVICE=5 +# Source of the event code +EVENT_ORIGIN=0 +# Default event type +EVENT_TYPE_DEFAULT_POSTACTIONS=0 +# Default event type for pre-actions +EVENT_TYPE_DEFAULT_PREACTIONS=1 +# Default event version +EVENT_VERSION_DEFAULT=00 +# Default event client +EVENT_CLIENT_DEFAULT=0 +# Default event client type +EVENT_CLIENT_TYPE_DEFAULT=0 +# Default event No Client +EVENT_NO_CLIENT_DEFAULT=0 +# Default channel for channel handler component +CHANNEL_HANDLER_CHANNEL=0 +# Default service for channel handler component +CHANNEL_HANDLER_SERVICE=0 +# Default environ for channel handler component +CHANNEL_HANDLER_ENVIRON=0 +# Mail version service for ESB +ESB_MAIL_SERVICE_VERSION=1 +# SMS version service for ESB +ESB_SMS_SERVICE_VERSION=1 +# Default priority for SMSs +DEFAULT_SMS_PRIORITY=0 +# Default priority for Emails +DEFAULT_EMAIL_PRIORITY=0 +# Path for attachments files (For emails) +ATTACHMENTS_PATH=/attachments +# [Hit counter] Maximum counter store size +MAX_COUNTER_SIZE=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +COUNTER_ELEMENTS_AFTER_REMOVE=10 + +# Timeout for WS connections +WS_CONNECT_TIMEOUT=3000 +# Timeout for WS requests +WS_REQUEST_TIMEOUT=3000 +# Timeout for transaction executions (milliseconds) +TRANSACTION_TIMEOUT =5000 +# Path where there are SMS xsds +ESB_SMS_PATH =/xsd/SMS_ +# Path where there are Email xsds +ESB_MAIL_PATH =/xsd/Mail_ +# Path where there are ESB's ds xsd +ESB_DS_PATH =/xsd/ds.xsd +# Path where there are ESB's dc xsd +ESB_DC_PATH =/xsd/dc.xsd +# Path where there is the events xsd +EVENTS_XSD_PATH =/xsd/HeaderAndContextEvent.xsd +# Default message for multilanguage responses +MULTILANGUAGE_DEFAULT_MESSAGE=Could not load multilanguage response +# Multilanguage file name +MULTILANGUAGE_FILE_NAME=multilanguage- +# Deletion criteria TQWPOLOG +PERIODIC_REMOVE_TQWPOLOG=10 +# Deletion criteria TQWPOEXR +PERIODIC_REMOVE_TQWPOEXR=1 +#Monitoring Functional Event +FLAG_JMX_EVENT_FUNCTIONAL=true +#Timeout in query. +QUERY_TIMEOUT=4 +#MaxRows in a query. +QUERY_MAXROWS=5000 +# Banking session flag +BANKING_SESSION_FLAG = SCHEDULER +PS9_UPPERCASE=TRUE +PS9_UPPERCASE_USE_HEADER=TRUE +####################################################################################################################### +################################# Database properties ################################ +DATABASE_AUTOCOMIT=false +DATABASE_READONLY=false +DATABASE_TRANSACTION_ISOLATION=-1 +DATABASE_INITIAL_SIZE=0 +DATABASE_NUM_MAX_ACTIVE=200 +DATABASE_MAX_IDLE=0 +DATABASE_MAX_OPEN_PREPARED_STATEMENT=-1 +DATABASE_MAX_WAIT=-1 +DATABASE_MIN_EVICTABLE_IDLE_TIME_MILLIS=1800000 +DATABASE_MIN_IDLE=0 +DATABASE_POOL_PREPARED_STATEMENT=false +DATABASE_TEST_ON_BORROW=true +DATABASE_TEST_ON_RETURN=false +DATABASE_TEST_WHILE_IDLE=false +DATABASE_TIME_BETWEEN_EVICTION_RUNS_MILLIS=-1 +DATABASE_VALIDATION_QUERY=select 1 from dual +DATABASE_NUM_TEST_PER_EVICTION_RUN=3 +DATABASE_ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED=false + +# Position of group code last character +GROUP_CODE_LAST=3 +# Position of parameter code last character +PARAMETER_CODE_LAST=6 +# Binary code representation +BINARY_CODE=Binary +# Integer code reprensentation +INTEGER_CODE=Integer +# Long code representation +LONG_CODE=Long +# Double code representation +DOUBLE_CODE=Double +# String code representation +STRING_CODE=String +# Map format header tag +HEADER_TAG=header +# Map format body tag +BODY_TAG=body +# Map format advice tag +ADVICE_TAG=advice +# Tag representing Header class +GENERAL_HEADER_TAG=header +# Tag representing IdLogicTransaction class +ID_LOGIC_TRANSACTION_TAG=idLogicTransaction +# Tag representing TransactionOrigin class +TRANSACTION_ORIGIN_TAG=transactionOrigin +# Parameter separator +PARAMETER_SEPARATOR = ; +# Complex parameter separator +COMPLEX_PARAMETER_SEPARATOR = , +# End request separator +END_REQUEST_SEPARATOR = \] +# Begin request separator +BEGIN_REQUEST_SEPARATOR = \[ +# End request separator (Map only) +MAP_END_REQUEST_SEPARATOR = ] +# Begin request separator (Map only) +MAP_BEGIN_REQUEST_SEPARATOR = [ +# Begin complex parameter values +BEGIN_COMPLEX_PARAMETER= ( +# End complex parameter values +END_COMPLEX_PARAMETER= ) +# Separator between parameter name and value +NAME_VALUE_SEPARATOR = = +# Separator between message header and body +HEAD_BODY_SEPARATOR = & +# Header for advice number +HEADER_ADVICE_NUMBER=001000 +# Header for advice code +HEADER_ADVICE_CODE=002001 +# Header for advice description +HEADER_ADVICE_DESCRIPTION=002002 +# Advice code header +ADVICE_CODE_HEADER=code +# Advice description header +ADVICE_DESCRIPTION_HEADER=description + +# Default Locale = es_ES +SYSTEMLOCALE=es_ES +# Country Code for "es_ES" locale = ES +COUNTRY.es_ES=ES +# language Code for "es_ES" locale = es +LANGUAGE.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +DATEFORMAT.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +TIMEZONE.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +CURRENCY.es_ES=EURO +# Country Code for "pl_PL" locale = PL +COUNTRY.pl_PL=PL +# language Code for "pl_PL" locale = pl +LANGUAGE.pl_PL=pl +# Date Format for "pl_PL" locale = MM/dd/yyyy +DATEFORMAT.pl_PL=MM/dd/yyyy +# Time Zone for "pl_PL" locale = Europe/Warsaw +TIMEZONE.pl_PL=Europe/Warsaw +# Currency for "pl_PL" locale = DOLLAR +CURRENCY.pl_PL=DOLLAR +# Deployed locale = es_ES +LOCALEDEPLOY=es_ES +# arq type (for evo. utilidades compartidas) +arq.type=ONLINE \ No newline at end of file diff --git a/artifact/transactions/QTDITC9601-CO/src/test/resources/log4j.xml b/artifact/transactions/QTDITC9601-CO/src/test/resources/log4j.xml new file mode 100644 index 0000000..215502b --- /dev/null +++ b/artifact/transactions/QTDITC9601-CO/src/test/resources/log4j.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9701-CO/.classpath b/artifact/transactions/QTDITC9701-CO/.classpath new file mode 100644 index 0000000..fae1a2b --- /dev/null +++ b/artifact/transactions/QTDITC9701-CO/.classpath @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9701-CO/.project b/artifact/transactions/QTDITC9701-CO/.project new file mode 100644 index 0000000..8c4d444 --- /dev/null +++ b/artifact/transactions/QTDITC9701-CO/.project @@ -0,0 +1,29 @@ + + + QTDITC9701-CO + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + org.springframework.ide.eclipse.core.springbuilder + + + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/artifact/transactions/QTDITC9701-CO/.settings/org.eclipse.core.resources.prefs b/artifact/transactions/QTDITC9701-CO/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..29abf99 --- /dev/null +++ b/artifact/transactions/QTDITC9701-CO/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding//src/test/java=UTF-8 +encoding//src/test/resources=UTF-8 +encoding/=UTF-8 diff --git a/artifact/transactions/QTDITC9701-CO/.settings/org.eclipse.jdt.core.prefs b/artifact/transactions/QTDITC9701-CO/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..714351a --- /dev/null +++ b/artifact/transactions/QTDITC9701-CO/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/artifact/transactions/QTDITC9701-CO/pom.xml b/artifact/transactions/QTDITC9701-CO/pom.xml new file mode 100644 index 0000000..e52add6 --- /dev/null +++ b/artifact/transactions/QTDITC9701-CO/pom.xml @@ -0,0 +1,224 @@ + + 4.0.0 + + com.bbva.qtdi + TRANSACTIONS + 0.0.1 + + com.bbva.qtdi + QTDITC97 + 01-CO + PATCH contract-type-id + + 0.0 + + + + com.bbva.elara + elara-transaction + ${apx.core.online.version} + compile + + + com.bbva.elara + elara-test + ${apx.core.online.version} + test + + + org.eclipse.persistence + org.eclipse.persistence.jpa + test + + + org.springframework + spring-test + test + + + org.springframework + spring-beans + test + + + org.springframework + spring-tx + test + + + org.mockito + mockito-all + test + + + com.google.guava + guava + test + + + com.bbva.qtdi + QTDIRC02 + 0.0.1 + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.felix + maven-bundle-plugin + [2.3.7,) + + manifest + + + + + + + + + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + bundle-manifest + process-classes + + manifest + + + + + + jar + + + ${project.artifactId}-${project.version} + com.bbva.qtdi.QTDITC9701COTransaction + transaction + com.bbva.elara.*;version="${arc.osgi.version}", + *;version="${arc.osgi.version}" + + + + + maven-jar-plugin + 2.3.1 + + ${project.artifactId}-${project.version} + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + maven-resources-plugin + + + copy-resources + install + + copy-resources + + + ${project.build.directory}/config + + + src/main/resources + + **/database-${project.artifactId}-${project.version}.properties + **/database-passw-${project.artifactId}-${project.version}.properties + **/${project.artifactId}-${project.version}.properties + + + + + + + + + maven-antrun-plugin + + + install + + run + + + + + + + + + + + org.jacoco + jacoco-maven-plugin + 0.7.7.201606060606 + + + default-prepare-agent + + prepare-agent + + + + default-prepare-agent-integration + + prepare-agent-integration + + + + default-report + + report + + + + default-report-integration + + report-integration + + + + default-check + + check + + + + + BUNDLE + + + ${jacoco.type.coverage} + COVEREDRATIO + ${jacoco.no.coverage} + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9701-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9701COTransaction.java b/artifact/transactions/QTDITC9701-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9701COTransaction.java new file mode 100644 index 0000000..c673772 --- /dev/null +++ b/artifact/transactions/QTDITC9701-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9701COTransaction.java @@ -0,0 +1,16 @@ +package com.bbva.qtdi; + + +import com.bbva.elara.transaction.AbstractTransaction; + +public abstract class AbstractQTDITC9701COTransaction extends AbstractTransaction { + + public AbstractQTDITC9701COTransaction(){ + } + + + + + + +} diff --git a/artifact/transactions/QTDITC9701-CO/src/main/java/com/bbva/qtdi/QTDITC9701COTransaction.java b/artifact/transactions/QTDITC9701-CO/src/main/java/com/bbva/qtdi/QTDITC9701COTransaction.java new file mode 100644 index 0000000..9af5996 --- /dev/null +++ b/artifact/transactions/QTDITC9701-CO/src/main/java/com/bbva/qtdi/QTDITC9701COTransaction.java @@ -0,0 +1,21 @@ +/** + * + */ +package com.bbva.qtdi; +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +/** + * PATCH contract-type-id + * Business Logic implementation. + * @author Novatec Solutions + * + */ +public class QTDITC9701COTransaction extends AbstractQTDITC9701COTransaction { + + @Override + public void execute() { + QTDIRC02 qtdiRC02 = (QTDIRC02)getServiceLibrary(QTDIRC02.class); + // TODO + } + +} diff --git a/artifact/transactions/QTDITC9701-CO/src/main/resources/META-INF/MANIFEST.MF b/artifact/transactions/QTDITC9701-CO/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9701-CO/src/main/resources/QTDITC97-01-CO.xml b/artifact/transactions/QTDITC9701-CO/src/main/resources/QTDITC97-01-CO.xml new file mode 100644 index 0000000..30fd432 --- /dev/null +++ b/artifact/transactions/QTDITC9701-CO/src/main/resources/QTDITC97-01-CO.xml @@ -0,0 +1 @@ +PATCH contract-type-id \ No newline at end of file diff --git a/artifact/transactions/QTDITC9701-CO/src/main/resources/multilanguage-CO.properties b/artifact/transactions/QTDITC9701-CO/src/main/resources/multilanguage-CO.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9701-CO/src/test/java/com/bbva/qtdi/QTDITC9701COTransactionTest.java b/artifact/transactions/QTDITC9701-CO/src/test/java/com/bbva/qtdi/QTDITC9701COTransactionTest.java new file mode 100644 index 0000000..dbdc6ce --- /dev/null +++ b/artifact/transactions/QTDITC9701-CO/src/test/java/com/bbva/qtdi/QTDITC9701COTransactionTest.java @@ -0,0 +1,100 @@ +package com.bbva.qtdi; + + +import java.util.ArrayList; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mockito; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import com.bbva.elara.domain.transaction.Context; +import com.bbva.elara.domain.transaction.ParameterTable; +import com.bbva.elara.domain.transaction.TransactionParameter; +import com.bbva.elara.domain.transaction.request.TransactionRequest; +import com.bbva.elara.domain.transaction.request.body.CommonRequestBody; +import com.bbva.elara.test.osgi.DummyBundleContext; + + +/** + * Test for transaction QTDITC9701COTransaction + */ +@RunWith(SpringJUnit4ClassRunner.class) +@ContextConfiguration(locations = { + "classpath:/META-INF/spring/elara-test.xml", + "classpath:/META-INF/spring/QTDITC9701COTest.xml" }) +public class QTDITC9701COTransactionTest { + private static final Logger LOGGER = LoggerFactory.getLogger(QTDITC9701COTransactionTest.class); + + @Autowired + private QTDITC9701COTransaction transaction; + + @Resource(name="dummyBundleContext") + private DummyBundleContext bundleContext; + + private TransactionRequest transactionRequest; + + + @Before + public void initializeClass() throws Exception { + this.transaction.start(bundleContext); + + // Initializing transaction to test + this.transaction.setContext(new Context()); + this.transaction.getContext().setLanguageCode("ES"); + + transactionRequest = Mockito.mock(TransactionRequest.class); + CommonRequestBody commonRequestBody = new CommonRequestBody(); + commonRequestBody.setTransactionParameters(new ArrayList()); + transactionRequest.setBody(commonRequestBody); + Mockito.when(transactionRequest.getRestfulMethod()).thenReturn(null); + this.transaction.getContext().setTransactionRequest(transactionRequest); + + } + + @Test + public void testNotNull(){ + Assert.assertNotNull(this.transaction); + //The method getRestfulMethod() will return null by default. To test other methods add a line like this + //Mockito.when(transactionRequest.getRestfulMethod()).thenReturn("getBancos"); + this.transaction.execute(); + } + + + private void addTable(final String key, final List> table) { + ParameterTable parameterTable = new ParameterTable(); + parameterTable.setParameterTableList(table); + this.addParameter(key, parameterTable); + } + + private void addParameter(final String parameter, final Object value) { + final TransactionParameter tParameter = new TransactionParameter( + parameter, value); + transaction.getContext().getParameterList().put(parameter, tParameter); + } + + private Object getParameter(final String parameter) { + final TransactionParameter param = transaction.getContext() + .getParameterList().get(parameter); + return param.getValue(); + } + + private Object getTableParameter(final int rowNumber, final String table, final String key) + { + ParameterTable param = (ParameterTable)getParameter(table); + Map row = param.get(rowNumber); + return row.get(key); + } +} diff --git a/artifact/transactions/QTDITC9701-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java b/artifact/transactions/QTDITC9701-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java new file mode 100644 index 0000000..c9d694e --- /dev/null +++ b/artifact/transactions/QTDITC9701-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +public class QTDIRC02Mock implements QTDIRC02 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDITC9701-CO/src/test/resources/META-INF/spring/QTDITC9701COTest.xml b/artifact/transactions/QTDITC9701-CO/src/test/resources/META-INF/spring/QTDITC9701COTest.xml new file mode 100644 index 0000000..a619640 --- /dev/null +++ b/artifact/transactions/QTDITC9701-CO/src/test/resources/META-INF/spring/QTDITC9701COTest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + classpath:/common-env.properties + classpath:/QTDI.properties + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9701-CO/src/test/resources/QTDI.properties b/artifact/transactions/QTDITC9701-CO/src/test/resources/QTDI.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9701-CO/src/test/resources/common-env.properties b/artifact/transactions/QTDITC9701-CO/src/test/resources/common-env.properties new file mode 100644 index 0000000..c44cc81 --- /dev/null +++ b/artifact/transactions/QTDITC9701-CO/src/test/resources/common-env.properties @@ -0,0 +1,545 @@ +######################### +# MQ manager definition # +######################### + +# MQ host name +mq.host.name=ADMBM101 +# MQ host port +mq.host.port=1414 +# MQ host channel +nq.host.channel=CLNT.QWPO.ES +# MQ host manager +mq.host.manager=QMDESM01 +# MQ default program +mq.default.program=QC1CDPL + +####################### +# External MQ queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.mq=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.mq=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.mq=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.mq=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.xml.xaq.mq=PRE.QWPO.XAQ_XML.QWR001 + +############################### +# Session queue configuration # +############################### + +# Name of the MQ queue where is sent the change of session message +session.queue.name=PRE.IMS.QWPO.QWR001 + +###################### +# JMS message broker # +###################### + +# IP address of JMS broker for external queues +ip.external.broker=${mq.host.name}:${mq.host.port}::${mq.host.manager}:${mq.host.channel} + +####################### +# External JMS queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.jms=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.jms=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.jms=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.jms=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for XML-formatted messages over XAQ logical protocol +queue.xml.xaq.jms=PRE.QWPO.XAQ_XML.QWR001 +# Queue for XML-formatted messages over Generic logical protocol +queue.xml.generic.jms=PRE.QWPO.GENERIC_XML.QWR001 +# Queue used to send events +event.queue=DYD.QTGE.RECEP.SUCESOS.QWR001 +# Queue used to send emails and sms by ESB +esb.queue=DYD.ANYNORESP.ESB.QWR001 + +################################# +# SOAP-JMS queues configuration # +################################# + +tibco.ems.queue.name.esb.elara.generic=queue.sample.generic +tibco.ems.queue.name.esb.elara.otma=queue.sample.otma +tibco.ems.queue.name.esb.elara.otma.pg=queue.sample.otmapg +tibco.ems.queue.name.esb.elara.ps9=queue.sample.ps9 +tibco.ems.queue.name.esb.elara.xaq=queue.sample.xaq + +########################### +# Tibco EMS configuration # +########################### + +tibco.ems.url= +tibco.ems.user= +tibco.ems.passw= + +# Bundlor URL +arq.bundlor.url=http://localhost:8101/qwjr_mult_mult_01/ +# Activate or deactivate session change through JMS queue +jms.listener.activated=true +# NTP +ntp.host=15.150.139.187 +ntp.port=123 +ntp.timeOut=10 +ntp.waitTime=60 +ntp.threshold=5 +# Scheduler configuration +scheduler.bundleCleanerTrigger.cronExpression=0 0/5 * * * ? +scheduler.nodeArchitectureControllerTrigger.cronExpression=15 0/1 * * * ? +scheduler.ntpServiceTrigger.cronExpression=0 1 08,20 * * ? +scheduler.sessionLocalModeTrigger.cronExpression=0 0/5 * * * ? +# JMS +jms.poolexecutor.corepoolsize=10 +jms.poolexecutor.maxpoolsize=10 +jms.poolexecutor.keepaliveseconds=1 +jms.listener.concurrency=2-10 +jms.listener.idletaskexecutionlimit=1 +jms.listener.idleconsumerlimit=1 +# Disruptor +disruptor.in.consumers=5 +disruptor.out.consumers=5 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 + +# Pass for the console +felix.webconsole.password=AdminCore +# Value to indicate the ROP writing mode. (ROP_WRITES_DEPENDING_ON_APP, ROP_NEVER_WRITES, ROP_ALWAYS_WRITES) +rop.writingMode=ROP_ALWAYS_WRITES + +# Message used in logging component as default +default.log.message=Could not load error catalog message +# Default description for unexpected exceptions +default.error.description=No se puede cargar la descripcion del error +# Number of retries to insert in DB a new Record Operation +rop.num.entries=3 +# Number of retries to insert in DB a new Journal Operation +journal.num.entries=3 +# Application code size (For error catalog code) +error.catalog.code.application.code.size=4 +# Error type size (For error catalog code) +error.catalog.code.error.type.size=1 +# Error code size (For error catalog code) +error.catalog.code.error.code.size=8 +# OTMA Error code size (For error catalog code) +error.catalog.code.error.code.start.otma=5 +# Size of the catalog of errors +error.catalog.code.size=13 +# Size of the PG catalog of errors +error.catalog.code.pg.size=12 +# Default error description size +error.description.size=80 +# Path for the xml Record Operation files (Files with ROP that could be saved) +rop.path=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +journal.path=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +journal.persistence.type=ELARA +# Default channel for channel handler component +channel.handler.channel=0 +# Default service for channel handler component +channel.handler.service=0 +# Default environ for channel handler component +channel.handler.environ=0 +# Mail version service for ESB +esb.mail.service.version=1 +# SMS version service for ESB +esb.sms.service.version=1 +# Default priority for SMSs +default.sms.priority=0 +# Default priority for Emails +default.email.priority=0 +# Path for attachments files (For emails) +attachments.path=/attachments +# [Hit counter] Maximum counter store size +max.counter.size=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +counter.elements.after.remove=10 +# Timeout for WS connections +ws.connect.timeout=3000 +# Timeout for WS requests +ws.request.timeout=3000 +# Timeout for transaction executions (milliseconds) +transaction.timeout=5000 +# Default message for multilanguage responses +multilanguage.default.message=Could not load multilanguage response +# Multilanguage file name +multilanguage.file.name=multilanguage- +#Timeout in query. +query.timeout=4 +#MaxRows in a query. +query.maxrows=5000 +# Banking session flag +banking.session.flag=SCHEDULER +# PS9 properties +ps9.uppercase=TRUE +ps9.uppercase.use.header=TRUE +# WS control library properties +control.ws.default.user=e000000 +control.ws.default.pid=999 +# Bundlor properties +arq.bundlor.context.node.ping=/node/ping.do +arq.bundlor.context.node.properties=/node/properties.do +arq.bundlor.context.node.properties.uuaa=/node/propertiesUUAA.do +arq.bundlor.context.node.ping.boot=/node/pingBoot.do +# Transactions repository address +repository.transaction.jar=${arq.bundlor.url}/transaction/download.do?txName= +repository.library.jar=${arq.bundlor.url}/library/download.do?libName= +# Logs Repository address +repository.log.file=${arq.bundlor.url}/uuaa/log/download.do?uuaaName= +# Database properties +database.name=ORACLE +database.showSql=true +jdbc.default.schema=QWPO +# Crypto algorithm +crypto.algorithm=PBEWithMD5AndDES +# Crypto iteration count +crypto.iteration.count=19 +# Passphase for Crypto service +passphase=Accenture1 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 +# LUA script cofiguration +lua.forbidden.funcs=coroutine; module; package : loadlib, seeall; io; os : execute, exit, getenv, remove, rename, setlocale, tmpname; debug +# Symbolic name of topology +org.apache.cxf.dosgi.topology.symbolic.name=cxf-dosgi-ri-topology-manager +# Symbolic name of DOSGi +org.apache.cxf.dosgi.admin.symbolic.name=cxf-dosgi-ri-dsw-cxf +# Property name of filter service +org.apache.cxf.dosgi.ws.property.name=org.apache.cxf.ws.databinding +# Property name of filter service for rest +org.apache.cxf.dosgi.rest.property.name=org.apache.cxf.rs.httpservice.context +# Security service configuration +secured.bundle.categories=library;transaction +transaction.service.filter=com.bbva.elara.utility;com.bbva.elara.transaction;com.bbva.elara.support.provisioning.store.TransactionStoreDelegate;com.bbva.elara.configuration.manager.ConfigurationManager +library.service.filter=com.bbva.elara.utility;com.bbva.elara.control.WSControl + +# Default Locale = es_ES +systemlocale=es_ES +# Country Code for "es_ES" locale = ES +country.es_ES=ES +# language Code for "es_ES" locale = es +language.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +dateformat.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +timezone.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +currency.es_ES=EURO +# Deployed locale = es_ES +localedeploy=es_ES + +# Position of group code last character +group.code.last=3 +# Position of parameter code last character +parameter.code.last=6 +# Binary code representation +binary.code=Binary +# Integer code reprensentation +integer.code=Integer +# Long code representation +long.code=Long +# Double code representation +double.code=Double +# String code representation +string.code=String +# Map format header tag +header.tag=header +# Map format body tag +body.tag=body +# Map format advice tag +advice.tag=advice +# Tag representing Header class +general.header.tag=header +# Tag representing IdLogicTransaction class +id.logic.transaction.tag=idLogicTransaction +# Tag representing TransactionOrigin class +transaction.origin.tag=transactionOrigin +# Parameter separator +parameter.separator=\u003B +# Complex parameter separator +complex.parameter.separator=\u002C +# End request separator +end.request.separator=\\] +# Begin request separator +begin.request.separator=\\[ +# End request separator (Map only) +map.end.request.separator=\u005D +# Begin request separator (Map only) +map.begin.request.separator=\u005B +# Begin complex parameter values +begin.complex.parameter=\u0028 +# End complex parameter values +end.complex.parameter=\u0029 +# Separator between parameter name and value +name.value.separator=\u003D +# Separator between message header and body +head.body.separator= \u0026 +# Header for advice number +header.advice.number=001000 +# Header for advice code +header.advice.code=002001 +# Header for advice description +header.advice.description=002002 +# Advice code header +advice.code.header=code +# Advice description header +advice.description.header=description +# File code representation +file.code=InputStream + +############################################## +# Paths to XML marshallers and unmarshallers # +############################################## + +# Path for standard request +path.standard.request=/META-INF/parser/standardHeaderRequest +# Path for pg request +path.pg.request=/META-INF/parser/headerRequest +# Path for standard response +path.standard.response=/META-INF/parser/standardHeaderResponse +# Path for map request +path.map.request=/META-INF/parser/mapHeaderRequest +# Path for map response +path.map.response=/META-INF/parser/mapHeaderResponse + + + +################################################# +# Old configuration # +################################################# + +url.bundle.action=/connectorTx + +# Message used in logging component as default +DEFAULTLOGMESSAGE=Could not load error catalog message +# IP of the NTP server +NTP_VIRTUAL_HOST=15.150.139.187 +# Port used to get NTP messages +NTP_SERVER_PORT=123 +# Number of seconds that the ntp component waits at NTP server +NTP_TIME_OUT=10 +# Number of seconds that the ntp server waits between +NTP_WAIT_TIME=60 +# Number of seconds of difference between Elara and NTP server which are considered normal +NTP_THRESHOLD=5 +# Number of retries to insert in DB a new Record Operation +ROP_NUM_RETRIES=3 +# Number of retries to insert in DB a new Journal Operation +JOURNAL_NUM_RETRIES=3 +# Application code size (For error catalog code) +ERRORCATALOGCODE_APPLICATIONCODESIZE=4 +# Error type size (For error catalog code) +ERRORCATALOGCODE_ERRORTYPESIZE=1 +# Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODESIZE=8 +# OTMA Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODE_START_OTMA=5 +# Size of the catalog of errors +ERRORCATALOGCODESIZE=13 +# Path for the xml Record Operation files (Files with ROP that could be saved) +ROP_PATH=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +JOURNAL_PATH=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +JOURNAL_PERSISTENCE_TYPE=ELARA +# Channel of the events +EVENT_CHANNEL=0 +# Number used to correlate events +EVENT_CORREL_ID= +# Identifies which environ has been used by an event +EVENT_ENVIRON=13 +# Event mode +EVENT_MODE=O +# Service event code +EVENT_SERVICE=5 +# Source of the event code +EVENT_ORIGIN=0 +# Default event type +EVENT_TYPE_DEFAULT_POSTACTIONS=0 +# Default event type for pre-actions +EVENT_TYPE_DEFAULT_PREACTIONS=1 +# Default event version +EVENT_VERSION_DEFAULT=00 +# Default event client +EVENT_CLIENT_DEFAULT=0 +# Default event client type +EVENT_CLIENT_TYPE_DEFAULT=0 +# Default event No Client +EVENT_NO_CLIENT_DEFAULT=0 +# Default channel for channel handler component +CHANNEL_HANDLER_CHANNEL=0 +# Default service for channel handler component +CHANNEL_HANDLER_SERVICE=0 +# Default environ for channel handler component +CHANNEL_HANDLER_ENVIRON=0 +# Mail version service for ESB +ESB_MAIL_SERVICE_VERSION=1 +# SMS version service for ESB +ESB_SMS_SERVICE_VERSION=1 +# Default priority for SMSs +DEFAULT_SMS_PRIORITY=0 +# Default priority for Emails +DEFAULT_EMAIL_PRIORITY=0 +# Path for attachments files (For emails) +ATTACHMENTS_PATH=/attachments +# [Hit counter] Maximum counter store size +MAX_COUNTER_SIZE=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +COUNTER_ELEMENTS_AFTER_REMOVE=10 + +# Timeout for WS connections +WS_CONNECT_TIMEOUT=3000 +# Timeout for WS requests +WS_REQUEST_TIMEOUT=3000 +# Timeout for transaction executions (milliseconds) +TRANSACTION_TIMEOUT =5000 +# Path where there are SMS xsds +ESB_SMS_PATH =/xsd/SMS_ +# Path where there are Email xsds +ESB_MAIL_PATH =/xsd/Mail_ +# Path where there are ESB's ds xsd +ESB_DS_PATH =/xsd/ds.xsd +# Path where there are ESB's dc xsd +ESB_DC_PATH =/xsd/dc.xsd +# Path where there is the events xsd +EVENTS_XSD_PATH =/xsd/HeaderAndContextEvent.xsd +# Default message for multilanguage responses +MULTILANGUAGE_DEFAULT_MESSAGE=Could not load multilanguage response +# Multilanguage file name +MULTILANGUAGE_FILE_NAME=multilanguage- +# Deletion criteria TQWPOLOG +PERIODIC_REMOVE_TQWPOLOG=10 +# Deletion criteria TQWPOEXR +PERIODIC_REMOVE_TQWPOEXR=1 +#Monitoring Functional Event +FLAG_JMX_EVENT_FUNCTIONAL=true +#Timeout in query. +QUERY_TIMEOUT=4 +#MaxRows in a query. +QUERY_MAXROWS=5000 +# Banking session flag +BANKING_SESSION_FLAG = SCHEDULER +PS9_UPPERCASE=TRUE +PS9_UPPERCASE_USE_HEADER=TRUE +####################################################################################################################### +################################# Database properties ################################ +DATABASE_AUTOCOMIT=false +DATABASE_READONLY=false +DATABASE_TRANSACTION_ISOLATION=-1 +DATABASE_INITIAL_SIZE=0 +DATABASE_NUM_MAX_ACTIVE=200 +DATABASE_MAX_IDLE=0 +DATABASE_MAX_OPEN_PREPARED_STATEMENT=-1 +DATABASE_MAX_WAIT=-1 +DATABASE_MIN_EVICTABLE_IDLE_TIME_MILLIS=1800000 +DATABASE_MIN_IDLE=0 +DATABASE_POOL_PREPARED_STATEMENT=false +DATABASE_TEST_ON_BORROW=true +DATABASE_TEST_ON_RETURN=false +DATABASE_TEST_WHILE_IDLE=false +DATABASE_TIME_BETWEEN_EVICTION_RUNS_MILLIS=-1 +DATABASE_VALIDATION_QUERY=select 1 from dual +DATABASE_NUM_TEST_PER_EVICTION_RUN=3 +DATABASE_ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED=false + +# Position of group code last character +GROUP_CODE_LAST=3 +# Position of parameter code last character +PARAMETER_CODE_LAST=6 +# Binary code representation +BINARY_CODE=Binary +# Integer code reprensentation +INTEGER_CODE=Integer +# Long code representation +LONG_CODE=Long +# Double code representation +DOUBLE_CODE=Double +# String code representation +STRING_CODE=String +# Map format header tag +HEADER_TAG=header +# Map format body tag +BODY_TAG=body +# Map format advice tag +ADVICE_TAG=advice +# Tag representing Header class +GENERAL_HEADER_TAG=header +# Tag representing IdLogicTransaction class +ID_LOGIC_TRANSACTION_TAG=idLogicTransaction +# Tag representing TransactionOrigin class +TRANSACTION_ORIGIN_TAG=transactionOrigin +# Parameter separator +PARAMETER_SEPARATOR = ; +# Complex parameter separator +COMPLEX_PARAMETER_SEPARATOR = , +# End request separator +END_REQUEST_SEPARATOR = \] +# Begin request separator +BEGIN_REQUEST_SEPARATOR = \[ +# End request separator (Map only) +MAP_END_REQUEST_SEPARATOR = ] +# Begin request separator (Map only) +MAP_BEGIN_REQUEST_SEPARATOR = [ +# Begin complex parameter values +BEGIN_COMPLEX_PARAMETER= ( +# End complex parameter values +END_COMPLEX_PARAMETER= ) +# Separator between parameter name and value +NAME_VALUE_SEPARATOR = = +# Separator between message header and body +HEAD_BODY_SEPARATOR = & +# Header for advice number +HEADER_ADVICE_NUMBER=001000 +# Header for advice code +HEADER_ADVICE_CODE=002001 +# Header for advice description +HEADER_ADVICE_DESCRIPTION=002002 +# Advice code header +ADVICE_CODE_HEADER=code +# Advice description header +ADVICE_DESCRIPTION_HEADER=description + +# Default Locale = es_ES +SYSTEMLOCALE=es_ES +# Country Code for "es_ES" locale = ES +COUNTRY.es_ES=ES +# language Code for "es_ES" locale = es +LANGUAGE.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +DATEFORMAT.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +TIMEZONE.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +CURRENCY.es_ES=EURO +# Country Code for "pl_PL" locale = PL +COUNTRY.pl_PL=PL +# language Code for "pl_PL" locale = pl +LANGUAGE.pl_PL=pl +# Date Format for "pl_PL" locale = MM/dd/yyyy +DATEFORMAT.pl_PL=MM/dd/yyyy +# Time Zone for "pl_PL" locale = Europe/Warsaw +TIMEZONE.pl_PL=Europe/Warsaw +# Currency for "pl_PL" locale = DOLLAR +CURRENCY.pl_PL=DOLLAR +# Deployed locale = es_ES +LOCALEDEPLOY=es_ES +# arq type (for evo. utilidades compartidas) +arq.type=ONLINE \ No newline at end of file diff --git a/artifact/transactions/QTDITC9701-CO/src/test/resources/log4j.xml b/artifact/transactions/QTDITC9701-CO/src/test/resources/log4j.xml new file mode 100644 index 0000000..215502b --- /dev/null +++ b/artifact/transactions/QTDITC9701-CO/src/test/resources/log4j.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9801-CO/.classpath b/artifact/transactions/QTDITC9801-CO/.classpath new file mode 100644 index 0000000..fae1a2b --- /dev/null +++ b/artifact/transactions/QTDITC9801-CO/.classpath @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9801-CO/.project b/artifact/transactions/QTDITC9801-CO/.project new file mode 100644 index 0000000..52b94d4 --- /dev/null +++ b/artifact/transactions/QTDITC9801-CO/.project @@ -0,0 +1,29 @@ + + + QTDITC9801-CO + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + org.springframework.ide.eclipse.core.springbuilder + + + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/artifact/transactions/QTDITC9801-CO/.settings/org.eclipse.core.resources.prefs b/artifact/transactions/QTDITC9801-CO/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..29abf99 --- /dev/null +++ b/artifact/transactions/QTDITC9801-CO/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding//src/test/java=UTF-8 +encoding//src/test/resources=UTF-8 +encoding/=UTF-8 diff --git a/artifact/transactions/QTDITC9801-CO/.settings/org.eclipse.jdt.core.prefs b/artifact/transactions/QTDITC9801-CO/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..714351a --- /dev/null +++ b/artifact/transactions/QTDITC9801-CO/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/artifact/transactions/QTDITC9801-CO/pom.xml b/artifact/transactions/QTDITC9801-CO/pom.xml new file mode 100644 index 0000000..951a4d7 --- /dev/null +++ b/artifact/transactions/QTDITC9801-CO/pom.xml @@ -0,0 +1,224 @@ + + 4.0.0 + + com.bbva.qtdi + TRANSACTIONS + 0.0.1 + + com.bbva.qtdi + QTDITC98 + 01-CO + GET support-document-types + + 0.0 + + + + com.bbva.elara + elara-transaction + ${apx.core.online.version} + compile + + + com.bbva.elara + elara-test + ${apx.core.online.version} + test + + + org.eclipse.persistence + org.eclipse.persistence.jpa + test + + + org.springframework + spring-test + test + + + org.springframework + spring-beans + test + + + org.springframework + spring-tx + test + + + org.mockito + mockito-all + test + + + com.google.guava + guava + test + + + com.bbva.qtdi + QTDIRC02 + 0.0.1 + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.felix + maven-bundle-plugin + [2.3.7,) + + manifest + + + + + + + + + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + bundle-manifest + process-classes + + manifest + + + + + + jar + + + ${project.artifactId}-${project.version} + com.bbva.qtdi.QTDITC9801COTransaction + transaction + com.bbva.elara.*;version="${arc.osgi.version}", + *;version="${arc.osgi.version}" + + + + + maven-jar-plugin + 2.3.1 + + ${project.artifactId}-${project.version} + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + maven-resources-plugin + + + copy-resources + install + + copy-resources + + + ${project.build.directory}/config + + + src/main/resources + + **/database-${project.artifactId}-${project.version}.properties + **/database-passw-${project.artifactId}-${project.version}.properties + **/${project.artifactId}-${project.version}.properties + + + + + + + + + maven-antrun-plugin + + + install + + run + + + + + + + + + + + org.jacoco + jacoco-maven-plugin + 0.7.7.201606060606 + + + default-prepare-agent + + prepare-agent + + + + default-prepare-agent-integration + + prepare-agent-integration + + + + default-report + + report + + + + default-report-integration + + report-integration + + + + default-check + + check + + + + + BUNDLE + + + ${jacoco.type.coverage} + COVEREDRATIO + ${jacoco.no.coverage} + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9801-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9801COTransaction.java b/artifact/transactions/QTDITC9801-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9801COTransaction.java new file mode 100644 index 0000000..a0dfb4c --- /dev/null +++ b/artifact/transactions/QTDITC9801-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9801COTransaction.java @@ -0,0 +1,16 @@ +package com.bbva.qtdi; + + +import com.bbva.elara.transaction.AbstractTransaction; + +public abstract class AbstractQTDITC9801COTransaction extends AbstractTransaction { + + public AbstractQTDITC9801COTransaction(){ + } + + + + + + +} diff --git a/artifact/transactions/QTDITC9801-CO/src/main/java/com/bbva/qtdi/QTDITC9801COTransaction.java b/artifact/transactions/QTDITC9801-CO/src/main/java/com/bbva/qtdi/QTDITC9801COTransaction.java new file mode 100644 index 0000000..ef65afb --- /dev/null +++ b/artifact/transactions/QTDITC9801-CO/src/main/java/com/bbva/qtdi/QTDITC9801COTransaction.java @@ -0,0 +1,21 @@ +/** + * + */ +package com.bbva.qtdi; +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +/** + * GET support-document-types + * Business Logic implementation. + * @author Novatec Solutions + * + */ +public class QTDITC9801COTransaction extends AbstractQTDITC9801COTransaction { + + @Override + public void execute() { + QTDIRC02 qtdiRC02 = (QTDIRC02)getServiceLibrary(QTDIRC02.class); + // TODO + } + +} diff --git a/artifact/transactions/QTDITC9801-CO/src/main/resources/META-INF/MANIFEST.MF b/artifact/transactions/QTDITC9801-CO/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9801-CO/src/main/resources/QTDITC98-01-CO.xml b/artifact/transactions/QTDITC9801-CO/src/main/resources/QTDITC98-01-CO.xml new file mode 100644 index 0000000..c541ed0 --- /dev/null +++ b/artifact/transactions/QTDITC9801-CO/src/main/resources/QTDITC98-01-CO.xml @@ -0,0 +1 @@ +GET support-document-types \ No newline at end of file diff --git a/artifact/transactions/QTDITC9801-CO/src/main/resources/multilanguage-CO.properties b/artifact/transactions/QTDITC9801-CO/src/main/resources/multilanguage-CO.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9801-CO/src/test/java/com/bbva/qtdi/QTDITC9801COTransactionTest.java b/artifact/transactions/QTDITC9801-CO/src/test/java/com/bbva/qtdi/QTDITC9801COTransactionTest.java new file mode 100644 index 0000000..67d31df --- /dev/null +++ b/artifact/transactions/QTDITC9801-CO/src/test/java/com/bbva/qtdi/QTDITC9801COTransactionTest.java @@ -0,0 +1,100 @@ +package com.bbva.qtdi; + + +import java.util.ArrayList; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mockito; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import com.bbva.elara.domain.transaction.Context; +import com.bbva.elara.domain.transaction.ParameterTable; +import com.bbva.elara.domain.transaction.TransactionParameter; +import com.bbva.elara.domain.transaction.request.TransactionRequest; +import com.bbva.elara.domain.transaction.request.body.CommonRequestBody; +import com.bbva.elara.test.osgi.DummyBundleContext; + + +/** + * Test for transaction QTDITC9801COTransaction + */ +@RunWith(SpringJUnit4ClassRunner.class) +@ContextConfiguration(locations = { + "classpath:/META-INF/spring/elara-test.xml", + "classpath:/META-INF/spring/QTDITC9801COTest.xml" }) +public class QTDITC9801COTransactionTest { + private static final Logger LOGGER = LoggerFactory.getLogger(QTDITC9801COTransactionTest.class); + + @Autowired + private QTDITC9801COTransaction transaction; + + @Resource(name="dummyBundleContext") + private DummyBundleContext bundleContext; + + private TransactionRequest transactionRequest; + + + @Before + public void initializeClass() throws Exception { + this.transaction.start(bundleContext); + + // Initializing transaction to test + this.transaction.setContext(new Context()); + this.transaction.getContext().setLanguageCode("ES"); + + transactionRequest = Mockito.mock(TransactionRequest.class); + CommonRequestBody commonRequestBody = new CommonRequestBody(); + commonRequestBody.setTransactionParameters(new ArrayList()); + transactionRequest.setBody(commonRequestBody); + Mockito.when(transactionRequest.getRestfulMethod()).thenReturn(null); + this.transaction.getContext().setTransactionRequest(transactionRequest); + + } + + @Test + public void testNotNull(){ + Assert.assertNotNull(this.transaction); + //The method getRestfulMethod() will return null by default. To test other methods add a line like this + //Mockito.when(transactionRequest.getRestfulMethod()).thenReturn("getBancos"); + this.transaction.execute(); + } + + + private void addTable(final String key, final List> table) { + ParameterTable parameterTable = new ParameterTable(); + parameterTable.setParameterTableList(table); + this.addParameter(key, parameterTable); + } + + private void addParameter(final String parameter, final Object value) { + final TransactionParameter tParameter = new TransactionParameter( + parameter, value); + transaction.getContext().getParameterList().put(parameter, tParameter); + } + + private Object getParameter(final String parameter) { + final TransactionParameter param = transaction.getContext() + .getParameterList().get(parameter); + return param.getValue(); + } + + private Object getTableParameter(final int rowNumber, final String table, final String key) + { + ParameterTable param = (ParameterTable)getParameter(table); + Map row = param.get(rowNumber); + return row.get(key); + } +} diff --git a/artifact/transactions/QTDITC9801-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java b/artifact/transactions/QTDITC9801-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java new file mode 100644 index 0000000..c9d694e --- /dev/null +++ b/artifact/transactions/QTDITC9801-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +public class QTDIRC02Mock implements QTDIRC02 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDITC9801-CO/src/test/resources/META-INF/spring/QTDITC9801COTest.xml b/artifact/transactions/QTDITC9801-CO/src/test/resources/META-INF/spring/QTDITC9801COTest.xml new file mode 100644 index 0000000..af7af2b --- /dev/null +++ b/artifact/transactions/QTDITC9801-CO/src/test/resources/META-INF/spring/QTDITC9801COTest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + classpath:/common-env.properties + classpath:/QTDI.properties + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9801-CO/src/test/resources/QTDI.properties b/artifact/transactions/QTDITC9801-CO/src/test/resources/QTDI.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9801-CO/src/test/resources/common-env.properties b/artifact/transactions/QTDITC9801-CO/src/test/resources/common-env.properties new file mode 100644 index 0000000..c44cc81 --- /dev/null +++ b/artifact/transactions/QTDITC9801-CO/src/test/resources/common-env.properties @@ -0,0 +1,545 @@ +######################### +# MQ manager definition # +######################### + +# MQ host name +mq.host.name=ADMBM101 +# MQ host port +mq.host.port=1414 +# MQ host channel +nq.host.channel=CLNT.QWPO.ES +# MQ host manager +mq.host.manager=QMDESM01 +# MQ default program +mq.default.program=QC1CDPL + +####################### +# External MQ queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.mq=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.mq=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.mq=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.mq=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.xml.xaq.mq=PRE.QWPO.XAQ_XML.QWR001 + +############################### +# Session queue configuration # +############################### + +# Name of the MQ queue where is sent the change of session message +session.queue.name=PRE.IMS.QWPO.QWR001 + +###################### +# JMS message broker # +###################### + +# IP address of JMS broker for external queues +ip.external.broker=${mq.host.name}:${mq.host.port}::${mq.host.manager}:${mq.host.channel} + +####################### +# External JMS queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.jms=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.jms=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.jms=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.jms=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for XML-formatted messages over XAQ logical protocol +queue.xml.xaq.jms=PRE.QWPO.XAQ_XML.QWR001 +# Queue for XML-formatted messages over Generic logical protocol +queue.xml.generic.jms=PRE.QWPO.GENERIC_XML.QWR001 +# Queue used to send events +event.queue=DYD.QTGE.RECEP.SUCESOS.QWR001 +# Queue used to send emails and sms by ESB +esb.queue=DYD.ANYNORESP.ESB.QWR001 + +################################# +# SOAP-JMS queues configuration # +################################# + +tibco.ems.queue.name.esb.elara.generic=queue.sample.generic +tibco.ems.queue.name.esb.elara.otma=queue.sample.otma +tibco.ems.queue.name.esb.elara.otma.pg=queue.sample.otmapg +tibco.ems.queue.name.esb.elara.ps9=queue.sample.ps9 +tibco.ems.queue.name.esb.elara.xaq=queue.sample.xaq + +########################### +# Tibco EMS configuration # +########################### + +tibco.ems.url= +tibco.ems.user= +tibco.ems.passw= + +# Bundlor URL +arq.bundlor.url=http://localhost:8101/qwjr_mult_mult_01/ +# Activate or deactivate session change through JMS queue +jms.listener.activated=true +# NTP +ntp.host=15.150.139.187 +ntp.port=123 +ntp.timeOut=10 +ntp.waitTime=60 +ntp.threshold=5 +# Scheduler configuration +scheduler.bundleCleanerTrigger.cronExpression=0 0/5 * * * ? +scheduler.nodeArchitectureControllerTrigger.cronExpression=15 0/1 * * * ? +scheduler.ntpServiceTrigger.cronExpression=0 1 08,20 * * ? +scheduler.sessionLocalModeTrigger.cronExpression=0 0/5 * * * ? +# JMS +jms.poolexecutor.corepoolsize=10 +jms.poolexecutor.maxpoolsize=10 +jms.poolexecutor.keepaliveseconds=1 +jms.listener.concurrency=2-10 +jms.listener.idletaskexecutionlimit=1 +jms.listener.idleconsumerlimit=1 +# Disruptor +disruptor.in.consumers=5 +disruptor.out.consumers=5 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 + +# Pass for the console +felix.webconsole.password=AdminCore +# Value to indicate the ROP writing mode. (ROP_WRITES_DEPENDING_ON_APP, ROP_NEVER_WRITES, ROP_ALWAYS_WRITES) +rop.writingMode=ROP_ALWAYS_WRITES + +# Message used in logging component as default +default.log.message=Could not load error catalog message +# Default description for unexpected exceptions +default.error.description=No se puede cargar la descripcion del error +# Number of retries to insert in DB a new Record Operation +rop.num.entries=3 +# Number of retries to insert in DB a new Journal Operation +journal.num.entries=3 +# Application code size (For error catalog code) +error.catalog.code.application.code.size=4 +# Error type size (For error catalog code) +error.catalog.code.error.type.size=1 +# Error code size (For error catalog code) +error.catalog.code.error.code.size=8 +# OTMA Error code size (For error catalog code) +error.catalog.code.error.code.start.otma=5 +# Size of the catalog of errors +error.catalog.code.size=13 +# Size of the PG catalog of errors +error.catalog.code.pg.size=12 +# Default error description size +error.description.size=80 +# Path for the xml Record Operation files (Files with ROP that could be saved) +rop.path=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +journal.path=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +journal.persistence.type=ELARA +# Default channel for channel handler component +channel.handler.channel=0 +# Default service for channel handler component +channel.handler.service=0 +# Default environ for channel handler component +channel.handler.environ=0 +# Mail version service for ESB +esb.mail.service.version=1 +# SMS version service for ESB +esb.sms.service.version=1 +# Default priority for SMSs +default.sms.priority=0 +# Default priority for Emails +default.email.priority=0 +# Path for attachments files (For emails) +attachments.path=/attachments +# [Hit counter] Maximum counter store size +max.counter.size=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +counter.elements.after.remove=10 +# Timeout for WS connections +ws.connect.timeout=3000 +# Timeout for WS requests +ws.request.timeout=3000 +# Timeout for transaction executions (milliseconds) +transaction.timeout=5000 +# Default message for multilanguage responses +multilanguage.default.message=Could not load multilanguage response +# Multilanguage file name +multilanguage.file.name=multilanguage- +#Timeout in query. +query.timeout=4 +#MaxRows in a query. +query.maxrows=5000 +# Banking session flag +banking.session.flag=SCHEDULER +# PS9 properties +ps9.uppercase=TRUE +ps9.uppercase.use.header=TRUE +# WS control library properties +control.ws.default.user=e000000 +control.ws.default.pid=999 +# Bundlor properties +arq.bundlor.context.node.ping=/node/ping.do +arq.bundlor.context.node.properties=/node/properties.do +arq.bundlor.context.node.properties.uuaa=/node/propertiesUUAA.do +arq.bundlor.context.node.ping.boot=/node/pingBoot.do +# Transactions repository address +repository.transaction.jar=${arq.bundlor.url}/transaction/download.do?txName= +repository.library.jar=${arq.bundlor.url}/library/download.do?libName= +# Logs Repository address +repository.log.file=${arq.bundlor.url}/uuaa/log/download.do?uuaaName= +# Database properties +database.name=ORACLE +database.showSql=true +jdbc.default.schema=QWPO +# Crypto algorithm +crypto.algorithm=PBEWithMD5AndDES +# Crypto iteration count +crypto.iteration.count=19 +# Passphase for Crypto service +passphase=Accenture1 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 +# LUA script cofiguration +lua.forbidden.funcs=coroutine; module; package : loadlib, seeall; io; os : execute, exit, getenv, remove, rename, setlocale, tmpname; debug +# Symbolic name of topology +org.apache.cxf.dosgi.topology.symbolic.name=cxf-dosgi-ri-topology-manager +# Symbolic name of DOSGi +org.apache.cxf.dosgi.admin.symbolic.name=cxf-dosgi-ri-dsw-cxf +# Property name of filter service +org.apache.cxf.dosgi.ws.property.name=org.apache.cxf.ws.databinding +# Property name of filter service for rest +org.apache.cxf.dosgi.rest.property.name=org.apache.cxf.rs.httpservice.context +# Security service configuration +secured.bundle.categories=library;transaction +transaction.service.filter=com.bbva.elara.utility;com.bbva.elara.transaction;com.bbva.elara.support.provisioning.store.TransactionStoreDelegate;com.bbva.elara.configuration.manager.ConfigurationManager +library.service.filter=com.bbva.elara.utility;com.bbva.elara.control.WSControl + +# Default Locale = es_ES +systemlocale=es_ES +# Country Code for "es_ES" locale = ES +country.es_ES=ES +# language Code for "es_ES" locale = es +language.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +dateformat.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +timezone.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +currency.es_ES=EURO +# Deployed locale = es_ES +localedeploy=es_ES + +# Position of group code last character +group.code.last=3 +# Position of parameter code last character +parameter.code.last=6 +# Binary code representation +binary.code=Binary +# Integer code reprensentation +integer.code=Integer +# Long code representation +long.code=Long +# Double code representation +double.code=Double +# String code representation +string.code=String +# Map format header tag +header.tag=header +# Map format body tag +body.tag=body +# Map format advice tag +advice.tag=advice +# Tag representing Header class +general.header.tag=header +# Tag representing IdLogicTransaction class +id.logic.transaction.tag=idLogicTransaction +# Tag representing TransactionOrigin class +transaction.origin.tag=transactionOrigin +# Parameter separator +parameter.separator=\u003B +# Complex parameter separator +complex.parameter.separator=\u002C +# End request separator +end.request.separator=\\] +# Begin request separator +begin.request.separator=\\[ +# End request separator (Map only) +map.end.request.separator=\u005D +# Begin request separator (Map only) +map.begin.request.separator=\u005B +# Begin complex parameter values +begin.complex.parameter=\u0028 +# End complex parameter values +end.complex.parameter=\u0029 +# Separator between parameter name and value +name.value.separator=\u003D +# Separator between message header and body +head.body.separator= \u0026 +# Header for advice number +header.advice.number=001000 +# Header for advice code +header.advice.code=002001 +# Header for advice description +header.advice.description=002002 +# Advice code header +advice.code.header=code +# Advice description header +advice.description.header=description +# File code representation +file.code=InputStream + +############################################## +# Paths to XML marshallers and unmarshallers # +############################################## + +# Path for standard request +path.standard.request=/META-INF/parser/standardHeaderRequest +# Path for pg request +path.pg.request=/META-INF/parser/headerRequest +# Path for standard response +path.standard.response=/META-INF/parser/standardHeaderResponse +# Path for map request +path.map.request=/META-INF/parser/mapHeaderRequest +# Path for map response +path.map.response=/META-INF/parser/mapHeaderResponse + + + +################################################# +# Old configuration # +################################################# + +url.bundle.action=/connectorTx + +# Message used in logging component as default +DEFAULTLOGMESSAGE=Could not load error catalog message +# IP of the NTP server +NTP_VIRTUAL_HOST=15.150.139.187 +# Port used to get NTP messages +NTP_SERVER_PORT=123 +# Number of seconds that the ntp component waits at NTP server +NTP_TIME_OUT=10 +# Number of seconds that the ntp server waits between +NTP_WAIT_TIME=60 +# Number of seconds of difference between Elara and NTP server which are considered normal +NTP_THRESHOLD=5 +# Number of retries to insert in DB a new Record Operation +ROP_NUM_RETRIES=3 +# Number of retries to insert in DB a new Journal Operation +JOURNAL_NUM_RETRIES=3 +# Application code size (For error catalog code) +ERRORCATALOGCODE_APPLICATIONCODESIZE=4 +# Error type size (For error catalog code) +ERRORCATALOGCODE_ERRORTYPESIZE=1 +# Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODESIZE=8 +# OTMA Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODE_START_OTMA=5 +# Size of the catalog of errors +ERRORCATALOGCODESIZE=13 +# Path for the xml Record Operation files (Files with ROP that could be saved) +ROP_PATH=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +JOURNAL_PATH=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +JOURNAL_PERSISTENCE_TYPE=ELARA +# Channel of the events +EVENT_CHANNEL=0 +# Number used to correlate events +EVENT_CORREL_ID= +# Identifies which environ has been used by an event +EVENT_ENVIRON=13 +# Event mode +EVENT_MODE=O +# Service event code +EVENT_SERVICE=5 +# Source of the event code +EVENT_ORIGIN=0 +# Default event type +EVENT_TYPE_DEFAULT_POSTACTIONS=0 +# Default event type for pre-actions +EVENT_TYPE_DEFAULT_PREACTIONS=1 +# Default event version +EVENT_VERSION_DEFAULT=00 +# Default event client +EVENT_CLIENT_DEFAULT=0 +# Default event client type +EVENT_CLIENT_TYPE_DEFAULT=0 +# Default event No Client +EVENT_NO_CLIENT_DEFAULT=0 +# Default channel for channel handler component +CHANNEL_HANDLER_CHANNEL=0 +# Default service for channel handler component +CHANNEL_HANDLER_SERVICE=0 +# Default environ for channel handler component +CHANNEL_HANDLER_ENVIRON=0 +# Mail version service for ESB +ESB_MAIL_SERVICE_VERSION=1 +# SMS version service for ESB +ESB_SMS_SERVICE_VERSION=1 +# Default priority for SMSs +DEFAULT_SMS_PRIORITY=0 +# Default priority for Emails +DEFAULT_EMAIL_PRIORITY=0 +# Path for attachments files (For emails) +ATTACHMENTS_PATH=/attachments +# [Hit counter] Maximum counter store size +MAX_COUNTER_SIZE=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +COUNTER_ELEMENTS_AFTER_REMOVE=10 + +# Timeout for WS connections +WS_CONNECT_TIMEOUT=3000 +# Timeout for WS requests +WS_REQUEST_TIMEOUT=3000 +# Timeout for transaction executions (milliseconds) +TRANSACTION_TIMEOUT =5000 +# Path where there are SMS xsds +ESB_SMS_PATH =/xsd/SMS_ +# Path where there are Email xsds +ESB_MAIL_PATH =/xsd/Mail_ +# Path where there are ESB's ds xsd +ESB_DS_PATH =/xsd/ds.xsd +# Path where there are ESB's dc xsd +ESB_DC_PATH =/xsd/dc.xsd +# Path where there is the events xsd +EVENTS_XSD_PATH =/xsd/HeaderAndContextEvent.xsd +# Default message for multilanguage responses +MULTILANGUAGE_DEFAULT_MESSAGE=Could not load multilanguage response +# Multilanguage file name +MULTILANGUAGE_FILE_NAME=multilanguage- +# Deletion criteria TQWPOLOG +PERIODIC_REMOVE_TQWPOLOG=10 +# Deletion criteria TQWPOEXR +PERIODIC_REMOVE_TQWPOEXR=1 +#Monitoring Functional Event +FLAG_JMX_EVENT_FUNCTIONAL=true +#Timeout in query. +QUERY_TIMEOUT=4 +#MaxRows in a query. +QUERY_MAXROWS=5000 +# Banking session flag +BANKING_SESSION_FLAG = SCHEDULER +PS9_UPPERCASE=TRUE +PS9_UPPERCASE_USE_HEADER=TRUE +####################################################################################################################### +################################# Database properties ################################ +DATABASE_AUTOCOMIT=false +DATABASE_READONLY=false +DATABASE_TRANSACTION_ISOLATION=-1 +DATABASE_INITIAL_SIZE=0 +DATABASE_NUM_MAX_ACTIVE=200 +DATABASE_MAX_IDLE=0 +DATABASE_MAX_OPEN_PREPARED_STATEMENT=-1 +DATABASE_MAX_WAIT=-1 +DATABASE_MIN_EVICTABLE_IDLE_TIME_MILLIS=1800000 +DATABASE_MIN_IDLE=0 +DATABASE_POOL_PREPARED_STATEMENT=false +DATABASE_TEST_ON_BORROW=true +DATABASE_TEST_ON_RETURN=false +DATABASE_TEST_WHILE_IDLE=false +DATABASE_TIME_BETWEEN_EVICTION_RUNS_MILLIS=-1 +DATABASE_VALIDATION_QUERY=select 1 from dual +DATABASE_NUM_TEST_PER_EVICTION_RUN=3 +DATABASE_ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED=false + +# Position of group code last character +GROUP_CODE_LAST=3 +# Position of parameter code last character +PARAMETER_CODE_LAST=6 +# Binary code representation +BINARY_CODE=Binary +# Integer code reprensentation +INTEGER_CODE=Integer +# Long code representation +LONG_CODE=Long +# Double code representation +DOUBLE_CODE=Double +# String code representation +STRING_CODE=String +# Map format header tag +HEADER_TAG=header +# Map format body tag +BODY_TAG=body +# Map format advice tag +ADVICE_TAG=advice +# Tag representing Header class +GENERAL_HEADER_TAG=header +# Tag representing IdLogicTransaction class +ID_LOGIC_TRANSACTION_TAG=idLogicTransaction +# Tag representing TransactionOrigin class +TRANSACTION_ORIGIN_TAG=transactionOrigin +# Parameter separator +PARAMETER_SEPARATOR = ; +# Complex parameter separator +COMPLEX_PARAMETER_SEPARATOR = , +# End request separator +END_REQUEST_SEPARATOR = \] +# Begin request separator +BEGIN_REQUEST_SEPARATOR = \[ +# End request separator (Map only) +MAP_END_REQUEST_SEPARATOR = ] +# Begin request separator (Map only) +MAP_BEGIN_REQUEST_SEPARATOR = [ +# Begin complex parameter values +BEGIN_COMPLEX_PARAMETER= ( +# End complex parameter values +END_COMPLEX_PARAMETER= ) +# Separator between parameter name and value +NAME_VALUE_SEPARATOR = = +# Separator between message header and body +HEAD_BODY_SEPARATOR = & +# Header for advice number +HEADER_ADVICE_NUMBER=001000 +# Header for advice code +HEADER_ADVICE_CODE=002001 +# Header for advice description +HEADER_ADVICE_DESCRIPTION=002002 +# Advice code header +ADVICE_CODE_HEADER=code +# Advice description header +ADVICE_DESCRIPTION_HEADER=description + +# Default Locale = es_ES +SYSTEMLOCALE=es_ES +# Country Code for "es_ES" locale = ES +COUNTRY.es_ES=ES +# language Code for "es_ES" locale = es +LANGUAGE.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +DATEFORMAT.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +TIMEZONE.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +CURRENCY.es_ES=EURO +# Country Code for "pl_PL" locale = PL +COUNTRY.pl_PL=PL +# language Code for "pl_PL" locale = pl +LANGUAGE.pl_PL=pl +# Date Format for "pl_PL" locale = MM/dd/yyyy +DATEFORMAT.pl_PL=MM/dd/yyyy +# Time Zone for "pl_PL" locale = Europe/Warsaw +TIMEZONE.pl_PL=Europe/Warsaw +# Currency for "pl_PL" locale = DOLLAR +CURRENCY.pl_PL=DOLLAR +# Deployed locale = es_ES +LOCALEDEPLOY=es_ES +# arq type (for evo. utilidades compartidas) +arq.type=ONLINE \ No newline at end of file diff --git a/artifact/transactions/QTDITC9801-CO/src/test/resources/log4j.xml b/artifact/transactions/QTDITC9801-CO/src/test/resources/log4j.xml new file mode 100644 index 0000000..215502b --- /dev/null +++ b/artifact/transactions/QTDITC9801-CO/src/test/resources/log4j.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9901-CO/.classpath b/artifact/transactions/QTDITC9901-CO/.classpath new file mode 100644 index 0000000..fae1a2b --- /dev/null +++ b/artifact/transactions/QTDITC9901-CO/.classpath @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9901-CO/.project b/artifact/transactions/QTDITC9901-CO/.project new file mode 100644 index 0000000..1fca130 --- /dev/null +++ b/artifact/transactions/QTDITC9901-CO/.project @@ -0,0 +1,29 @@ + + + QTDITC9901-CO + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + org.springframework.ide.eclipse.core.springbuilder + + + + + + org.springframework.ide.eclipse.core.springnature + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/artifact/transactions/QTDITC9901-CO/.settings/org.eclipse.core.resources.prefs b/artifact/transactions/QTDITC9901-CO/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..29abf99 --- /dev/null +++ b/artifact/transactions/QTDITC9901-CO/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding//src/test/java=UTF-8 +encoding//src/test/resources=UTF-8 +encoding/=UTF-8 diff --git a/artifact/transactions/QTDITC9901-CO/.settings/org.eclipse.jdt.core.prefs b/artifact/transactions/QTDITC9901-CO/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..714351a --- /dev/null +++ b/artifact/transactions/QTDITC9901-CO/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/artifact/transactions/QTDITC9901-CO/pom.xml b/artifact/transactions/QTDITC9901-CO/pom.xml new file mode 100644 index 0000000..4cd7014 --- /dev/null +++ b/artifact/transactions/QTDITC9901-CO/pom.xml @@ -0,0 +1,224 @@ + + 4.0.0 + + com.bbva.qtdi + TRANSACTIONS + 0.0.1 + + com.bbva.qtdi + QTDITC99 + 01-CO + POST support-document-types + + 0.0 + + + + com.bbva.elara + elara-transaction + ${apx.core.online.version} + compile + + + com.bbva.elara + elara-test + ${apx.core.online.version} + test + + + org.eclipse.persistence + org.eclipse.persistence.jpa + test + + + org.springframework + spring-test + test + + + org.springframework + spring-beans + test + + + org.springframework + spring-tx + test + + + org.mockito + mockito-all + test + + + com.google.guava + guava + test + + + com.bbva.qtdi + QTDIRC02 + 0.0.1 + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.felix + maven-bundle-plugin + [2.3.7,) + + manifest + + + + + + + + + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + bundle-manifest + process-classes + + manifest + + + + + + jar + + + ${project.artifactId}-${project.version} + com.bbva.qtdi.QTDITC9901COTransaction + transaction + com.bbva.elara.*;version="${arc.osgi.version}", + *;version="${arc.osgi.version}" + + + + + maven-jar-plugin + 2.3.1 + + ${project.artifactId}-${project.version} + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + maven-resources-plugin + + + copy-resources + install + + copy-resources + + + ${project.build.directory}/config + + + src/main/resources + + **/database-${project.artifactId}-${project.version}.properties + **/database-passw-${project.artifactId}-${project.version}.properties + **/${project.artifactId}-${project.version}.properties + + + + + + + + + maven-antrun-plugin + + + install + + run + + + + + + + + + + + org.jacoco + jacoco-maven-plugin + 0.7.7.201606060606 + + + default-prepare-agent + + prepare-agent + + + + default-prepare-agent-integration + + prepare-agent-integration + + + + default-report + + report + + + + default-report-integration + + report-integration + + + + default-check + + check + + + + + BUNDLE + + + ${jacoco.type.coverage} + COVEREDRATIO + ${jacoco.no.coverage} + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9901-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9901COTransaction.java b/artifact/transactions/QTDITC9901-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9901COTransaction.java new file mode 100644 index 0000000..83e19ed --- /dev/null +++ b/artifact/transactions/QTDITC9901-CO/src/main/java/com/bbva/qtdi/AbstractQTDITC9901COTransaction.java @@ -0,0 +1,16 @@ +package com.bbva.qtdi; + + +import com.bbva.elara.transaction.AbstractTransaction; + +public abstract class AbstractQTDITC9901COTransaction extends AbstractTransaction { + + public AbstractQTDITC9901COTransaction(){ + } + + + + + + +} diff --git a/artifact/transactions/QTDITC9901-CO/src/main/java/com/bbva/qtdi/QTDITC9901COTransaction.java b/artifact/transactions/QTDITC9901-CO/src/main/java/com/bbva/qtdi/QTDITC9901COTransaction.java new file mode 100644 index 0000000..e5bd3e3 --- /dev/null +++ b/artifact/transactions/QTDITC9901-CO/src/main/java/com/bbva/qtdi/QTDITC9901COTransaction.java @@ -0,0 +1,21 @@ +/** + * + */ +package com.bbva.qtdi; +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +/** + * POST support-document-types + * Business Logic implementation. + * @author Novatec Solutions + * + */ +public class QTDITC9901COTransaction extends AbstractQTDITC9901COTransaction { + + @Override + public void execute() { + QTDIRC02 qtdiRC02 = (QTDIRC02)getServiceLibrary(QTDIRC02.class); + // TODO + } + +} diff --git a/artifact/transactions/QTDITC9901-CO/src/main/resources/META-INF/MANIFEST.MF b/artifact/transactions/QTDITC9901-CO/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9901-CO/src/main/resources/QTDITC99-01-CO.xml b/artifact/transactions/QTDITC9901-CO/src/main/resources/QTDITC99-01-CO.xml new file mode 100644 index 0000000..3271a2b --- /dev/null +++ b/artifact/transactions/QTDITC9901-CO/src/main/resources/QTDITC99-01-CO.xml @@ -0,0 +1 @@ +POST support-document-types \ No newline at end of file diff --git a/artifact/transactions/QTDITC9901-CO/src/main/resources/multilanguage-CO.properties b/artifact/transactions/QTDITC9901-CO/src/main/resources/multilanguage-CO.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9901-CO/src/test/java/com/bbva/qtdi/QTDITC9901COTransactionTest.java b/artifact/transactions/QTDITC9901-CO/src/test/java/com/bbva/qtdi/QTDITC9901COTransactionTest.java new file mode 100644 index 0000000..0fe5c06 --- /dev/null +++ b/artifact/transactions/QTDITC9901-CO/src/test/java/com/bbva/qtdi/QTDITC9901COTransactionTest.java @@ -0,0 +1,100 @@ +package com.bbva.qtdi; + + +import java.util.ArrayList; + +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mockito; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.test.context.ContextConfiguration; +import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Resource; + +import com.bbva.elara.domain.transaction.Context; +import com.bbva.elara.domain.transaction.ParameterTable; +import com.bbva.elara.domain.transaction.TransactionParameter; +import com.bbva.elara.domain.transaction.request.TransactionRequest; +import com.bbva.elara.domain.transaction.request.body.CommonRequestBody; +import com.bbva.elara.test.osgi.DummyBundleContext; + + +/** + * Test for transaction QTDITC9901COTransaction + */ +@RunWith(SpringJUnit4ClassRunner.class) +@ContextConfiguration(locations = { + "classpath:/META-INF/spring/elara-test.xml", + "classpath:/META-INF/spring/QTDITC9901COTest.xml" }) +public class QTDITC9901COTransactionTest { + private static final Logger LOGGER = LoggerFactory.getLogger(QTDITC9901COTransactionTest.class); + + @Autowired + private QTDITC9901COTransaction transaction; + + @Resource(name="dummyBundleContext") + private DummyBundleContext bundleContext; + + private TransactionRequest transactionRequest; + + + @Before + public void initializeClass() throws Exception { + this.transaction.start(bundleContext); + + // Initializing transaction to test + this.transaction.setContext(new Context()); + this.transaction.getContext().setLanguageCode("ES"); + + transactionRequest = Mockito.mock(TransactionRequest.class); + CommonRequestBody commonRequestBody = new CommonRequestBody(); + commonRequestBody.setTransactionParameters(new ArrayList()); + transactionRequest.setBody(commonRequestBody); + Mockito.when(transactionRequest.getRestfulMethod()).thenReturn(null); + this.transaction.getContext().setTransactionRequest(transactionRequest); + + } + + @Test + public void testNotNull(){ + Assert.assertNotNull(this.transaction); + //The method getRestfulMethod() will return null by default. To test other methods add a line like this + //Mockito.when(transactionRequest.getRestfulMethod()).thenReturn("getBancos"); + this.transaction.execute(); + } + + + private void addTable(final String key, final List> table) { + ParameterTable parameterTable = new ParameterTable(); + parameterTable.setParameterTableList(table); + this.addParameter(key, parameterTable); + } + + private void addParameter(final String parameter, final Object value) { + final TransactionParameter tParameter = new TransactionParameter( + parameter, value); + transaction.getContext().getParameterList().put(parameter, tParameter); + } + + private Object getParameter(final String parameter) { + final TransactionParameter param = transaction.getContext() + .getParameterList().get(parameter); + return param.getValue(); + } + + private Object getTableParameter(final int rowNumber, final String table, final String key) + { + ParameterTable param = (ParameterTable)getParameter(table); + Map row = param.get(rowNumber); + return row.get(key); + } +} diff --git a/artifact/transactions/QTDITC9901-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java b/artifact/transactions/QTDITC9901-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java new file mode 100644 index 0000000..c9d694e --- /dev/null +++ b/artifact/transactions/QTDITC9901-CO/src/test/java/com/bbva/qtdi/mock/QTDIRC02Mock.java @@ -0,0 +1,26 @@ +package com.bbva.qtdi.mock; + +import com.bbva.qtdi.lib.rc02.QTDIRC02; + +public class QTDIRC02Mock implements QTDIRC02 { + + //Anadir todos los execute que tenga la interfaz de la libreria + // + // @Override + // public valor_de_retorno execute...(Parametro1 param1,...) { + // + // ... + // + // } + + + //Metodo execute generado por defecto + + @Override + public void execute() { + + //Anadir codigo de retorno + + } + +} diff --git a/artifact/transactions/QTDITC9901-CO/src/test/resources/META-INF/spring/QTDITC9901COTest.xml b/artifact/transactions/QTDITC9901-CO/src/test/resources/META-INF/spring/QTDITC9901COTest.xml new file mode 100644 index 0000000..f7b72a3 --- /dev/null +++ b/artifact/transactions/QTDITC9901-CO/src/test/resources/META-INF/spring/QTDITC9901COTest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + classpath:/common-env.properties + classpath:/QTDI.properties + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/artifact/transactions/QTDITC9901-CO/src/test/resources/QTDI.properties b/artifact/transactions/QTDITC9901-CO/src/test/resources/QTDI.properties new file mode 100644 index 0000000..e69de29 diff --git a/artifact/transactions/QTDITC9901-CO/src/test/resources/common-env.properties b/artifact/transactions/QTDITC9901-CO/src/test/resources/common-env.properties new file mode 100644 index 0000000..c44cc81 --- /dev/null +++ b/artifact/transactions/QTDITC9901-CO/src/test/resources/common-env.properties @@ -0,0 +1,545 @@ +######################### +# MQ manager definition # +######################### + +# MQ host name +mq.host.name=ADMBM101 +# MQ host port +mq.host.port=1414 +# MQ host channel +nq.host.channel=CLNT.QWPO.ES +# MQ host manager +mq.host.manager=QMDESM01 +# MQ default program +mq.default.program=QC1CDPL + +####################### +# External MQ queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.mq=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.mq=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.mq=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.mq=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.xml.xaq.mq=PRE.QWPO.XAQ_XML.QWR001 + +############################### +# Session queue configuration # +############################### + +# Name of the MQ queue where is sent the change of session message +session.queue.name=PRE.IMS.QWPO.QWR001 + +###################### +# JMS message broker # +###################### + +# IP address of JMS broker for external queues +ip.external.broker=${mq.host.name}:${mq.host.port}::${mq.host.manager}:${mq.host.channel} + +####################### +# External JMS queues # +####################### + +# Queue for Standard-formatted messages over AQPG logical protocol +queue.standard.aqpg.jms=PRE.QWPO.AQPG_PLANO.QWR001 +# Queue for Map-formatted messages over AQPG logical protocol +queue.map.aqpg.jms=PRE.QWPO.AQPG_HASMAP.QWR001 +# Queue for Standard-formatted messages over XAQ logical protocol +queue.standard.xaq.jms=PRE.QWPO.XAQ_PLANO.QWR001 +# Queue for Map-formatted messages over XAQ logical protocol +queue.map.xaq.jms=PRE.QWPO.XAQ_HASMAP.QWR001 +# Queue for XML-formatted messages over XAQ logical protocol +queue.xml.xaq.jms=PRE.QWPO.XAQ_XML.QWR001 +# Queue for XML-formatted messages over Generic logical protocol +queue.xml.generic.jms=PRE.QWPO.GENERIC_XML.QWR001 +# Queue used to send events +event.queue=DYD.QTGE.RECEP.SUCESOS.QWR001 +# Queue used to send emails and sms by ESB +esb.queue=DYD.ANYNORESP.ESB.QWR001 + +################################# +# SOAP-JMS queues configuration # +################################# + +tibco.ems.queue.name.esb.elara.generic=queue.sample.generic +tibco.ems.queue.name.esb.elara.otma=queue.sample.otma +tibco.ems.queue.name.esb.elara.otma.pg=queue.sample.otmapg +tibco.ems.queue.name.esb.elara.ps9=queue.sample.ps9 +tibco.ems.queue.name.esb.elara.xaq=queue.sample.xaq + +########################### +# Tibco EMS configuration # +########################### + +tibco.ems.url= +tibco.ems.user= +tibco.ems.passw= + +# Bundlor URL +arq.bundlor.url=http://localhost:8101/qwjr_mult_mult_01/ +# Activate or deactivate session change through JMS queue +jms.listener.activated=true +# NTP +ntp.host=15.150.139.187 +ntp.port=123 +ntp.timeOut=10 +ntp.waitTime=60 +ntp.threshold=5 +# Scheduler configuration +scheduler.bundleCleanerTrigger.cronExpression=0 0/5 * * * ? +scheduler.nodeArchitectureControllerTrigger.cronExpression=15 0/1 * * * ? +scheduler.ntpServiceTrigger.cronExpression=0 1 08,20 * * ? +scheduler.sessionLocalModeTrigger.cronExpression=0 0/5 * * * ? +# JMS +jms.poolexecutor.corepoolsize=10 +jms.poolexecutor.maxpoolsize=10 +jms.poolexecutor.keepaliveseconds=1 +jms.listener.concurrency=2-10 +jms.listener.idletaskexecutionlimit=1 +jms.listener.idleconsumerlimit=1 +# Disruptor +disruptor.in.consumers=5 +disruptor.out.consumers=5 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 + +# Pass for the console +felix.webconsole.password=AdminCore +# Value to indicate the ROP writing mode. (ROP_WRITES_DEPENDING_ON_APP, ROP_NEVER_WRITES, ROP_ALWAYS_WRITES) +rop.writingMode=ROP_ALWAYS_WRITES + +# Message used in logging component as default +default.log.message=Could not load error catalog message +# Default description for unexpected exceptions +default.error.description=No se puede cargar la descripcion del error +# Number of retries to insert in DB a new Record Operation +rop.num.entries=3 +# Number of retries to insert in DB a new Journal Operation +journal.num.entries=3 +# Application code size (For error catalog code) +error.catalog.code.application.code.size=4 +# Error type size (For error catalog code) +error.catalog.code.error.type.size=1 +# Error code size (For error catalog code) +error.catalog.code.error.code.size=8 +# OTMA Error code size (For error catalog code) +error.catalog.code.error.code.start.otma=5 +# Size of the catalog of errors +error.catalog.code.size=13 +# Size of the PG catalog of errors +error.catalog.code.pg.size=12 +# Default error description size +error.description.size=80 +# Path for the xml Record Operation files (Files with ROP that could be saved) +rop.path=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +journal.path=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +journal.persistence.type=ELARA +# Default channel for channel handler component +channel.handler.channel=0 +# Default service for channel handler component +channel.handler.service=0 +# Default environ for channel handler component +channel.handler.environ=0 +# Mail version service for ESB +esb.mail.service.version=1 +# SMS version service for ESB +esb.sms.service.version=1 +# Default priority for SMSs +default.sms.priority=0 +# Default priority for Emails +default.email.priority=0 +# Path for attachments files (For emails) +attachments.path=/attachments +# [Hit counter] Maximum counter store size +max.counter.size=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +counter.elements.after.remove=10 +# Timeout for WS connections +ws.connect.timeout=3000 +# Timeout for WS requests +ws.request.timeout=3000 +# Timeout for transaction executions (milliseconds) +transaction.timeout=5000 +# Default message for multilanguage responses +multilanguage.default.message=Could not load multilanguage response +# Multilanguage file name +multilanguage.file.name=multilanguage- +#Timeout in query. +query.timeout=4 +#MaxRows in a query. +query.maxrows=5000 +# Banking session flag +banking.session.flag=SCHEDULER +# PS9 properties +ps9.uppercase=TRUE +ps9.uppercase.use.header=TRUE +# WS control library properties +control.ws.default.user=e000000 +control.ws.default.pid=999 +# Bundlor properties +arq.bundlor.context.node.ping=/node/ping.do +arq.bundlor.context.node.properties=/node/properties.do +arq.bundlor.context.node.properties.uuaa=/node/propertiesUUAA.do +arq.bundlor.context.node.ping.boot=/node/pingBoot.do +# Transactions repository address +repository.transaction.jar=${arq.bundlor.url}/transaction/download.do?txName= +repository.library.jar=${arq.bundlor.url}/library/download.do?libName= +# Logs Repository address +repository.log.file=${arq.bundlor.url}/uuaa/log/download.do?uuaaName= +# Database properties +database.name=ORACLE +database.showSql=true +jdbc.default.schema=QWPO +# Crypto algorithm +crypto.algorithm=PBEWithMD5AndDES +# Crypto iteration count +crypto.iteration.count=19 +# Passphase for Crypto service +passphase=Accenture1 +# Timeouts definition +transaction.service.timeout=5000 +transaction.installation.timeout=5000 +bundle.activation.timeout=5000 +jms.utility.timeout=5000 +arq.boot.timeout=60000 +arq.boot.sleep=10000 +# LUA script cofiguration +lua.forbidden.funcs=coroutine; module; package : loadlib, seeall; io; os : execute, exit, getenv, remove, rename, setlocale, tmpname; debug +# Symbolic name of topology +org.apache.cxf.dosgi.topology.symbolic.name=cxf-dosgi-ri-topology-manager +# Symbolic name of DOSGi +org.apache.cxf.dosgi.admin.symbolic.name=cxf-dosgi-ri-dsw-cxf +# Property name of filter service +org.apache.cxf.dosgi.ws.property.name=org.apache.cxf.ws.databinding +# Property name of filter service for rest +org.apache.cxf.dosgi.rest.property.name=org.apache.cxf.rs.httpservice.context +# Security service configuration +secured.bundle.categories=library;transaction +transaction.service.filter=com.bbva.elara.utility;com.bbva.elara.transaction;com.bbva.elara.support.provisioning.store.TransactionStoreDelegate;com.bbva.elara.configuration.manager.ConfigurationManager +library.service.filter=com.bbva.elara.utility;com.bbva.elara.control.WSControl + +# Default Locale = es_ES +systemlocale=es_ES +# Country Code for "es_ES" locale = ES +country.es_ES=ES +# language Code for "es_ES" locale = es +language.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +dateformat.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +timezone.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +currency.es_ES=EURO +# Deployed locale = es_ES +localedeploy=es_ES + +# Position of group code last character +group.code.last=3 +# Position of parameter code last character +parameter.code.last=6 +# Binary code representation +binary.code=Binary +# Integer code reprensentation +integer.code=Integer +# Long code representation +long.code=Long +# Double code representation +double.code=Double +# String code representation +string.code=String +# Map format header tag +header.tag=header +# Map format body tag +body.tag=body +# Map format advice tag +advice.tag=advice +# Tag representing Header class +general.header.tag=header +# Tag representing IdLogicTransaction class +id.logic.transaction.tag=idLogicTransaction +# Tag representing TransactionOrigin class +transaction.origin.tag=transactionOrigin +# Parameter separator +parameter.separator=\u003B +# Complex parameter separator +complex.parameter.separator=\u002C +# End request separator +end.request.separator=\\] +# Begin request separator +begin.request.separator=\\[ +# End request separator (Map only) +map.end.request.separator=\u005D +# Begin request separator (Map only) +map.begin.request.separator=\u005B +# Begin complex parameter values +begin.complex.parameter=\u0028 +# End complex parameter values +end.complex.parameter=\u0029 +# Separator between parameter name and value +name.value.separator=\u003D +# Separator between message header and body +head.body.separator= \u0026 +# Header for advice number +header.advice.number=001000 +# Header for advice code +header.advice.code=002001 +# Header for advice description +header.advice.description=002002 +# Advice code header +advice.code.header=code +# Advice description header +advice.description.header=description +# File code representation +file.code=InputStream + +############################################## +# Paths to XML marshallers and unmarshallers # +############################################## + +# Path for standard request +path.standard.request=/META-INF/parser/standardHeaderRequest +# Path for pg request +path.pg.request=/META-INF/parser/headerRequest +# Path for standard response +path.standard.response=/META-INF/parser/standardHeaderResponse +# Path for map request +path.map.request=/META-INF/parser/mapHeaderRequest +# Path for map response +path.map.response=/META-INF/parser/mapHeaderResponse + + + +################################################# +# Old configuration # +################################################# + +url.bundle.action=/connectorTx + +# Message used in logging component as default +DEFAULTLOGMESSAGE=Could not load error catalog message +# IP of the NTP server +NTP_VIRTUAL_HOST=15.150.139.187 +# Port used to get NTP messages +NTP_SERVER_PORT=123 +# Number of seconds that the ntp component waits at NTP server +NTP_TIME_OUT=10 +# Number of seconds that the ntp server waits between +NTP_WAIT_TIME=60 +# Number of seconds of difference between Elara and NTP server which are considered normal +NTP_THRESHOLD=5 +# Number of retries to insert in DB a new Record Operation +ROP_NUM_RETRIES=3 +# Number of retries to insert in DB a new Journal Operation +JOURNAL_NUM_RETRIES=3 +# Application code size (For error catalog code) +ERRORCATALOGCODE_APPLICATIONCODESIZE=4 +# Error type size (For error catalog code) +ERRORCATALOGCODE_ERRORTYPESIZE=1 +# Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODESIZE=8 +# OTMA Error code size (For error catalog code) +ERRORCATALOGCODE_ERRORCODE_START_OTMA=5 +# Size of the catalog of errors +ERRORCATALOGCODESIZE=13 +# Path for the xml Record Operation files (Files with ROP that could be saved) +ROP_PATH=/ROP +# Path for the xml Journal Operation files (Files with Journal Operation that could be saved) +JOURNAL_PATH=/JOURNAL +# Type of persistence for Journal (ELARA or MAINFRAME) +JOURNAL_PERSISTENCE_TYPE=ELARA +# Channel of the events +EVENT_CHANNEL=0 +# Number used to correlate events +EVENT_CORREL_ID= +# Identifies which environ has been used by an event +EVENT_ENVIRON=13 +# Event mode +EVENT_MODE=O +# Service event code +EVENT_SERVICE=5 +# Source of the event code +EVENT_ORIGIN=0 +# Default event type +EVENT_TYPE_DEFAULT_POSTACTIONS=0 +# Default event type for pre-actions +EVENT_TYPE_DEFAULT_PREACTIONS=1 +# Default event version +EVENT_VERSION_DEFAULT=00 +# Default event client +EVENT_CLIENT_DEFAULT=0 +# Default event client type +EVENT_CLIENT_TYPE_DEFAULT=0 +# Default event No Client +EVENT_NO_CLIENT_DEFAULT=0 +# Default channel for channel handler component +CHANNEL_HANDLER_CHANNEL=0 +# Default service for channel handler component +CHANNEL_HANDLER_SERVICE=0 +# Default environ for channel handler component +CHANNEL_HANDLER_ENVIRON=0 +# Mail version service for ESB +ESB_MAIL_SERVICE_VERSION=1 +# SMS version service for ESB +ESB_SMS_SERVICE_VERSION=1 +# Default priority for SMSs +DEFAULT_SMS_PRIORITY=0 +# Default priority for Emails +DEFAULT_EMAIL_PRIORITY=0 +# Path for attachments files (For emails) +ATTACHMENTS_PATH=/attachments +# [Hit counter] Maximum counter store size +MAX_COUNTER_SIZE=10 +# [Hit counter] Elements to be kept stored if maximum size is exceeded +COUNTER_ELEMENTS_AFTER_REMOVE=10 + +# Timeout for WS connections +WS_CONNECT_TIMEOUT=3000 +# Timeout for WS requests +WS_REQUEST_TIMEOUT=3000 +# Timeout for transaction executions (milliseconds) +TRANSACTION_TIMEOUT =5000 +# Path where there are SMS xsds +ESB_SMS_PATH =/xsd/SMS_ +# Path where there are Email xsds +ESB_MAIL_PATH =/xsd/Mail_ +# Path where there are ESB's ds xsd +ESB_DS_PATH =/xsd/ds.xsd +# Path where there are ESB's dc xsd +ESB_DC_PATH =/xsd/dc.xsd +# Path where there is the events xsd +EVENTS_XSD_PATH =/xsd/HeaderAndContextEvent.xsd +# Default message for multilanguage responses +MULTILANGUAGE_DEFAULT_MESSAGE=Could not load multilanguage response +# Multilanguage file name +MULTILANGUAGE_FILE_NAME=multilanguage- +# Deletion criteria TQWPOLOG +PERIODIC_REMOVE_TQWPOLOG=10 +# Deletion criteria TQWPOEXR +PERIODIC_REMOVE_TQWPOEXR=1 +#Monitoring Functional Event +FLAG_JMX_EVENT_FUNCTIONAL=true +#Timeout in query. +QUERY_TIMEOUT=4 +#MaxRows in a query. +QUERY_MAXROWS=5000 +# Banking session flag +BANKING_SESSION_FLAG = SCHEDULER +PS9_UPPERCASE=TRUE +PS9_UPPERCASE_USE_HEADER=TRUE +####################################################################################################################### +################################# Database properties ################################ +DATABASE_AUTOCOMIT=false +DATABASE_READONLY=false +DATABASE_TRANSACTION_ISOLATION=-1 +DATABASE_INITIAL_SIZE=0 +DATABASE_NUM_MAX_ACTIVE=200 +DATABASE_MAX_IDLE=0 +DATABASE_MAX_OPEN_PREPARED_STATEMENT=-1 +DATABASE_MAX_WAIT=-1 +DATABASE_MIN_EVICTABLE_IDLE_TIME_MILLIS=1800000 +DATABASE_MIN_IDLE=0 +DATABASE_POOL_PREPARED_STATEMENT=false +DATABASE_TEST_ON_BORROW=true +DATABASE_TEST_ON_RETURN=false +DATABASE_TEST_WHILE_IDLE=false +DATABASE_TIME_BETWEEN_EVICTION_RUNS_MILLIS=-1 +DATABASE_VALIDATION_QUERY=select 1 from dual +DATABASE_NUM_TEST_PER_EVICTION_RUN=3 +DATABASE_ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED=false + +# Position of group code last character +GROUP_CODE_LAST=3 +# Position of parameter code last character +PARAMETER_CODE_LAST=6 +# Binary code representation +BINARY_CODE=Binary +# Integer code reprensentation +INTEGER_CODE=Integer +# Long code representation +LONG_CODE=Long +# Double code representation +DOUBLE_CODE=Double +# String code representation +STRING_CODE=String +# Map format header tag +HEADER_TAG=header +# Map format body tag +BODY_TAG=body +# Map format advice tag +ADVICE_TAG=advice +# Tag representing Header class +GENERAL_HEADER_TAG=header +# Tag representing IdLogicTransaction class +ID_LOGIC_TRANSACTION_TAG=idLogicTransaction +# Tag representing TransactionOrigin class +TRANSACTION_ORIGIN_TAG=transactionOrigin +# Parameter separator +PARAMETER_SEPARATOR = ; +# Complex parameter separator +COMPLEX_PARAMETER_SEPARATOR = , +# End request separator +END_REQUEST_SEPARATOR = \] +# Begin request separator +BEGIN_REQUEST_SEPARATOR = \[ +# End request separator (Map only) +MAP_END_REQUEST_SEPARATOR = ] +# Begin request separator (Map only) +MAP_BEGIN_REQUEST_SEPARATOR = [ +# Begin complex parameter values +BEGIN_COMPLEX_PARAMETER= ( +# End complex parameter values +END_COMPLEX_PARAMETER= ) +# Separator between parameter name and value +NAME_VALUE_SEPARATOR = = +# Separator between message header and body +HEAD_BODY_SEPARATOR = & +# Header for advice number +HEADER_ADVICE_NUMBER=001000 +# Header for advice code +HEADER_ADVICE_CODE=002001 +# Header for advice description +HEADER_ADVICE_DESCRIPTION=002002 +# Advice code header +ADVICE_CODE_HEADER=code +# Advice description header +ADVICE_DESCRIPTION_HEADER=description + +# Default Locale = es_ES +SYSTEMLOCALE=es_ES +# Country Code for "es_ES" locale = ES +COUNTRY.es_ES=ES +# language Code for "es_ES" locale = es +LANGUAGE.es_ES=es +# Date format for "es_ES" locale = dd/MM/yyyy HH:mm +DATEFORMAT.es_ES=dd/MM/yyyy HH:mm +# Time ZOne for "es_ES" locale = Europe/Spain +TIMEZONE.es_ES=Europe/Spain +# Currency for "es_ES" locale = EURO +CURRENCY.es_ES=EURO +# Country Code for "pl_PL" locale = PL +COUNTRY.pl_PL=PL +# language Code for "pl_PL" locale = pl +LANGUAGE.pl_PL=pl +# Date Format for "pl_PL" locale = MM/dd/yyyy +DATEFORMAT.pl_PL=MM/dd/yyyy +# Time Zone for "pl_PL" locale = Europe/Warsaw +TIMEZONE.pl_PL=Europe/Warsaw +# Currency for "pl_PL" locale = DOLLAR +CURRENCY.pl_PL=DOLLAR +# Deployed locale = es_ES +LOCALEDEPLOY=es_ES +# arq type (for evo. utilidades compartidas) +arq.type=ONLINE \ No newline at end of file diff --git a/artifact/transactions/QTDITC9901-CO/src/test/resources/log4j.xml b/artifact/transactions/QTDITC9901-CO/src/test/resources/log4j.xml new file mode 100644 index 0000000..215502b --- /dev/null +++ b/artifact/transactions/QTDITC9901-CO/src/test/resources/log4j.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/artifact/transactions/pom.xml b/artifact/transactions/pom.xml index 67478b4..e96fced 100644 --- a/artifact/transactions/pom.xml +++ b/artifact/transactions/pom.xml @@ -24,6 +24,18 @@ QTDIT07801-CO QTDIT07901-CO QTDIT08001-CO - QTDIT09001-CO + QTDITC9001-CO + QTDITC9101-CO + QTDITC9201-CO + QTDITC9301-CO + QTDITC9401-CO + QTDITC9501-CO + QTDITC9601-CO + QTDITC9701-CO + QTDITC9801-CO + QTDITC9901-CO + QTDITC0101-CO + QTDITC0201-CO + QTDITC0301-CO diff --git a/pom.xml b/pom.xml index e2b77b3..b1f982a 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ UF_contratacion_digital_QTDI - com.bbva.qtdi.employees + com.bbva.qtdi 0.0.1 pom UF_contratacion_digital_QTDI