Fix tests compilation after 5c4de9a1
This commit is contained in:
parent
7dd239d4bf
commit
bc283304df
@ -12,11 +12,11 @@ public class MockCategoryResources extends MockFDroidResources {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getString(int id) {
|
public String getString(int id) {
|
||||||
if (id == R.string.category_all) {
|
if (id == R.string.category_All) {
|
||||||
return "All";
|
return "All";
|
||||||
} else if (id == R.string.category_recentlyupdated) {
|
} else if (id == R.string.category_Recently_Updated) {
|
||||||
return "Recently Updated";
|
return "Recently Updated";
|
||||||
} else if (id == R.string.category_whatsnew) {
|
} else if (id == R.string.category_Whats_New) {
|
||||||
return "Whats New";
|
return "Whats New";
|
||||||
} else {
|
} else {
|
||||||
return "";
|
return "";
|
||||||
|
@ -300,9 +300,9 @@ public class AppProviderTest extends FDroidProviderTest<AppProvider> {
|
|||||||
|
|
||||||
List<String> categories = AppProvider.Helper.categories(getMockContext());
|
List<String> categories = AppProvider.Helper.categories(getMockContext());
|
||||||
String[] expected = new String[] {
|
String[] expected = new String[] {
|
||||||
getMockContext().getResources().getString(R.string.category_whatsnew),
|
getMockContext().getResources().getString(R.string.category_Whats_New),
|
||||||
getMockContext().getResources().getString(R.string.category_recentlyupdated),
|
getMockContext().getResources().getString(R.string.category_Recently_Updated),
|
||||||
getMockContext().getResources().getString(R.string.category_all),
|
getMockContext().getResources().getString(R.string.category_All),
|
||||||
"Animal",
|
"Animal",
|
||||||
"Mineral",
|
"Mineral",
|
||||||
"Vegetable"
|
"Vegetable"
|
||||||
@ -317,9 +317,9 @@ public class AppProviderTest extends FDroidProviderTest<AppProvider> {
|
|||||||
|
|
||||||
List<String> categories = AppProvider.Helper.categories(getMockContext());
|
List<String> categories = AppProvider.Helper.categories(getMockContext());
|
||||||
String[] expected = new String[] {
|
String[] expected = new String[] {
|
||||||
getMockContext().getResources().getString(R.string.category_whatsnew),
|
getMockContext().getResources().getString(R.string.category_Whats_New),
|
||||||
getMockContext().getResources().getString(R.string.category_recentlyupdated),
|
getMockContext().getResources().getString(R.string.category_Recently_Updated),
|
||||||
getMockContext().getResources().getString(R.string.category_all),
|
getMockContext().getResources().getString(R.string.category_All),
|
||||||
|
|
||||||
"Animal",
|
"Animal",
|
||||||
"Mineral",
|
"Mineral",
|
||||||
@ -333,9 +333,9 @@ public class AppProviderTest extends FDroidProviderTest<AppProvider> {
|
|||||||
|
|
||||||
List<String> categoriesLonger = AppProvider.Helper.categories(getMockContext());
|
List<String> categoriesLonger = AppProvider.Helper.categories(getMockContext());
|
||||||
String[] expectedLonger = new String[] {
|
String[] expectedLonger = new String[] {
|
||||||
getMockContext().getResources().getString(R.string.category_whatsnew),
|
getMockContext().getResources().getString(R.string.category_Whats_New),
|
||||||
getMockContext().getResources().getString(R.string.category_recentlyupdated),
|
getMockContext().getResources().getString(R.string.category_Recently_Updated),
|
||||||
getMockContext().getResources().getString(R.string.category_all),
|
getMockContext().getResources().getString(R.string.category_All),
|
||||||
|
|
||||||
"Animal",
|
"Animal",
|
||||||
"Mineral",
|
"Mineral",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user