Refactored remaining code (RPi Plugin)
This commit is contained in:
parent
3a8bb12bab
commit
d692c30bd9
10 changed files with 62 additions and 24 deletions
|
|
@ -41,7 +41,7 @@ public class TelstickSerialCommTest {
|
|||
//############ Normal TCs
|
||||
|
||||
@Test
|
||||
public void unregisteredEvent(){
|
||||
public void receiveUnregisteredEvent(){
|
||||
// Setup
|
||||
TellstickSerialComm tellstick = new TellstickSerialComm();
|
||||
final ArrayList<HalEventConfig> list = new ArrayList<>();
|
||||
|
|
@ -59,7 +59,7 @@ public class TelstickSerialCommTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void event(){
|
||||
public void receiveEvent(){
|
||||
// Setup
|
||||
TellstickSerialComm tellstick = new TellstickSerialComm();
|
||||
final ArrayList<HalEventConfig> list = new ArrayList<>();
|
||||
|
|
@ -81,6 +81,7 @@ public class TelstickSerialCommTest {
|
|||
|
||||
|
||||
|
||||
|
||||
private static class TestEvent extends TellstickProtocol implements HalEventConfig,TellstickDevice {
|
||||
public int testData;
|
||||
|
||||
|
|
@ -105,6 +106,5 @@ public class TelstickSerialCommTest {
|
|||
|
||||
@Override
|
||||
public boolean equals(Object obj) {return testData == ((TestEvent)obj).testData;}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue