package com.noveogroup.android.task.ui;

import android.test.AndroidTestCase;

public class NewUIHandlerTest extends AndroidTestCase {

    public void testFirst() {
        throw new RuntimeException();
    }

}

@@ -53,153 +53,1472 @@
 oid.
-test.AndroidTestCase;%0A%0Apublic class NewUIHandlerTest extends AndroidTestCase %7B%0A%0A    public void testFirst() %7B%0A        throw new RuntimeException(
+os.Handler;%0Aimport android.os.Looper;%0Aimport android.test.AndroidTestCase;%0A%0Aimport junit.framework.Assert;%0A%0Aimport java.util.Arrays;%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0Apublic class NewUIHandlerTest extends AndroidTestCase %7B%0A%0A    private static Set%3CString%3E set(String... values) %7B%0A        return new HashSet%3CString%3E(Arrays.asList(values));%0A    %7D%0A%0A    private static final Runnable EMPTY_CALLBACK = new Runnable() %7B%0A        @Override%0A        public void run() %7B%0A        %7D%0A    %7D;%0A%0A    public void testConstructor() %7B%0A        NewUIHandler uiHandler1 = new NewUIHandler();%0A        uiHandler1.post(EMPTY_CALLBACK);%0A        NewUIHandler uiHandler2 = new NewUIHandler(getContext());%0A        uiHandler2.post(EMPTY_CALLBACK);%0A        NewUIHandler uiHandler3 = new NewUIHandler(Looper.myLooper());%0A        uiHandler3.post(EMPTY_CALLBACK);%0A        NewUIHandler uiHandler4 = new NewUIHandler(new Handler());%0A        uiHandler4.post(EMPTY_CALLBACK);%0A    %7D%0A%0A    public void testTags() %7B%0A        NewUIHandler uiHandler = new NewUIHandler();%0A        Assert.assertEquals(set(), uiHandler.tags());%0A%0A        NewUIHandler subHandler = uiHandler.sub(%22A%22, %22B%22);%0A        Assert.assertEquals(set(%22A%22, %22B%22), subHandler.tags());%0A        Assert.assertEquals(uiHandler, subHandler.root());%0A%0A        NewUIHandler subSubHandler = subHandler.sub(%22C%22);%0A        Assert.assertEquals(set(%22A%22, %22B%22, %22C%22), subSubHandler.tags());%0A        Assert.assertEquals(uiHandler, subSubHandler.root()
 );%0A 

implement testConstructor and testTags