package org.asynchttpclient; import static org.junit.Assert.*; import java.io.File; import org.junit.Test; public class TestRequestBuilderBase { @Test public void testConstructor() { Request req = new RequestBuilder().build(); RequestBuilderBase rbb = new RequestBuilderBase( RequestBuilder.class, req) { }; assertNotNull(rbb); assertFalse(rbb.useRawUrl); } @Test public void testConstructor2() { RequestBuilderBase rbb = new RequestBuilderBase( RequestBuilder.class, "Hans", false) { }; assertNotNull(rbb); assertFalse(rbb.useRawUrl); } @Test public void testMethod() { String method = "Sam"; RequestBuilderBase rbb = new RequestBuilderBase( RequestBuilder.class, method, false) { }; Request build = rbb.build(); assertEquals(method, build.getMethod()); } }