aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorViktoria Pundy <viktoria.pundy@aon.at>2018-05-06 11:46:00 +0200
committerViktoria Pundy <viktoria.pundy@aon.at>2018-05-06 18:12:36 +0200
commitc1248170fa6432d8ca3bc3212d292a6e761f02b1 (patch)
treec7afb2d9cb3d441691514171b89ca1fee10f1bf1 /src/main
parent5456ec86f8eab7669892aed56e5bb800f07f6b2f (diff)
downloadsepm-groupproject-c1248170fa6432d8ca3bc3212d292a6e761f02b1.tar.gz
sepm-groupproject-c1248170fa6432d8ca3bc3212d292a6e761f02b1.tar.xz
sepm-groupproject-c1248170fa6432d8ca3bc3212d292a6e761f02b1.zip
Added some test for persistence layer/small changes
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/service/VehicleServiceImpl.java41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/service/VehicleServiceImpl.java b/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/service/VehicleServiceImpl.java
deleted file mode 100644
index f21ae9a..0000000
--- a/src/main/java/at/ac/tuwien/sepm/assignment/groupphase/einsatzverwaltung/service/VehicleServiceImpl.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.service;
-
-import at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.dao.DBVehicleDAO;
-import at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.dao.VehicleDAO;
-import at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.dto.Vehicle;
-import at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.dto.Vehicle.Status;
-import at.ac.tuwien.sepm.assignment.groupphase.exception.InvalidVehicleException;
-import at.ac.tuwien.sepm.assignment.groupphase.exception.PersistenceException;
-import at.ac.tuwien.sepm.assignment.groupphase.exception.ServiceException;
-import at.ac.tuwien.sepm.assignment.groupphase.util.JDBCConnectionManager;
-import java.util.EnumSet;
-import java.util.List;
-
-public class VehicleServiceImpl implements VehicleService {
-
- // TODO
- private static VehicleDAO vehicleDAO = new DBVehicleDAO(new JDBCConnectionManager());
-
- @Override
- public long add(Vehicle vehicle) throws InvalidVehicleException, ServiceException {
- return 0;
- }
-
- @Override
- public Vehicle update(Vehicle vehicle) throws InvalidVehicleException, ServiceException {
- return null;
- }
-
- @Override
- public List<Vehicle> list(EnumSet<Status> statuses) throws ServiceException {
- // TODO: IMPLEMENT SEARCH WITH STATUS
- try {
- return vehicleDAO.list();
- } catch (PersistenceException e) {
- throw new ServiceException(e);
- }
- }
-
- @Override
- public void remove(long id) throws InvalidVehicleException, ServiceException {}
-}