Package org.crank.crud.model

Examples of org.crank.crud.model.PersistedFile


    public void testUpload() {
        crudControllerBase.getDynamicProperties().put( "uploadFile_file"new UpFile());

        fileUploadHandler.upload( crudControllerBase );

        PersistedFile file = ((Entity)crudControllerBase.getEntity()).getFile();
        assertNotNull(file);
        assertEquals( file.getName(), "bar.txt" );
        assertEquals( file.getContentType(), "funsun" );
        assertEquals( file.getBytes()[0], 0);
    }
View Full Code Here

TOP

Related Classes of org.crank.crud.model.PersistedFile

Copyright © 2018 www.massapicom. 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.