diff --git a/F-Droid/test/src/mock/MockCategoryResources.java b/F-Droid/test/src/mock/MockCategoryResources.java index 706f0f526..228448a57 100644 --- a/F-Droid/test/src/mock/MockCategoryResources.java +++ b/F-Droid/test/src/mock/MockCategoryResources.java @@ -12,11 +12,11 @@ public class MockCategoryResources extends MockFDroidResources { @Override public String getString(int id) { - if (id == R.string.category_all) { + if (id == R.string.category_All) { return "All"; - } else if (id == R.string.category_recentlyupdated) { + } else if (id == R.string.category_Recently_Updated) { return "Recently Updated"; - } else if (id == R.string.category_whatsnew) { + } else if (id == R.string.category_Whats_New) { return "Whats New"; } else { return ""; diff --git a/F-Droid/test/src/org/fdroid/fdroid/AppProviderTest.java b/F-Droid/test/src/org/fdroid/fdroid/AppProviderTest.java index 654680ee2..7ed4b5c91 100644 --- a/F-Droid/test/src/org/fdroid/fdroid/AppProviderTest.java +++ b/F-Droid/test/src/org/fdroid/fdroid/AppProviderTest.java @@ -300,9 +300,9 @@ public class AppProviderTest extends FDroidProviderTest { List categories = AppProvider.Helper.categories(getMockContext()); String[] expected = new String[] { - getMockContext().getResources().getString(R.string.category_whatsnew), - getMockContext().getResources().getString(R.string.category_recentlyupdated), - getMockContext().getResources().getString(R.string.category_all), + getMockContext().getResources().getString(R.string.category_Whats_New), + getMockContext().getResources().getString(R.string.category_Recently_Updated), + getMockContext().getResources().getString(R.string.category_All), "Animal", "Mineral", "Vegetable" @@ -317,9 +317,9 @@ public class AppProviderTest extends FDroidProviderTest { List categories = AppProvider.Helper.categories(getMockContext()); String[] expected = new String[] { - getMockContext().getResources().getString(R.string.category_whatsnew), - getMockContext().getResources().getString(R.string.category_recentlyupdated), - getMockContext().getResources().getString(R.string.category_all), + getMockContext().getResources().getString(R.string.category_Whats_New), + getMockContext().getResources().getString(R.string.category_Recently_Updated), + getMockContext().getResources().getString(R.string.category_All), "Animal", "Mineral", @@ -333,9 +333,9 @@ public class AppProviderTest extends FDroidProviderTest { List categoriesLonger = AppProvider.Helper.categories(getMockContext()); String[] expectedLonger = new String[] { - getMockContext().getResources().getString(R.string.category_whatsnew), - getMockContext().getResources().getString(R.string.category_recentlyupdated), - getMockContext().getResources().getString(R.string.category_all), + getMockContext().getResources().getString(R.string.category_Whats_New), + getMockContext().getResources().getString(R.string.category_Recently_Updated), + getMockContext().getResources().getString(R.string.category_All), "Animal", "Mineral",