We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb88f3a commit 169a267Copy full SHA for 169a267
src/main/java/dsl/Mailer.java
@@ -31,7 +31,7 @@ Mailer to(String to) {
31
return new Mailer(from, StringUtils.defaultIfEmpty(to, ""));
32
}
33
34
- public static void send(UnaryOperator<Mailer> block) {
+ static void send(UnaryOperator<Mailer> block) {
35
System.out.println(block.apply(EMPTY));
36
37
src/test/groovy/dsl/MailerTest.groovy
@@ -6,9 +6,7 @@ import spock.lang.Specification
6
* Created by mtumilowicz on 2018-11-30.
7
*/
8
class MailerTest extends Specification {
9
- def "_"() {
10
- // you don't have access to the object - you cannot reuse it later
11
- // there is NO Mailer object
+ def "sending mail"() {
12
Mailer.send({
13
it.from("mtumilowicz01@gmail.com")
14
.to("abc@o2.pl")
0 commit comments