Package org.jtalks.jcommune.model.entity

Examples of org.jtalks.jcommune.model.entity.Poll


    }

    @Test
    public void testUpdate() {
        String newTitle = "Changed title";
        Poll poll = PersistedObjectsFactory.createDefaultVoting();
        session.save(poll);

        poll.setTitle(newTitle);
        pollDao.saveOrUpdate(poll);
        session.flush();
        session.evict(poll);

        Poll changedPoll = (Poll) session.get(Poll.class, poll.getId());

        Assert.assertNotNull(changedPoll);
        Assert.assertEquals(newTitle, changedPoll.getTitle());
    }
View Full Code Here

TOP

Related Classes of org.jtalks.jcommune.model.entity.Poll

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.