WXAttr extends SafePutConcurrentHashMap<String, Object> { public WXImageQuality getImageQuality() { Object obj = get(Constants.Name.QUALITY); if (obj == null) { obj = get(Constants.Name.IMAGE_QUALITY); } if (obj == null) { return WXImageQuality.LOW; } WXImageQuality waImageQuality = WXImageQuality.LOW; String imageQuality = obj.toString(); if (imageQuality.equals(Constants.Value.ORIGINAL)) { waImageQuality = WXImageQuality.ORIGINAL; } else if (imageQuality.equals(Constants.Value.LOW)) { waImageQuality = WXImageQuality.LOW; } else if (imageQuality.equals(Constants.Value.NORMAL)) { waImageQuality = WXImageQuality.NORMAL; } else if (imageQuality.equals(Constants.Value.HIGH)) { waImageQuality = WXImageQuality.HIGH; } return waImageQuality; }  static String getPrefix(Map<String, Object> attr); static String getSuffix(Map<String, Object> attr); static String getValue(Map<String, Object> attr); WXImageQuality getImageQuality(); WXImageSharpen getImageSharpen(); String getImageSrc(); boolean showIndicators(); boolean autoPlay(); String getScope(); String getLoadMoreRetry(); String getLoadMoreOffset(); String optString(String key); boolean getIsRecycleImage(); String getScrollDirection();  }
@Test public void testGetImageQuality() throws Exception { assertEquals(WXImageQuality.LOW,attr.getImageQuality()); attr.put(IMAGE_QUALITY,HIGH); assertEquals(WXImageQuality.HIGH,attr.getImageQuality()); }