Skip to content

Commit

Permalink
Resolve changes, now retries if failing to join multicast group
Browse files Browse the repository at this point in the history
  • Loading branch information
cartwrightian committed Jun 6, 2018
1 parent dc5ca79 commit 4932895
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
14 changes: 4 additions & 10 deletions src/main/tw/com/owllistener/network/EnergyMonitor.java
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
package tw.com.owllistener.network;

import java.io.IOException;
import java.util.LinkedList;
import java.util.Optional;
import java.util.Queue;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPathExpressionException;

import jersey.repackaged.com.google.common.collect.Lists;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xml.sax.SAXException;
import tw.com.owllistener.network.initialState.MarshalToJson;

import java.util.LinkedList;
import java.util.Optional;
import java.util.Queue;

public class EnergyMonitor {
private static final Logger logger = LoggerFactory.getLogger(EnergyMonitor.class);
private ReceiveMessages receiver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class TestReceiveMessages {

@Test
@Category(IntegrationTest.class)
public void shouldReceiveAndParseMessage() throws IOException {
public void shouldReceiveAndParseMessage() throws InterruptedException {
ReceiveMessages receiver = new ReceiveMessages(new TestConfiguration("url","bucketKey", "accessKey"),
new CurrentTime());

Expand Down
2 changes: 1 addition & 1 deletion src/test/tw/com/owllistener/unit/TestEnergyMonitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void beforeEachTestRuns() {
}

@Test
public void shouldRecordMessageAndStopIfRequested() throws SAXException, ParserConfigurationException, XPathExpressionException, IOException {
public void shouldRecordMessageAndStopIfRequested() throws InterruptedException {

EnergyMessage messageA = new EnergyMessage("idA", 1223);
EnergyMessage messageB = new EnergyMessage("idB", 1224);
Expand Down

0 comments on commit 4932895

Please sign in to comment.