@Test public void shouldGetAll() throws Exception { List<EquipmentType> types = new ArrayList<EquipmentType>(); types.add(new EquipmentType()); when(mapper.getAll()).thenReturn(types); List<EquipmentType> results = repository.getAll(); assertEquals(results.size(), types.size()); }
public List<EquipmentType> getAll(){ return equipmentTypeMapper.getAll(); }
EquipmentTypeRepository { public List<EquipmentType> getAll(){ return equipmentTypeMapper.getAll(); } }
EquipmentTypeRepository { public List<EquipmentType> getAll(){ return equipmentTypeMapper.getAll(); }  }
EquipmentTypeRepository { public List<EquipmentType> getAll(){ return equipmentTypeMapper.getAll(); }  EquipmentType getEquipmentTypeById(Long id); List<EquipmentType> getAll(); void insert(EquipmentType type); void update(EquipmentType type); }
EquipmentTypeRepository { public List<EquipmentType> getAll(){ return equipmentTypeMapper.getAll(); }  EquipmentType getEquipmentTypeById(Long id); List<EquipmentType> getAll(); void insert(EquipmentType type); void update(EquipmentType type);  }