Make real Test for BO only
This commit is contained in:
@@ -1,17 +1,7 @@
|
||||
package fr.eni.demo.bll;
|
||||
|
||||
import fr.eni.demo.bo.Location;
|
||||
import fr.eni.demo.dal.LocationRepository;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class LocationService {
|
||||
|
||||
@Autowired
|
||||
private LocationRepository locationRepository;
|
||||
|
||||
public void add(Location location) {
|
||||
locationRepository.save(location);
|
||||
}
|
||||
public interface LocationService {
|
||||
void add(Location location);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user