-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85d5576
commit d7cbda3
Showing
5 changed files
with
62 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
orcid-core/src/test/java/org/orcid/core/common/manager/EmailDomainManagerTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package org.orcid.core.common.manager; | ||
|
||
import org.junit.Before; | ||
import org.junit.Test; | ||
import org.mockito.Mock; | ||
import org.orcid.core.common.manager.impl.EmailDomainManagerImpl; | ||
import org.orcid.persistence.dao.EmailDomainDao; | ||
import org.orcid.test.TargetProxyHelper; | ||
|
||
public class EmailDomainManagerTest { | ||
@Mock | ||
private EmailDomainDao emailDomainDaoMock; | ||
|
||
@Mock | ||
private EmailDomainDao emailDomainDaoReadOnlyMock; | ||
|
||
EmailDomainManager edm = new EmailDomainManagerImpl(); | ||
|
||
@Before | ||
public void before(){ | ||
TargetProxyHelper.injectIntoProxy(edm, "emailDomainDao", emailDomainDaoMock); | ||
TargetProxyHelper.injectIntoProxy(edm, "emailDomainDaoReadOnly", emailDomainDaoReadOnlyMock); | ||
} | ||
|
||
@Test | ||
public void createEmailDomainTest() { | ||
// Check null domain | ||
// Check empty domain | ||
// Check null category | ||
// Check good value | ||
} | ||
|
||
@Test | ||
public void updateCategory() { | ||
|
||
} | ||
|
||
@Test | ||
public void findByEmailDoman() { | ||
|
||
} | ||
|
||
@Test | ||
public void findByCategory() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters