@@ -0,0 +1,1014 @@
+package com.navercorp.utilset.ui;%0A%0Aimport static org.hamcrest.CoreMatchers.*;%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.robolectric.Robolectric;%0Aimport org.robolectric.RobolectricTestRunner;%0Aimport org.robolectric.annotation.Config;%0Aimport org.robolectric.shadows.ShadowLog;%0A%0Aimport android.content.Context;%0A%0A/**%0A*%0A* @author sanghyuk.jung%0A*/%0A@RunWith(RobolectricTestRunner.class)%0A@Config(manifest = Config.NONE)%0Apublic class PixelUtilsTest %7B%0A%09private Context context;%0A%0A%09@Before%0A%09public void setUp() %7B%0A%09%09ShadowLog.stream = System.out;%0A%09%09this.context = Robolectric.application;%0A%09%7D%0A%0A%09@Test%0A%09public void shouldGetDpFromPixel()%7B%0A%09%09Robolectric.setDisplayMetricsDensity(1.5f);%0A%09%09int dp = PixelUtils.getDpFromPixel(context, 50);%0A%09%09assertThat(dp, is(33));%0A%09%7D%0A%09%0A%09@Test%0A%09public void shouldPixelDpFromDp()%7B%0A%09%09Robolectric.setDisplayMetricsDensity(1.5f);%0A%09%09int pixel = PixelUtils.getPixelFromDP(context, 33);%0A%09%09assertThat(pixel, is(50));%0A%09%7D%0A%7D%0A

Add tests for PixelUtils