Tests pass with Android jar 4.0.1.2 on Maven
diff --git a/src/main/java/com/xtremelabs/robolectric/shadows/ShadowActivity.java b/src/main/java/com/xtremelabs/robolectric/shadows/ShadowActivity.java
index 086b324..50e40d5 100644
--- a/src/main/java/com/xtremelabs/robolectric/shadows/ShadowActivity.java
+++ b/src/main/java/com/xtremelabs/robolectric/shadows/ShadowActivity.java
@@ -467,6 +467,7 @@
invoker.call("onResume").withNothing();
}
+ @Implementation
public void recreate() {
Bundle outState = new Bundle();
final ActivityInvoker invoker = new ActivityInvoker();
diff --git a/src/main/java/com/xtremelabs/robolectric/shadows/ShadowAlertDialog.java b/src/main/java/com/xtremelabs/robolectric/shadows/ShadowAlertDialog.java
index 7da34a5..53f20f6 100644
--- a/src/main/java/com/xtremelabs/robolectric/shadows/ShadowAlertDialog.java
+++ b/src/main/java/com/xtremelabs/robolectric/shadows/ShadowAlertDialog.java
@@ -462,7 +462,8 @@
return dialog;
}
- protected Context getContext() {
+ @Implementation
+ public Context getContext() {
return context;
}
}
diff --git a/src/main/java/com/xtremelabs/robolectric/shadows/ShadowCursorWrapper.java b/src/main/java/com/xtremelabs/robolectric/shadows/ShadowCursorWrapper.java
index 2af243e..9456c6b 100644
--- a/src/main/java/com/xtremelabs/robolectric/shadows/ShadowCursorWrapper.java
+++ b/src/main/java/com/xtremelabs/robolectric/shadows/ShadowCursorWrapper.java
@@ -210,6 +210,7 @@
return 0;
}
+ @Implementation
public Cursor getWrappedCursor() {
return wrappedCursor;
}
diff --git a/src/main/java/com/xtremelabs/robolectric/shadows/ShadowImageView.java b/src/main/java/com/xtremelabs/robolectric/shadows/ShadowImageView.java
index 7d205da..9963cdf 100644
--- a/src/main/java/com/xtremelabs/robolectric/shadows/ShadowImageView.java
+++ b/src/main/java/com/xtremelabs/robolectric/shadows/ShadowImageView.java
@@ -126,6 +126,7 @@
return imageDrawable;
}
+ @Implementation
public int getAlpha() {
return alpha;
}
diff --git a/src/main/java/com/xtremelabs/robolectric/shadows/ShadowView.java b/src/main/java/com/xtremelabs/robolectric/shadows/ShadowView.java
index 555be36..baf3ca4 100644
--- a/src/main/java/com/xtremelabs/robolectric/shadows/ShadowView.java
+++ b/src/main/java/com/xtremelabs/robolectric/shadows/ShadowView.java
@@ -643,30 +643,22 @@
wasInvalidated = false;
}
- /**
- * Non-Android accessor.
- */
+ @Implementation
public void setLeft(int left) {
this.left = left;
}
- /**
- * Non-Android accessor.
- */
+ @Implementation
public void setTop(int top) {
this.top = top;
}
- /**
- * Non-Android accessor.
- */
+ @Implementation
public void setRight(int right) {
this.right = right;
}
- /**
- * Non-Android accessor.
- */
+ @Implementation
public void setBottom(int bottom) {
this.bottom = bottom;
}