package org.browsermob.proxy;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExternalResource;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertThat;
public class ProxyServerTest {
private ProxyServer server = new ProxyServer(0);
@Before
public void startServer() throws Exception {
server.start();
}
@After
public void stopServer() throws Exception {
server.stop();
}
@Test
public void portAllocation() throws Exception {
assertThat(server.getPort(), not(equalTo(0)));
}
}