@Test public void testGetLatestPlatformFolder() { File mockPlatformsFolder = mock(File.class); when( mockPlatformsFolder.listFiles(any(FileFilter.class)) ).thenReturn(new File[] { new File("/", "android-9"), new File("/", "android-21"), new File("/", "android-22"), new File("/", "android-13") }); Assert.assertEquals( "Find latest platform folder should be android-22", AndroidSdk.findLatestAndroidPlatformFolder(mockPlatformsFolder).getAbsolutePath(), new File("/", "android-22").getAbsolutePath()); }
public static File findLatestAndroidPlatformFolder() { return findLatestAndroidPlatformFolder(platformsFolder()); }
AndroidSdk { public static File findLatestAndroidPlatformFolder() { return findLatestAndroidPlatformFolder(platformsFolder()); } }
AndroidSdk { public static File findLatestAndroidPlatformFolder() { return findLatestAndroidPlatformFolder(platformsFolder()); }  }
AndroidSdk { public static File findLatestAndroidPlatformFolder() { return findLatestAndroidPlatformFolder(platformsFolder()); }  static File adb(); static File aapt(); static File android(); static File emulator(); static String androidHome(); static String androidJar(); static File androidSdkFolder(); static File findLatestAndroidPlatformFolder(); static File findLatestAndroidPlatformFolder(File platformsFolder); static File buildToolsFolder(); static File findLatestBuildToolsFolder(); static File findLatestBuildToolsFolder(File buildToolsHome); static void setAndroidHome(String androidHome); static void setAdbHome(String adbHome); static void setAndroidSdkVersion(String androidSdkVersion); static void setBuildToolsVersion(String buildToolsVersion); static File avdManager(); static int getAndroidVersionNumber(); static void setAvdManagerHome(String avdManager); }
AndroidSdk { public static File findLatestAndroidPlatformFolder() { return findLatestAndroidPlatformFolder(platformsFolder()); }  static File adb(); static File aapt(); static File android(); static File emulator(); static String androidHome(); static String androidJar(); static File androidSdkFolder(); static File findLatestAndroidPlatformFolder(); static File findLatestAndroidPlatformFolder(File platformsFolder); static File buildToolsFolder(); static File findLatestBuildToolsFolder(); static File findLatestBuildToolsFolder(File buildToolsHome); static void setAndroidHome(String androidHome); static void setAdbHome(String adbHome); static void setAndroidSdkVersion(String androidSdkVersion); static void setBuildToolsVersion(String buildToolsVersion); static File avdManager(); static int getAndroidVersionNumber(); static void setAvdManagerHome(String avdManager);  }