@Test public void sizeIsFileItemSize() throws Exception { FileItem item = newMock(FileItem.class); UploadedFileItem uploadedFile = new UploadedFileItem(item); expect(item.getSize()).andReturn(66l); replay(); assertEquals(uploadedFile.getSize(), 66); verify(); }
@Override public long getSize() { return item.getSize(); }
UploadedFileItem implements UploadedFile { @Override public long getSize() { return item.getSize(); } }
UploadedFileItem implements UploadedFile { @Override public long getSize() { return item.getSize(); } UploadedFileItem(FileItem item); }
UploadedFileItem implements UploadedFile { @Override public long getSize() { return item.getSize(); } UploadedFileItem(FileItem item); @Override String getContentType(); @Override String getFileName(); @Override String getFilePath(); @Override long getSize(); @Override InputStream getStream(); @Override boolean isInMemory(); @Override void write(File file); void cleanup(); }
UploadedFileItem implements UploadedFile { @Override public long getSize() { return item.getSize(); } UploadedFileItem(FileItem item); @Override String getContentType(); @Override String getFileName(); @Override String getFilePath(); @Override long getSize(); @Override InputStream getStream(); @Override boolean isInMemory(); @Override void write(File file); void cleanup();  }