public void testSecondGood() throws RemoteException {
/*
* Test construction of a good object #1
*/
try {
GoodModel goodModel = new GoodModel();
goodModel.setId(1);
goodModel.setName("Article #1");
goodModel.setAvailable(10);
goodModel.setDescription("Bla");
goodModel.setPrice(10.0);
assertTrue(true);
} catch (InvalidUniqueIdException e) {
assertTrue(false);
} catch (InvalidAvaiableNumberException e) {
assertTrue(false);
} catch (InvalidPriceException e) {
assertTrue(false);
}
/*
* Test construction of a good object #2
*/
try {
GoodModel goodModel = new GoodModel(2, "Article #2");
goodModel.setAvailable(10);
goodModel.setDescription("Bla");
goodModel.setPrice(10.0);
assertTrue(true);
} catch (InvalidUniqueIdException e) {
assertTrue(false);
} catch (InvalidAvaiableNumberException e) {