Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- testFrozenDateTime: "2015-05-15T16:00:00.000-0000"
- getCarsRValue:
- - carKey: 2001
- driverKey: 3001
- aetrSummaryFactory:
- carKey: 2001
- drvKey1: 3001
- timeEnd: "2015-05-04T08:00:00.000-0000"
- nowUTC: "2015-05-04T08:00:00.000-0000"
- trackingList1:
- # day 7
- - truckStatus: "P"
- drivingTime: 2700 # 45 minutes of resting
- time: "2015-05-10T18:45:00.000+0000"
- - truckStatus: "M"
- drivingTime: 16200 # 4.5 hours of driving
- time: "2015-05-10T18:00:00.000+0000"
- distance: 100.0
- - truckStatus: "*" # sleep
- time: "2015-05-10T13:30:00.000+0000"
- # day 6
- - truckStatus: "P"
- drivingTime: 2700 # 45 minutes of resting
- time: "2015-05-09T18:45:00.000+0000"
- - truckStatus: "M"
- drivingTime: 16200 # 4.5 hours of driving
- time: "2015-05-09T18:00:00.000+0000"
- distance: 100.0
- - truckStatus: "*" # sleep
- time: "2015-05-09T13:30:00.000+0000"
- # day 5
- - truckStatus: "P"
- drivingTime: 2700 # 45 minutes of resting
- time: "2015-05-08T18:45:00.000+0000"
- - truckStatus: "M"
- drivingTime: 16200 # 4.5 hours of driving
- time: "2015-05-08T18:00:00.000+0000"
- distance: 100.0
- - truckStatus: "*" # sleep
- time: "2015-05-08T13:30:00.000+0000"
- # day 4
- - truckStatus: "P"
- drivingTime: 2700 # 45 minutes of resting
- time: "2015-05-07T18:45:00.000+0000"
- - truckStatus: "M"
- drivingTime: 16200 # 4.5 hours of driving
- time: "2015-05-07T18:00:00.000+0000"
- distance: 100.0
- - truckStatus: "*" # sleep
- time: "2015-05-07T13:30:00.000+0000"
- # day 3
- - truckStatus: "P"
- drivingTime: 2700 # 45 minutes of resting
- time: "2015-05-06T18:45:00.000+0000"
- - truckStatus: "M"
- drivingTime: 16200 # 4.5 hours of driving
- time: "2015-05-06T18:00:00.000+0000"
- distance: 100.0
- - truckStatus: "*" # sleep
- time: "2015-05-06T13:30:00.000+0000"
- # day 2
- - truckStatus: "P"
- drivingTime: 2700 # 45 minutes of resting
- time: "2015-05-05T18:45:00.000+0000"
- - truckStatus: "M"
- drivingTime: 16200 # 4.5 hours of driving
- time: "2015-05-05T18:00:00.000+0000"
- distance: 100.0
- - truckStatus: "*" # sleep
- time: "2015-05-05T13:30:00.000+0000"
- # day 1
- - truckStatus: "P"
- drivingTime: 2700 # 45 minutes of resting
- time: "2015-05-04T18:45:00.000+0000"
- - truckStatus: "M"
- drivingTime: 16200 # 4.5 hours of driving
- time: "2015-05-04T18:00:00.000+0000"
- distance: 100.0
- - truckStatus: "*" # sleep
- time: "2015-05-04T13:30:00.000+0000"
- expectedJson: >-
- {
- "2001" : [ {
- "type" : "SLEEP",
- "length" : 19800,
- "length_dbg" : "5h 30m 0s",
- "updated_length_dbg" : "0h 0m 0s",
- "distance" : 0.0,
- "was_merged" : false,
- "firstDriver" : true,
- "aetrError" : null,
- "aetrAltError" : null,
- "driveStyle" : 0.0,
- "updatedLength" : 0,
- "updatedDistance" : 0.0,
- "startDate" : 1430726400000,
- "endDate" : 1430746200000
- }, {
- "type" : "DRIVE",
- "length" : 16200,
- "length_dbg" : "4h 30m 0s",
- "updated_length_dbg" : "0h 0m 0s",
- "distance" : 100.0,
- "was_merged" : false,
- "firstDriver" : true,
- "aetrError" : null,
- "aetrAltError" : null,
- "driveStyle" : 0.0,
- "updatedLength" : 0,
- "updatedDistance" : 0.0,
- "startDate" : 1430746200000,
- "endDate" : 1430762400000
- }, {
- "type" : "SLEEP",
- "length" : 70200,
- "length_dbg" : "19h 30m 0s",
- "updated_length_dbg" : "0h 0m 0s",
- "distance" : 0.0,
- "was_merged" : false,
- "firstDriver" : true,
- "aetrError" : null,
- "aetrAltError" : null,
- "driveStyle" : 0.0,
- "updatedLength" : 0,
- "updatedDistance" : 0.0,
- "startDate" : 1430762400000,
- "endDate" : 1430832600000
- }, {
- "type" : "DRIVE",
- "length" : 16200,
- "length_dbg" : "4h 30m 0s",
- "updated_length_dbg" : "0h 0m 0s",
- "distance" : 100.0,
- "was_merged" : false,
- "firstDriver" : true,
- "aetrError" : null,
- "aetrAltError" : null,
- "driveStyle" : 0.0,
- "updatedLength" : 0,
- "updatedDistance" : 0.0,
- "startDate" : 1430832600000,
- "endDate" : 1430848800000
- }, {
- "type" : "SLEEP",
- "length" : 70200,
- "length_dbg" : "19h 30m 0s",
- "updated_length_dbg" : "0h 0m 0s",
- "distance" : 0.0,
- "was_merged" : false,
- "firstDriver" : true,
- "aetrError" : null,
- "aetrAltError" : null,
- "driveStyle" : 0.0,
- "updatedLength" : 0,
- "updatedDistance" : 0.0,
- "startDate" : 1430848800000,
- "endDate" : 1430919000000
- }, {
- "type" : "DRIVE",
- "length" : 16200,
- "length_dbg" : "4h 30m 0s",
- "updated_length_dbg" : "0h 0m 0s",
- "distance" : 100.0,
- "was_merged" : false,
- "firstDriver" : true,
- "aetrError" : null,
- "aetrAltError" : null,
- "driveStyle" : 0.0,
- "updatedLength" : 0,
- "updatedDistance" : 0.0,
- "startDate" : 1430919000000,
- "endDate" : 1430935200000
- }, {
- "type" : "SLEEP",
- "length" : 70200,
- "length_dbg" : "19h 30m 0s",
- "updated_length_dbg" : "0h 0m 0s",
- "distance" : 0.0,
- "was_merged" : false,
- "firstDriver" : true,
- "aetrError" : null,
- "aetrAltError" : null,
- "driveStyle" : 0.0,
- "updatedLength" : 0,
- "updatedDistance" : 0.0,
- "startDate" : 1430935200000,
- "endDate" : 1431005400000
- }, {
- "type" : "DRIVE",
- "length" : 16200,
- "length_dbg" : "4h 30m 0s",
- "updated_length_dbg" : "0h 0m 0s",
- "distance" : 100.0,
- "was_merged" : false,
- "firstDriver" : true,
- "aetrError" : null,
- "aetrAltError" : null,
- "driveStyle" : 0.0,
- "updatedLength" : 0,
- "updatedDistance" : 0.0,
- "startDate" : 1431005400000,
- "endDate" : 1431021600000
- }, {
- "type" : "SLEEP",
- "length" : 70200,
- "length_dbg" : "19h 30m 0s",
- "updated_length_dbg" : "0h 0m 0s",
- "distance" : 0.0,
- "was_merged" : false,
- "firstDriver" : true,
- "aetrError" : null,
- "aetrAltError" : null,
- "driveStyle" : 0.0,
- "updatedLength" : 0,
- "updatedDistance" : 0.0,
- "startDate" : 1431021600000,
- "endDate" : 1431091800000
- }, {
- "type" : "DRIVE",
- "length" : 16200,
- "length_dbg" : "4h 30m 0s",
- "updated_length_dbg" : "0h 0m 0s",
- "distance" : 100.0,
- "was_merged" : false,
- "firstDriver" : true,
- "aetrError" : null,
- "aetrAltError" : null,
- "driveStyle" : 0.0,
- "updatedLength" : 0,
- "updatedDistance" : 0.0,
- "startDate" : 1431091800000,
- "endDate" : 1431108000000
- }, {
- "type" : "SLEEP",
- "length" : 70200,
- "length_dbg" : "19h 30m 0s",
- "updated_length_dbg" : "0h 0m 0s",
- "distance" : 0.0,
- "was_merged" : false,
- "firstDriver" : true,
- "aetrError" : null,
- "aetrAltError" : null,
- "driveStyle" : 0.0,
- "updatedLength" : 0,
- "updatedDistance" : 0.0,
- "startDate" : 1431108000000,
- "endDate" : 1431178200000
- }, {
- "type" : "DRIVE",
- "length" : 16200,
- "length_dbg" : "4h 30m 0s",
- "updated_length_dbg" : "0h 0m 0s",
- "distance" : 100.0,
- "was_merged" : false,
- "firstDriver" : true,
- "aetrError" : null,
- "aetrAltError" : null,
- "driveStyle" : 0.0,
- "updatedLength" : 0,
- "updatedDistance" : 0.0,
- "startDate" : 1431178200000,
- "endDate" : 1431194400000
- }, {
- "type" : "SLEEP",
- "length" : 70200,
- "length_dbg" : "19h 30m 0s",
- "updated_length_dbg" : "0h 0m 0s",
- "distance" : 0.0,
- "was_merged" : false,
- "firstDriver" : true,
- "aetrError" : null,
- "aetrAltError" : null,
- "driveStyle" : 0.0,
- "updatedLength" : 0,
- "updatedDistance" : 0.0,
- "startDate" : 1431194400000,
- "endDate" : 1431264600000
- }, {
- "type" : "DRIVE",
- "length" : 16200,
- "length_dbg" : "4h 30m 0s",
- "updated_length_dbg" : "0h 0m 0s",
- "distance" : 100.0,
- "was_merged" : false,
- "firstDriver" : true,
- "aetrError" : [ "ERR:02 Driving more than 6 days in a week!", "ERR:14 No proper weekly rest!" ],
- "aetrAltError" : null,
- "driveStyle" : 0.0,
- "updatedLength" : 0,
- "updatedDistance" : 0.0,
- "startDate" : 1431264600000,
- "endDate" : 1431280800000
- }, {
- "type" : "PAUSE",
- "length" : 2700,
- "length_dbg" : "0h 45m 0s",
- "updated_length_dbg" : "0h 0m 0s",
- "distance" : 0.0,
- "was_merged" : false,
- "firstDriver" : true,
- "aetrError" : null,
- "aetrAltError" : null,
- "driveStyle" : 0.0,
- "updatedLength" : 0,
- "updatedDistance" : 0.0,
- "startDate" : 1431280800000,
- "endDate" : 1431283500000
- } ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement