Package com.impetus.client.oraclenosql.entities

Examples of com.impetus.client.oraclenosql.entities.UserProfile


    public void executeLOBTest()
    {
        // Save Record
        File file = new File("src/test/resources/nature.jpg");
        long fileSize = file.getTotalSpace();
        UserProfile userProfile = new UserProfile(1, "Amresh", file);
        persist(userProfile);

        // Find Record
        clearEm();
        UserProfile up = (UserProfile) find(UserProfile.class, 1);
        Assert.assertNotNull(up);
        Assert.assertEquals(1, up.getUserId());
        Assert.assertEquals("Amresh", up.getUserName());
        Assert.assertEquals(fileSize, up.getProfilePicture().getTotalSpace());

        // Delete Record
        clearEm();
        delete(up);
        Assert.assertNull(find(UserProfile.class, 1));
View Full Code Here

TOP

Related Classes of com.impetus.client.oraclenosql.entities.UserProfile

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.