Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

DB-Integration - PostGres 9.5.4 #501

Open
kiran-vadla opened this issue Oct 3, 2016 · 3 comments
Open

DB-Integration - PostGres 9.5.4 #501

kiran-vadla opened this issue Oct 3, 2016 · 3 comments

Comments

@kiran-vadla
Copy link
Contributor

Hi All,

I was working on integrating PostGres 9.5.4 with OASP4J. I have changed the flyway migration scripts accordingly and also have crated a 'postgre' spring profile for Database connection Url , driver details similar to application-h2mem.properties .

When I try to run 'mvn clean install', Junit oasp4j-sample-core/src/test/java/io/oasp/gastronomy/restaurant/salesmanagement/batch/impl/billexport/BillExportJobTest.java fails . Failure summary is as follows :

Failed tests:
BillExportJobTest.testJob:90 Line number 3 does not match. expected:<[1,true,14.98 EUR,1.30 EUR,1,1,,1,Schnitzel-Men++,DELIVERED,6.99 EUR,mit Ketschup]> but was:<[2,true,14.98 EUR,1.40 EUR,3,1,,3,Pfifferlinge-Men++,DELIVERED,8.99 EUR,]>

Attached is the complete stack trace .

As a workaround , I have removed the records that are the causing the failure from oasp4j-samples-core/src/test/resources/bills.csv file . After removing these records , Junits are successful .

Attached is the screenshot of modified bills.csv that is used as adhoc fix. Also , attached is the screenshot of
bills_h2
bills

actual bills.csv file (It is renamed as bills_h2.csv).

Any thoughts/suggestions on the Junit 'BillExportJobTest.java' failure ?
BillExportJobTest-JUnit-Error.txt

Thanks,
Kiran.

@kiran-vadla
Copy link
Contributor Author

Attached is the guide that contains the instructions for the installation of PostGres 9.5.4 and also the instructions to configure PostGres with OASP4J.

https://github.com/kiran-vadla/oasp4j.git is fork Url and dbIntegration-Postgre is the branch url to get the source code for 'DBIntegration with PostGres'

Thanks,
Kiran.

DBIntegration - PostGreSQL - Guide.pdf

@kiran-vadla
Copy link
Contributor Author

Attaching the updated Guide.
DBIntegration - PostGreSQL - Guide.pdf

@hohwille
Copy link
Member

hohwille commented Dec 5, 2017

Are we solving this with MTS?
If yes, please close this as wontfix

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants