cjsolomon / Mulit-Modal

SRU Multi-Modal Project
0 stars 2 forks source link

Database Issue with Carrier #12

Closed ghost closed 10 years ago

ghost commented 10 years ago

There is a database issue with carrier. I think it may be in the Update function. I have the following two lines commented out from testUpdateLoad() within Carrier test and have replaced them with print statements.

//Assert.assertEquals(test_carrier.getCarrierCode(),cList.get(0).getCarrierCode());
System.out.println("Original Carrier Code is: " + test_carrier.getCarrierCode() + " but is returned from database as: " +cList.get(0).getCarrierCode());
//Assert.assertEquals(test_carrier.getCarrierName(), cList.get(0).getCarrierName());
System.out.println("Original Carrier Name is: " + test_carrier.getCarrierName() + " but is returned from database as: " +cList.get(0).getCarrierName());

The print statements return the following:

Original Carrier Code is: defaultCarrierCode but is returned from database as: InsertLoadTest
Original Carrier Name is: InsertLoadTest but is returned from database as: defaultCarrierName

When fixed please uncomment out the two commented lines and remove the print statements.

ghost commented 10 years ago

It seems that the issue is with the getters and setters in Carrier

cjsolomon commented 10 years ago

Believe I Fixed it