@Test public void shouldGetDeliveryZoneById() throws Exception { DeliveryZone zone = new DeliveryZone(); when(mapper.getById(1l)).thenReturn(zone); DeliveryZone returnedZone = repository.getById(1l); verify(mapper).getById(1l); assertThat(returnedZone, is(zone)); }
public DeliveryZone getById(Long id) { return mapper.getById(id); }
DeliveryZoneRepository { public DeliveryZone getById(Long id) { return mapper.getById(id); } }
DeliveryZoneRepository { public DeliveryZone getById(Long id) { return mapper.getById(id); }  }
DeliveryZoneRepository { public DeliveryZone getById(Long id) { return mapper.getById(id); }  void insert(DeliveryZone zone); void update(DeliveryZone zone); DeliveryZone getByCode(String code); List<DeliveryZone> getByUserForRight(Long userId, String rightName); List<Program> getPrograms(Long id); DeliveryZone getById(Long id); List<DeliveryZone> getAll(); }
DeliveryZoneRepository { public DeliveryZone getById(Long id) { return mapper.getById(id); }  void insert(DeliveryZone zone); void update(DeliveryZone zone); DeliveryZone getByCode(String code); List<DeliveryZone> getByUserForRight(Long userId, String rightName); List<Program> getPrograms(Long id); DeliveryZone getById(Long id); List<DeliveryZone> getAll();  }