package me.dielsonsales.app.openpomodoro.components;

import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.test.ActivityInstrumentationTestCase2;
import android.test.suitebuilder.annotation.SmallTest;

import me.dielsonsales.app.openpomodoro.MainActivity;

public class ClockCanvasTest extends ActivityInstrumentationTestCase2<MainActivity> {

    AppCompatActivity mActivity;
    ClockCanvas mClockCanvas;

    public ClockCanvasTest() {
        super(MainActivity.class);
    }

    @Override
    public void setUp() throws Exception {
        super.setUp();
        setActivityInitialTouchMode(true);
        mActivity = getActivity();
        mClockCanvas = (ClockCanvas) mActivity.findViewById(me.dielsonsales.app.openpomodoro.R.id.clockCanvas);
        testPreconditions();
    }

    public void testPreconditions() {
        assertNotNull("Activity is null", mActivity);
        assertNotNull("ClockCanvas is null", mClockCanvas);
    }

    @SmallTest
    public void testColors() {
        assertEquals(mClockCanvas.POMODORO_COLOR, Color.YELLOW);
    }

}

@@ -237,16 +237,44 @@
 lTest;%0A%0A
+import java.util.Calendar;%0A%0A
 import m
@@ -1124,13 +1124,459 @@
 W);%0A    
+    assertEquals(mClockCanvas.POINTERS_COLOR, Color.WHITE);%0A    %7D%0A%0A    @SmallTest%0A    public void testTime() %7B%0A        Calendar currentTime = Calendar.getInstance();%0A        mClockCanvas.setTime(currentTime);%0A        Calendar expectedTime = mClockCanvas.getTime();%0A        assertEquals(currentTime.get(Calendar.HOUR), expectedTime.get(Calendar.HOUR));%0A        assertEquals(currentTime.get(Calendar.MINUTE), expectedTime.get(Calendar.MINUTE));%0A    
 %7D
-%0A
 %0A%7D%0A

Add testTime to ClockCanvasTest