From 5495cf97f54c5d74bff5a8e2226fe0b4fbd6e077 Mon Sep 17 00:00:00 2001 From: isuPatches Date: Sat, 1 Jul 2017 23:54:04 -0500 Subject: [PATCH] Rename GetManagerUtil close #46 --- ...{GetManagerUtilTest.java => ManagerUtilTest.java} | 12 ++++++------ .../src/main/java/com/isupatches/wisefy/WiseFy.java | 6 +++--- .../util/{GetManagerUtil.java => ManagerUtil.java} | 10 +++++----- 3 files changed, 14 insertions(+), 14 deletions(-) rename wisefy/src/androidTest/java/com/isupatches/wisefy/util/{GetManagerUtilTest.java => ManagerUtilTest.java} (62%) rename wisefy/src/main/java/com/isupatches/wisefy/util/{GetManagerUtil.java => ManagerUtil.java} (89%) diff --git a/wisefy/src/androidTest/java/com/isupatches/wisefy/util/GetManagerUtilTest.java b/wisefy/src/androidTest/java/com/isupatches/wisefy/util/ManagerUtilTest.java similarity index 62% rename from wisefy/src/androidTest/java/com/isupatches/wisefy/util/GetManagerUtilTest.java rename to wisefy/src/androidTest/java/com/isupatches/wisefy/util/ManagerUtilTest.java index 6e841ba8..c5b1e558 100644 --- a/wisefy/src/androidTest/java/com/isupatches/wisefy/util/GetManagerUtilTest.java +++ b/wisefy/src/androidTest/java/com/isupatches/wisefy/util/ManagerUtilTest.java @@ -11,9 +11,9 @@ import static junit.framework.Assert.*; -public class GetManagerUtilTest extends BaseTestClass { +public class ManagerUtilTest extends BaseTestClass { - public GetManagerUtilTest() { + public ManagerUtilTest() { super(TestActivity.class); } @@ -22,25 +22,25 @@ public GetManagerUtilTest() { @Test public void testGetConnectivityManager() { - ConnectivityManager connectivityManager = GetManagerUtil.getInstance().getConnectivityManager(mActivityTestRule.getActivity()); + ConnectivityManager connectivityManager = ManagerUtil.getInstance().getConnectivityManager(mActivityTestRule.getActivity()); assertNotNull(connectivityManager); } @Test public void testGetConnectivityManagerNullActivity() { - ConnectivityManager connectivityManager = GetManagerUtil.getInstance().getConnectivityManager(null); + ConnectivityManager connectivityManager = ManagerUtil.getInstance().getConnectivityManager(null); assertNull(connectivityManager); } @Test public void testGetWiFiManager() { - WifiManager wifiManager = GetManagerUtil.getInstance().getWiFiManager(mActivityTestRule.getActivity()); + WifiManager wifiManager = ManagerUtil.getInstance().getWiFiManager(mActivityTestRule.getActivity()); assertNotNull(wifiManager); } @Test public void testGetWiFiManagerNullActivity() { - WifiManager wifiManager = GetManagerUtil.getInstance().getWiFiManager(null); + WifiManager wifiManager = ManagerUtil.getInstance().getWiFiManager(null); assertNull(wifiManager); } } \ No newline at end of file diff --git a/wisefy/src/main/java/com/isupatches/wisefy/WiseFy.java b/wisefy/src/main/java/com/isupatches/wisefy/WiseFy.java index cf75dbca..89e1136c 100644 --- a/wisefy/src/main/java/com/isupatches/wisefy/WiseFy.java +++ b/wisefy/src/main/java/com/isupatches/wisefy/WiseFy.java @@ -26,7 +26,7 @@ import android.net.wifi.WifiManager; import android.text.TextUtils; import android.util.Log; -import com.isupatches.wisefy.util.GetManagerUtil; +import com.isupatches.wisefy.util.ManagerUtil; import com.isupatches.wisefy.util.LogUtil; import com.isupatches.wisefy.util.SSIDUtil; import java.util.ArrayList; @@ -60,8 +60,8 @@ public class WiseFy { */ private WiseFy(withContext withContext) { this.mLoggingEnabled = withContext.loggingEnabled; - this.mConnectivityManager = GetManagerUtil.getInstance().getConnectivityManager(withContext.context); - this.mWifiManager = GetManagerUtil.getInstance().getWiFiManager(withContext.context); + this.mConnectivityManager = ManagerUtil.getInstance().getConnectivityManager(withContext.context); + this.mWifiManager = ManagerUtil.getInstance().getWiFiManager(withContext.context); } /** diff --git a/wisefy/src/main/java/com/isupatches/wisefy/util/GetManagerUtil.java b/wisefy/src/main/java/com/isupatches/wisefy/util/ManagerUtil.java similarity index 89% rename from wisefy/src/main/java/com/isupatches/wisefy/util/GetManagerUtil.java rename to wisefy/src/main/java/com/isupatches/wisefy/util/ManagerUtil.java index 7dc9042e..481ec901 100644 --- a/wisefy/src/main/java/com/isupatches/wisefy/util/GetManagerUtil.java +++ b/wisefy/src/main/java/com/isupatches/wisefy/util/ManagerUtil.java @@ -22,21 +22,21 @@ import com.isupatches.wisefy.WiseFy; -public class GetManagerUtil { +public class ManagerUtil { - private static final GetManagerUtil GET_MANAGER_UTIL = new GetManagerUtil(); + private static final ManagerUtil MANAGER_UTIL = new ManagerUtil(); /** * Private constructor with no setup */ - private GetManagerUtil() { + private ManagerUtil() { } /** * @return instance of GetManagerUtil */ - public static GetManagerUtil getInstance() { - return GET_MANAGER_UTIL; + public static ManagerUtil getInstance() { + return MANAGER_UTIL; } /**