1 | package fr.sii.ogham.testing.sms.simulator.bean; | |
2 | ||
3 | /** | |
4 | * Simple command that just provide field values | |
5 | * | |
6 | * @author Aurélien Baudet | |
7 | * | |
8 | */ | |
9 | public class SimpleCommand implements Command { | |
10 | private final int commandLength; | |
11 | private final int commandId; | |
12 | private final int commandStatus; | |
13 | private final int sequenceNumber; | |
14 | ||
15 | /** | |
16 | * @param commandLength | |
17 | * the command length | |
18 | * @param commandId | |
19 | * the command identifier | |
20 | * @param commandStatus | |
21 | * the command status | |
22 | * @param sequenceNumber | |
23 | * the sequence number | |
24 | */ | |
25 | public SimpleCommand(int commandLength, int commandId, int commandStatus, int sequenceNumber) { | |
26 | super(); | |
27 | this.commandLength = commandLength; | |
28 | this.commandId = commandId; | |
29 | this.commandStatus = commandStatus; | |
30 | this.sequenceNumber = sequenceNumber; | |
31 | } | |
32 | ||
33 | @Override | |
34 | public int getCommandLength() { | |
35 |
1
1. getCommandLength : replaced int return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleCommand::getCommandLength → NO_COVERAGE |
return commandLength; |
36 | } | |
37 | ||
38 | @Override | |
39 | public int getCommandId() { | |
40 |
1
1. getCommandId : replaced int return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleCommand::getCommandId → NO_COVERAGE |
return commandId; |
41 | } | |
42 | ||
43 | @Override | |
44 | public int getCommandStatus() { | |
45 |
1
1. getCommandStatus : replaced int return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleCommand::getCommandStatus → NO_COVERAGE |
return commandStatus; |
46 | } | |
47 | ||
48 | @Override | |
49 | public int getSequenceNumber() { | |
50 |
1
1. getSequenceNumber : replaced int return with 0 for fr/sii/ogham/testing/sms/simulator/bean/SimpleCommand::getSequenceNumber → NO_COVERAGE |
return sequenceNumber; |
51 | } | |
52 | ||
53 | } | |
Mutations | ||
35 |
1.1 |
|
40 |
1.1 |
|
45 |
1.1 |
|
50 |
1.1 |