blob: 82ea8b59f0a933745efa667b7dbfa0e754affc7e (
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 se.leap.bitmaskclient.test;
import java.util.Calendar;
import se.leap.bitmaskclient.eip.CalendarProviderInterface;
/**
* Created by cyberta on 13.09.17.
*/
class TestCalendarProvider implements CalendarProviderInterface {
private long currentTimeInMillis = 0;
public TestCalendarProvider(long currentTimeInMillis) {
this.currentTimeInMillis = currentTimeInMillis;
}
@Override
public Calendar getCalendar() {
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(currentTimeInMillis);
return calendar;
}
}
|