package com.xtremelabs.robolectric.shadows;

import android.content.res.Resources;
import android.content.res.TypedArray;
import com.xtremelabs.robolectric.Robolectric;
import com.xtremelabs.robolectric.internal.Implementation;
import com.xtremelabs.robolectric.internal.Implements;

@SuppressWarnings({"UnusedDeclaration"})
@Implements(TypedArray.class)
public class ShadowTypedArray {
    @Implementation
    public Resources getResources() {
        return Robolectric.application.getResources();
    }
}

@@ -498,11 +498,112 @@
 );%0A    %7D
+%0A%0A    @Implementation%0A    public int getInt(int index, int defValue) %7B%0A        return defValue;%0A    %7D
 %0A%7D%0A

Return the default value from TypedArray getInt calls