Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed package
  • Loading branch information
Robert Jung committed Jan 4, 2020
commit 875f59a51a020d05fd9ebb0473547a9f89dd9494
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@

import static org.mockito.Matchers.any;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.*;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;

import io.github.hapjava.impl.HomekitWebHandler;
import io.github.hapjava.impl.http.HomekitClientConnectionFactory;
import io.github.hapjava.impl.jmdns.JmdnsHomekitAdvertiser;
import java.util.concurrent.CompletableFuture;
import org.junit.*;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

public class HomekitRootTest {

Expand Down Expand Up @@ -64,7 +69,7 @@ public void testWebHandlerStops() throws Exception {

@Test
public void testAdvertiserStarts() throws Exception {
String mac = "00:00:00:00:00:00";
final String mac = "00:00:00:00:00:00";
when(authInfo.getMac()).thenReturn(mac);
root.start();
verify(advertiser).advertise(eq(LABEL), eq(mac), eq(PORT), eq(1));
Expand Down