Package in.partake.model.dao.access

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

package in.partake.model.dao.access;

import java.util.UUID;

import in.partake.app.PartakeApp;
import in.partake.model.dao.access.IUserOpenIDLinkAccess;
import in.partake.model.dto.UserOpenIDLink;

import org.junit.Before;

public class UserOpenIDLinkAccessTest extends AbstractDaoTestCaseBase<IUserOpenIDLinkAccess, UserOpenIDLink, UUID> {
    @Before
    public void setup() throws Exception {
        super.setup(PartakeApp.getDBService().getDAOs().getOpenIDLinkageAccess());
    }

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

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

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.