package org.robolectric.shadows;
import android.widget.ScrollView;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RuntimeEnvironment;
import org.robolectric.TestRunners;
import static junit.framework.Assert.assertEquals;
@RunWith(TestRunners.MultiApiSelfTest.class)
public class ShadowScrollViewTest {
@Test
public void shouldSmoothScrollTo() throws Exception {
ScrollView scrollView = new ScrollView(RuntimeEnvironment.application);
scrollView.smoothScrollTo(7, 6);
assertEquals(7, scrollView.getScrollX());
assertEquals(6, scrollView.getScrollY());
}
}