Search in sources :

Example 1 with ProfileDao

use of org.orcid.persistence.dao.ProfileDao in project ORCID-Source by ORCID.

the class ProfileEntityManagerImplTest method testDisable2FA.

public void testDisable2FA() {
    ProfileDao profileDao = Mockito.mock(ProfileDao.class);
    Mockito.doNothing().when(profileDao).disable2FA(Mockito.eq("some-orcid"));
    profileEntityManager.disable2FA("some-orcid");
    Mockito.verify(profileDao).disable2FA(Mockito.eq("some-orcid"));
}
Also used : ProfileDao(org.orcid.persistence.dao.ProfileDao)

Example 2 with ProfileDao

use of org.orcid.persistence.dao.ProfileDao in project ORCID-Source by ORCID.

the class ProfileEntityManagerImplTest method testDisable2FA.

public void testDisable2FA() {
    ProfileDao profileDao = Mockito.mock(ProfileDao.class);
    Mockito.doNothing().when(profileDao).disable2FA(Mockito.eq("some-orcid"));
    profileEntityManager.disable2FA("some-orcid");
    Mockito.verify(profileDao).disable2FA(Mockito.eq("some-orcid"));
}
Also used : ProfileDao(org.orcid.persistence.dao.ProfileDao)

Aggregations

ProfileDao (org.orcid.persistence.dao.ProfileDao)2