aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/helper/TestIdentityManager.java
blob: d279241e4260a50b10b1285e1c0a54d3d1699ab8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package org.traccar.helper;

import org.traccar.database.IdentityManager;
import org.traccar.model.Device;

public class TestIdentityManager implements IdentityManager {
    
    private final Device device;
    
    public TestIdentityManager() {
        device = new Device();
        device.setId(1);
        device.setUniqueId("123456789012345");
    }

    @Override
    public Device getDeviceById(long id) {
        return device;
    }
    
    @Override
    public Device getDeviceByUniqueId(String imei) {
        return device;
    }

}