Skip to content

Commit

Permalink
Merge pull request #107 from zengLH1981/patch-1
Browse files Browse the repository at this point in the history
fix: domain return MockUnitString
  • Loading branch information
nomemory authored Jan 2, 2022
2 parents d528e72 + 3a86b1e commit fd2076c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/andreinc/mockneat/unit/user/Emails.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public Supplier<String> supplier() {
* @param domains A var-arg String array containing the list of the domains to be used.
* @return A new {@code MockUnitString}.
*/
public MockUnit<String> domains(String... domains) {
public MockUnitString domains(String... domains) {
Supplier<String> supp = () -> {
String user = mockNeat.users().val();
String domain = mockNeat.from(domains).val();
Expand All @@ -53,7 +53,7 @@ public MockUnit<String> domains(String... domains) {
* @param domain The domain to be used.
* @return A new {@code MockUnitString}.
*/
public MockUnit<String> domain(String domain) {
public MockUnitString domain(String domain) {
return domains(domain);
}
}

0 comments on commit fd2076c

Please sign in to comment.