Fix tests compilation after 5c4de9a1
This commit is contained in:
		
							parent
							
								
									7dd239d4bf
								
							
						
					
					
						commit
						bc283304df
					
				@ -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 "";
 | 
			
		||||
 | 
			
		||||
@ -300,9 +300,9 @@ public class AppProviderTest extends FDroidProviderTest<AppProvider> {
 | 
			
		||||
 | 
			
		||||
        List<String> 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<AppProvider> {
 | 
			
		||||
 | 
			
		||||
        List<String> 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<AppProvider> {
 | 
			
		||||
 | 
			
		||||
        List<String> 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",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user