Package br.com.caelum.vraptor.observer.upload

Examples of br.com.caelum.vraptor.observer.upload.UploadedFileConverter.convert()


  public void testIfUploadedFileIsConverted() {
    when(request.getAttribute("myfile")).thenReturn(file);
   
    UploadedFileConverter converter = new UploadedFileConverter(request);
   
    UploadedFile uploadedFile = converter.convert("myfile", UploadedFile.class);
    assertEquals(file, uploadedFile);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.