Skip to content

Fixed package #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2020
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
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