Skip to content

Commit 52d46f3

Browse files
committed
doc updates
1 parent ae8c8e8 commit 52d46f3

File tree

2 files changed

+60
-7
lines changed

2 files changed

+60
-7
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*********************************************************************
2+
Copyright 2014 the Flapi authors
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
********************************************************************/
16+
17+
package unquietcode.tools.flapi.examples.email;
18+
19+
import unquietcode.tools.flapi.annotations.*;
20+
21+
import java.io.File;
22+
23+
/**
24+
* @author Ben Fagin
25+
* @version 2014-11-03
26+
*/
27+
@Block(name="Email")
28+
public interface AnnotatedEmailHelper {
29+
30+
@AtMost(1)
31+
void subject(String subject);
32+
33+
@AtLeast(1)
34+
void addRecipient(String emailAddress);
35+
36+
@Exactly(1)
37+
void sender(String emailAddress);
38+
39+
@Any
40+
void addCC(String emailAddress);
41+
42+
@Any
43+
void addBCC(String emailAddress);
44+
45+
@AtMost(1)
46+
void body(String text);
47+
48+
@Any
49+
void addAttachment(File file);
50+
51+
@Last
52+
EmailMessage send();
53+
}

src/test/java/unquietcode/tools/flapi/examples/email/EmailBuilderExample.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ public Descriptor descriptor() {
3939
.build();
4040
}
4141

42-
@Test
43-
public void annot() {
44-
Flapi.create(AnnotatedEmailHelper.class)
45-
.setPackage("unquietcode.tools.flapi.examples.email.builder")
46-
.setStartingMethodName("compose")
47-
.build();
48-
}
42+
// @Test
43+
// public void annotated() {
44+
// Flapi.create(AnnotatedEmailHelper.class)
45+
// .setPackage("unquietcode.tools.flapi.examples.email.builder")
46+
// .setStartingMethodName("compose")
47+
// .build();
48+
// }
4949

5050
@Test
5151
public void usage() {

0 commit comments

Comments
 (0)