@Test public void testClearProgress() throws Exception { Map<String, Object> contextMap = Maps.newHashMap(); ProgressControl control = new ProgressControl(UPLOAD_ID, 100); control.setContextMap(contextMap); assertNull(contextMap.get(ATTRIBUTE_NAME)); control.advance(50); assertNotNull(contextMap.get(ATTRIBUTE_NAME)); control.clearProgress(); assertNull(contextMap.get(ATTRIBUTE_NAME)); }
void clearProgress() { if (contextMap != null) { contextMap.remove(attributeName); } }
ProgressControl { void clearProgress() { if (contextMap != null) { contextMap.remove(attributeName); } } }
ProgressControl { void clearProgress() { if (contextMap != null) { contextMap.remove(attributeName); } } ProgressControl(String uploadId, long length); }
ProgressControl { void clearProgress() { if (contextMap != null) { contextMap.remove(attributeName); } } ProgressControl(String uploadId, long length); static byte getProgress(FacesContext context, String uploadId); void advance(long bytesRead); void setContextMap(Map<String, Object> contextMap); ServletInputStream wrapStream(ServletInputStream inputStream); }
ProgressControl { void clearProgress() { if (contextMap != null) { contextMap.remove(attributeName); } } ProgressControl(String uploadId, long length); static byte getProgress(FacesContext context, String uploadId); void advance(long bytesRead); void setContextMap(Map<String, Object> contextMap); ServletInputStream wrapStream(ServletInputStream inputStream);  }