Skip to content

Commit

Permalink
fix: domain return MockUnitString
Browse files Browse the repository at this point in the history
to use  MockUnitString chain
  • Loading branch information
zengLH1981 authored Dec 29, 2021
1 parent 6f92799 commit 3a86b1e
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 3a86b1e

Please sign in to comment.