@@ -0,0 +1,1553 @@
+package com.snowble.android.widget.verticalstepper;%0A%0Aimport android.graphics.Rect;%0Aimport android.text.TextPaint;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.assertj.core.api.Java6Assertions.assertThat;%0Aimport static org.mockito.Mockito.*;%0A%0Apublic class ViewUtilsTest %7B%0A    private String text;%0A    private TextPaint paint;%0A%0A    @Before%0A    public void setUp() %7B%0A        text = %22vertical stepper%22;%0A        paint = mock(TextPaint.class);%0A    %7D%0A%0A    @Test%0A    public void findTextCenterStartX() throws Exception %7B%0A        float textWidth = 30f;%0A        int totalWidth = 100;%0A        when(paint.measureText(text)).thenReturn(textWidth);%0A%0A        float centerX = ViewUtils.findTextCenterStartX(text, totalWidth, paint);%0A%0A        Rect outer = new Rect(0, 0, totalWidth, 0);%0A        Rect inner = new Rect(0, 0, (int) textWidth, 0);%0A        int expectedCenter = outer.centerX() - inner.centerX();%0A        assertThat(centerX).isEqualTo(expectedCenter);%0A    %7D%0A%0A    @Test%0A    public void findTextCenterStartY() throws Exception %7B%0A        int textHeight = 30;%0A        int totalHeight = 100;%0A        Rect measureRect = new Rect(0, 0, 0, textHeight);%0A%0A        float centerY = ViewUtils.findTextCenterStartY(text, totalHeight, paint, measureRect);%0A%0A        verify(paint).getTextBounds(text, 0, 1, measureRect);%0A%0A        Rect outer = new Rect(0, 0, 0, totalHeight);%0A        Rect inner = new Rect(0, 0, 0, textHeight);%0A        int expectedCenter = outer.centerY() + inner.centerY();%0A        assertThat(centerY).isEqualTo(expectedCenter);%0A    %7D%0A%7D

Add tests for ViewUtils