Back to project page line-chart-view.
The source code is released under:
MIT License
If you think the Android project line-chart-view listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.hogel.android.linechartview; /* www . j av a 2 s .com*/ import org.junit.Test; import org.robolectric.annotation.Config; import java.util.List; import static org.fest.assertions.api.Assertions.assertThat; @Config(emulateSdk = 18) public class LineChartViewTest extends ViewTestBase { private List<LineChartView.Point> points; @Override public void setUp() throws Exception { super.setUp(); } @Test public void createSuccess() { LineChartView lineChartView = new LineChartView(activity); lineChartView.setManualMinX(0); lineChartView.setManualMaxX(1000); assertThat(lineChartView.getXGridUnit()).isGreaterThan(0); lineChartView.setManualMinY(0); lineChartView.setManualMaxY(1000); assertThat(lineChartView.getXGridUnit()).isGreaterThan(0); } @Test public void createFailure() { try { new LineChartView(null); assertThat(true).isFalse(); } catch (Exception e) { } } }