package twitter4j; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import java.io.InputStream; import org.junit.Test; import twitter4j.auth.Authorization; import twitter4j.auth.BasicAuthorization; import twitter4j.conf.Configuration; import twitter4j.conf.PropertyConfiguration; public class TestTwitterBaseImpl { @Test public void testConstructor() { InputStream io = null; Configuration conf = new PropertyConfiguration(io); String userId = "user"; String password = "pass"; Authorization auth = new BasicAuthorization(userId, password); TwitterBaseImpl tbi = new TwitterBaseImpl(conf, auth) { }; assertNotNull(tbi); assertEquals(auth, tbi.auth); assertEquals(conf, tbi.conf); assertEquals(auth, tbi.getAuthorization()); assertEquals(conf, tbi.getConfiguration()); } }