Code example for Context

Methods: getResources

0
  @RealObject private Context realContext;
  private ShadowApplication shadowApplication;
 
  @Implementation 
  public String getString(int resId) {
    return realContext.getResources().getString(resId);
  } 
 
  @Implementation 
  public CharSequence getText(int resId) {
    return realContext.getResources().getText(resId);
  } 
 
  @Implementation 
  public String getString(int resId, Object... formatArgs) {
    return realContext.getResources().getString(resId, formatArgs);
  } 
 
  public RoboAttributeSet createAttributeSet(List<Attribute> attributes, Class<? extends View> viewClass) {
    RoboAttributeSet attributeSet = new RoboAttributeSet(attributes, getResources(), viewClass);
    if (isStrictI18n()) {