@@ -0,0 +1,1304 @@
+package com.basgeekball.awesomevalidation.utility;%0A%0Aimport android.view.ViewGroup;%0Aimport android.widget.EditText;%0Aimport android.widget.LinearLayout;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport org.mockito.InOrder;%0A%0Aimport static org.mockito.Mockito.RETURNS_DEEP_STUBS;%0Aimport static org.mockito.Mockito.inOrder;%0Aimport static org.mockito.Mockito.mock;%0A%0Apublic class ViewsInfoTest extends TestCase %7B%0A%0A    private int mIndex = 128;%0A    private ViewGroup mMockedParent;%0A    private LinearLayout mMockedNewContainer;%0A    private EditText mMockedEditText;%0A    private ViewsInfo mViewsInfo;%0A%0A    @Override%0A    protected void setUp() throws Exception %7B%0A        super.setUp();%0A        mMockedParent = mock(ViewGroup.class);%0A        mMockedNewContainer = mock(LinearLayout.class);%0A        mMockedEditText = mock(EditText.class, RETURNS_DEEP_STUBS);%0A        mViewsInfo = new ViewsInfo(mIndex, mMockedParent, mMockedNewContainer, mMockedEditText);%0A    %7D%0A%0A    public void testRestoreViews() %7B%0A        mViewsInfo.restoreViews();%0A        InOrder order = inOrder(mMockedNewContainer, mMockedParent);%0A        order.verify(mMockedNewContainer).removeView(mMockedEditText);%0A        order.verify(mMockedParent).removeView(mMockedNewContainer);%0A        order.verify(mMockedParent).addView(mMockedEditText, mIndex);%0A    %7D%0A%0A%7D%0A

Add ViewsInfoTest