@Test public void shouldInsert() throws Exception { EquipmentType type = new EquipmentType(); type.setCode("Test"); type.setName("Test"); repository.insert(type); verify(mapper).insert(type); }
public void insert(EquipmentType type){ equipmentTypeMapper.insert(type); }
EquipmentTypeRepository { public void insert(EquipmentType type){ equipmentTypeMapper.insert(type); } }
EquipmentTypeRepository { public void insert(EquipmentType type){ equipmentTypeMapper.insert(type); }  }
EquipmentTypeRepository { public void insert(EquipmentType type){ equipmentTypeMapper.insert(type); }  EquipmentType getEquipmentTypeById(Long id); List<EquipmentType> getAll(); void insert(EquipmentType type); void update(EquipmentType type); }
EquipmentTypeRepository { public void insert(EquipmentType type){ equipmentTypeMapper.insert(type); }  EquipmentType getEquipmentTypeById(Long id); List<EquipmentType> getAll(); void insert(EquipmentType type); void update(EquipmentType type);  }