Files
fdroidclient/test/src/mock/MockCategoryResources.java
Peter Serwylo 43f8ea0814 Added category tests.
This will be useful when somebody wants to move categories from a comma
separated string in the app table, to a separate table all together.
2014-02-16 21:54:50 +11:00

22 lines
496 B
Java

package mock;
import android.test.mock.*;
import org.fdroid.fdroid.*;
public class MockCategoryResources extends MockResources {
@Override
public String getString(int id) {
if (id == R.string.category_all) {
return "All";
} else if (id == R.string.category_recentlyupdated) {
return "Recently Updated";
} else if (id == R.string.category_whatsnew) {
return "Whats New";
} else {
return "";
}
}
}