@Test public void testGetLatestBuildToolsFolder() { File mockBuildToolsHome = mock(File.class); when( mockBuildToolsHome.listFiles(any(FileFilter.class)) ).thenReturn(new File[] { new File("/", "22.0.0"), new File("/", "22.0.3"), new File("/", "22.0.1"), new File("/", "25.0.1") }); Assert.assertEquals( "Find latest build-tools folder should return 25.0.1", AndroidSdk.findLatestBuildToolsFolder(mockBuildToolsHome).getAbsolutePath(), new File("/", "25.0.1").getAbsolutePath()); }
public static File findLatestBuildToolsFolder() { return findLatestBuildToolsFolder(buildToolsHome()); }
AndroidSdk { public static File findLatestBuildToolsFolder() { return findLatestBuildToolsFolder(buildToolsHome()); } }
AndroidSdk { public static File findLatestBuildToolsFolder() { return findLatestBuildToolsFolder(buildToolsHome()); }  }
AndroidSdk { public static File findLatestBuildToolsFolder() { return findLatestBuildToolsFolder(buildToolsHome()); }  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 findLatestBuildToolsFolder() { return findLatestBuildToolsFolder(buildToolsHome()); }  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);  }