From 2c219e2fa547fb8c086c738ea7d5e48be8ac1bb1 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 11 Dec 2020 20:25:03 -0500 Subject: [PATCH] Test Reporte --- .../wmp/services/rest/AccionResource.java | 3 + src/test/java/com/qsoft/test/salida.json | 38 ++++++++ src/test/java/com/qsoft/test/testJson.json | 88 ++++++++---------- .../wmp/services/rest/AccionResource.class | Bin 7891 -> 7891 bytes .../Command line test.html | 2 +- .../Command line test.xml | 2 +- target/surefire-reports/testng-results.xml | 4 +- 7 files changed, 83 insertions(+), 54 deletions(-) diff --git a/src/main/java/com/qsoft/wmp/services/rest/AccionResource.java b/src/main/java/com/qsoft/wmp/services/rest/AccionResource.java index d42ea1e..01b731c 100644 --- a/src/main/java/com/qsoft/wmp/services/rest/AccionResource.java +++ b/src/main/java/com/qsoft/wmp/services/rest/AccionResource.java @@ -142,6 +142,9 @@ public class AccionResource { * @param entidad * @return * @throws DominioExcepcion + * @throws java.io.IOException + * @throws com.stripe.exception.StripeException + * @throws com.qsoft.dao.exception.DaoException */ public SalidaAccion ejecutarAccion(EntradaAccion entrada, EntidadEnum entidad) throws DominioExcepcion, IOException, StripeException, DaoException { List resultado = accion.accionGenerica(entrada.getHeaderIn(), entidad, entrada.getBodyIn().getEntidades(), entrada.getBodyIn().getTipoAccion()); diff --git a/src/test/java/com/qsoft/test/salida.json b/src/test/java/com/qsoft/test/salida.json index e69de29..12674e2 100644 --- a/src/test/java/com/qsoft/test/salida.json +++ b/src/test/java/com/qsoft/test/salida.json @@ -0,0 +1,38 @@ +{ + "headerIn": { + "dispositivo": "WeLaptop", + "canal": null, + "medio": null, + "aplicacion": "WeMedicalProV1.0", + "tipoTransaccion": "0101112", + "usuario": "james", + "uuid": "be00033837a8ebec86c9f17e1df8f4527815684c7f45b8214d2f3839ef678a71", + "fechaHora": null, + "idioma": null, + "empresa": null, + "geolocalizacion": null + }, + "bodyIn": { + "tipoAccion": 1, + "entidad": "Poliza", + "entidades": [ + { + "polBroker": "PANDILLA", + "detModalidad": 26, + "detPeriodicidad": 17202, + "detSucursalIfi": 23484, + "plaCodigo": 71, + "detFormaPago": 23516, + "empCodigo": 3, + "perCedulaTitular": "1103969430", + "detTipoIdentificacion": 3, + "detIfi": 23610, + "detTipoCuenta": 17187, + "polDebito": "MIguel triana", + "detPromocion": -1, + "cedulaDebito": "0920752326", + "cuentaDebito": "45454545" + } + ] + } +} \ No newline at end of file diff --git a/src/test/java/com/qsoft/test/testJson.json b/src/test/java/com/qsoft/test/testJson.json index a7340a5..5d81328 100644 --- a/src/test/java/com/qsoft/test/testJson.json +++ b/src/test/java/com/qsoft/test/testJson.json @@ -4,62 +4,50 @@ "canal": null, "medio": null, "aplicacion": "WeMedicalProV1.0", - "tipoTransaccion": "0101113", + "tipoTransaccion": "0101115", "usuario": "1715060073", - "uuid": "9a70b93247b8ce133e48e1be7506dda9", + "uuid": "32c039d54d17cdb903c400e636379625aff689effbf08617b653bae17af76629", "fechaHora": null, "idioma": null, "empresa": null, "geolocalizacion": null }, "bodyIn": { - "tipoAccion": 2, - "entidad": "Persona", - "entidades": [ - { - "perCodigo": 421, - "detTipoIdentificacion": 3, - "perIdentificacion": "1102021886", - "perApellidos": "VELASQUEZ CASTILLO", - "perNombres": "PEDRO SALOMON", - "perFechaNacimiento": "27/09/1961", - "perDireccion": "-Actualizar- actualizado666", - "perNacionalidad": "ECUATORIANO", - "perMail": "christianpaul588@gmail.com", - "detGenero": 17203, - "locCodigo": "010102", - "telefono": [ - { - "detTipo": 17208, - "telNumero": "0986993675", - "telObservacion": "DATO CARGADO DESDE EL SERVICIO", - "telEstado": 1, - "telCodigo": 832 - }, { - "detTipo": 17208, - "telNumero": "072107182", - "telObservacion": "DATO CARGADO DESDE EL SERVICIO", - "telEstado": 1, - "telCodigo": 833 - }, { - "detTipo": 23586, - "telNumero": "0994757867", - "telObservacion": "", - "telEstado": 0, - "telCodigo": 3607 - } - ], - "cuentasBancarias": [ - { - "cueCuenta": " ", - "detIfi": 23838, - "cueDebito": null, - "empCodigo": 2, - "cueEstado": 1, - "cueCodigo": 410 - } - ] - } - ] + "tipoAccion": 1, + "entidad": "Plan", + "entidades": [{ + "empCodigo": 3, + "detTipo": 23888, + "detModalidad": 27, + "detDeducible": 30, + "detTarifario": 32, + "plaNombre": "aaa", + "plaRutaContrato": "/data/wmp/plan/aaa", + "plaValorAnual": 22, + "plaValorMensual": 1231, + "plaImpuesto": 12, + "plaPorDescuento": 12, + "plaEdadHijos": 12, + "plaEdadminTitular": 12, + "plaEdadTitular": 22, + "plaNumBeneficiarios": 22, + "plaProducto": "22", + "plaCoberturaMaxima": 22, + "plaValorDeducible": 22, + "plaCodAcess": "12", + "plaEstado": 1, + "plaTipo": "21", + "plaCodExt": "22aa", + "coberturasPlan": [{ + "detTipo": 23900, + "detPrestacion": 15044, + "detTipoModalidad": 25, + "detPais": 24, + "copCopago": 0.11, + "copTope": 222, + "copTipoTarifario": 2, + "copEstado": 1 + }] + }] } } \ No newline at end of file diff --git a/target/classes/com/qsoft/wmp/services/rest/AccionResource.class b/target/classes/com/qsoft/wmp/services/rest/AccionResource.class index 7f101a321c69a26068d601971639ff769d1be9ce..50d9ecb733cc880ce0b4427da5362891f78328da 100644 GIT binary patch delta 33 pcmca?d)aowM_JKn3~~(98I%}iFlaE$WH4Zu#bCuSdor8cSpd5j3Ecny delta 33 pcmca?d)aowM_JLy3~~%p7?c>MGH5VNV=!Qt&S1qbV=|lESpd2U3CjQg diff --git a/target/surefire-reports/com.qsoft.test.Tester/Command line test.html b/target/surefire-reports/com.qsoft.test.Tester/Command line test.html index 56bc223..36b6fbb 100644 --- a/target/surefire-reports/com.qsoft.test.Tester/Command line test.html +++ b/target/surefire-reports/com.qsoft.test.Tester/Command line test.html @@ -57,7 +57,7 @@ function toggleAllBoxes() { Tests passed/Failed/Skipped:0/0/0 -Started on:Wed Oct 28 14:11:21 ECT 2020 +Started on:Fri Dec 11 19:39:26 ECT 2020 Total time:0 seconds (5 ms) diff --git a/target/surefire-reports/com.qsoft.test.Tester/Command line test.xml b/target/surefire-reports/com.qsoft.test.Tester/Command line test.xml index 9cc29d0..b08860c 100644 --- a/target/surefire-reports/com.qsoft.test.Tester/Command line test.xml +++ b/target/surefire-reports/com.qsoft.test.Tester/Command line test.xml @@ -1,4 +1,4 @@ - + diff --git a/target/surefire-reports/testng-results.xml b/target/surefire-reports/testng-results.xml index 0db28bd..33fb2e1 100644 --- a/target/surefire-reports/testng-results.xml +++ b/target/surefire-reports/testng-results.xml @@ -2,10 +2,10 @@ - + - +