Package in.partake.model.dao.access

Source Code of in.partake.model.dao.access.UserCalendarLinkAccessTest

package in.partake.model.dao.access;

import in.partake.app.PartakeApp;
import in.partake.model.dao.access.IUserCalendarLinkageAccess;
import in.partake.model.dto.UserCalendarLink;

import java.util.UUID;

import org.junit.Before;

public class UserCalendarLinkAccessTest extends AbstractDaoTestCaseBase<IUserCalendarLinkageAccess, UserCalendarLink, String> {
    @Before
    public void setup() throws Exception {
        super.setup(PartakeApp.getDBService().getDAOs().getCalendarAccess());
    }

    @Override
    protected UserCalendarLink create(long pkNumber, String pkSalt, int objNumber) {
        UUID id = new UUID(pkNumber, ("calendarLinkage" + pkSalt).hashCode());
        return new UserCalendarLink(id.toString(), "calendarLinkage" + objNumber);
    }
}
TOP

Related Classes of in.partake.model.dao.access.UserCalendarLinkAccessTest

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.