6162636465666768697071
replay(localeContainer); replay(labelManager); Integer i = new Integer(1); try { interceptor.afterReturning(h, m, new Object[] {i}, hmanager); }catch (Throwable t){ assertTrue(false); } assertEquals(h.getBriefdescription(),"this is something");
125126127128129130131132133134135
replay(localeContainer); replay(labelManager); Integer i = new Integer(1); try { interceptor.afterReturning(hotellist, m, null, hmanager); }catch (Throwable t){ assertTrue(false); } assertEquals(h.getBriefdescription(),"this is something");
185186187188189190191192193194195
replay(localeContainer); replay(labelManager); Integer i = new Integer(1); try { interceptor.afterReturning(room, m, new Object[] {i}, rmanager); }catch (Throwable t){ assertTrue(false); } assertEquals(room.getTypology().getName(),"Doppia");
235236237238239240241242243244245
replay(localeContainer); replay(labelManager); Integer i = new Integer(1); try { interceptor.afterReturning(room, m, new Object[] {i}, rmanager); }catch (Throwable t){ assertTrue(false); } assertNull(room.getTypology().getName());