@@ -0,0 +1,1291 @@
+/*%0A * This file provided by Facebook is for non-commercial testing and evaluation%0A * purposes only.  Facebook reserves all rights not expressly granted.%0A *%0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL%0A * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN%0A * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN%0A * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.%0A */%0Apackage com.facebook.fresco.samples.showcase;%0A%0Aimport android.support.test.espresso.matcher.BoundedMatcher;%0Aimport android.view.View;%0Aimport com.facebook.drawee.view.SimpleDraweeView;%0Aimport org.hamcrest.Description;%0A%0Aclass DraweeViewHasImageMatcher %7B%0A%0A  static BoundedMatcher%3CView, SimpleDraweeView%3E hasImage() %7B%0A    return new BoundedMatcher%3CView, SimpleDraweeView%3E(SimpleDraweeView.class) %7B%0A      @Override%0A      public void describeTo(Description description) %7B%0A        description.appendText(%22has image%22);%0A      %7D%0A%0A      @Override%0A      public boolean matchesSafely(SimpleDraweeView draweeView) %7B%0A        return draweeView.getHierarchy().hasImage();%0A      %7D%0A    %7D;%0A  %7D%0A%7D%0A

Add DraweeViewHasImageMatcher class for E2E tests