Skip to content

Commit 0ad682a

Browse files
committed
test docs - fix format
1 parent 1d8ce7f commit 0ad682a

File tree

4 files changed

+60
-69
lines changed

4 files changed

+60
-69
lines changed

docs/src/test/java/com/bio4j/angulillos/TwitterGraph.java.md

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@ implements
2929
public abstract TwitterGraph<I,RV,RVT,RE,RET>.FollowsType Follows();
3030
```
3131

32+
### Vertices and their types
3233

33-
### Vertices and their types
34-
35-
36-
#### User
34+
#### User
3735

3836

3937
```java
@@ -42,7 +40,7 @@ implements
4240
VertexType<
4341
TwitterGraph<I,RV,RVT,RE,RET>.User,
4442
TwitterGraph<I,RV,RVT,RE,RET>.UserType
45-
>
43+
>
4644
{
4745
public UserType(RVT raw) { super(raw); }
4846
@Override public final UserType value() { return graph().User(); }
@@ -51,6 +49,7 @@ implements
5149

5250
##### User properties
5351

52+
5453
```java
5554
public final name name = new name();
5655
public final class name extends Property<User,UserType,name,String> {
@@ -65,19 +64,18 @@ implements
6564
}
6665

6766
public final class User
68-
extends
67+
extends
6968
Vertex<
7069
TwitterGraph<I,RV,RVT,RE,RET>.User,
7170
TwitterGraph<I,RV,RVT,RE,RET>.UserType
72-
>
73-
{
71+
>
72+
{
7473
public User(RV vertex, UserType type) { super(vertex, type); }
7574
@Override public final User self() { return this; }
7675
}
7776
```
7877

79-
80-
#### Tweet
78+
#### Tweet
8179

8280

8381
```java
@@ -86,7 +84,7 @@ implements
8684
VertexType<
8785
TwitterGraph<I,RV,RVT,RE,RET>.Tweet,
8886
TwitterGraph<I,RV,RVT,RE,RET>.TweetType
89-
>
87+
>
9088
{
9189
public TweetType(RVT raw) { super(raw); }
9290
@Override public final TweetType value() { return graph().Tweet(); }
@@ -95,6 +93,7 @@ implements
9593

9694
##### Tweet properties
9795

96+
9897
```java
9998
public final text text = new text();
10099
public final class text extends Property<Tweet,TweetType,text,String> {
@@ -109,24 +108,23 @@ implements
109108
}
110109

111110
public final class Tweet
112-
extends
111+
extends
113112
Vertex<
114113
TwitterGraph<I,RV,RVT,RE,RET>.Tweet,
115114
TwitterGraph<I,RV,RVT,RE,RET>.TweetType
116-
>
117-
{
115+
>
116+
{
118117
public Tweet(RV vertex, TweetType type) { super(vertex, type); }
119118
@Override public final Tweet self() { return this; }
120119
}
121120
```
122121

123-
124-
### Edges
122+
### Edges
125123

126124

127125
```java
128-
public final class PostedType
129-
extends
126+
public final class PostedType
127+
extends
130128
EdgeType<
131129
TwitterGraph<I,RV,RVT,RE,RET>.User,TwitterGraph<I,RV,RVT,RE,RET>.UserType,
132130
TwitterGraph<I,RV,RVT,RE,RET>.Posted,TwitterGraph<I,RV,RVT,RE,RET>.PostedType,
@@ -143,7 +141,7 @@ implements
143141
@Override public final Posted from(RE edge) { return new Posted(edge, this); }
144142
}
145143
public final class Posted
146-
extends
144+
extends
147145
Edge<
148146
TwitterGraph<I,RV,RVT,RE,RET>.User,TwitterGraph<I,RV,RVT,RE,RET>.UserType,
149147
TwitterGraph<I,RV,RVT,RE,RET>.Posted,TwitterGraph<I,RV,RVT,RE,RET>.PostedType,
@@ -154,8 +152,8 @@ implements
154152
@Override public final Posted self() { return this; }
155153
}
156154

157-
public final class FollowsType
158-
extends
155+
public final class FollowsType
156+
extends
159157
EdgeType<
160158
TwitterGraph<I,RV,RVT,RE,RET>.User,TwitterGraph<I,RV,RVT,RE,RET>.UserType,
161159
TwitterGraph<I,RV,RVT,RE,RET>.Follows,TwitterGraph<I,RV,RVT,RE,RET>.FollowsType,
@@ -169,7 +167,7 @@ implements
169167
@Override public final Follows from(RE edge) { return new Follows(edge, this); }
170168
}
171169
public final class Follows
172-
extends
170+
extends
173171
Edge<
174172
TwitterGraph<I,RV,RVT,RE,RET>.User,TwitterGraph<I,RV,RVT,RE,RET>.UserType,
175173
TwitterGraph<I,RV,RVT,RE,RET>.Follows,TwitterGraph<I,RV,RVT,RE,RET>.FollowsType,
@@ -180,8 +178,8 @@ implements
180178
@Override public final Follows self() { return this; }
181179
}
182180

183-
public final class RepliesToType
184-
extends
181+
public final class RepliesToType
182+
extends
185183
EdgeType<
186184
TwitterGraph<I,RV,RVT,RE,RET>.Tweet,TwitterGraph<I,RV,RVT,RE,RET>.TweetType,
187185
TwitterGraph<I,RV,RVT,RE,RET>.RepliesTo,TwitterGraph<I,RV,RVT,RE,RET>.RepliesToType,
@@ -196,7 +194,7 @@ implements
196194
@Override public final RepliesTo from(RE edge) { return new RepliesTo(edge, this); }
197195
}
198196
public final class RepliesTo
199-
extends
197+
extends
200198
Edge<
201199
TwitterGraph<I,RV,RVT,RE,RET>.Tweet,TwitterGraph<I,RV,RVT,RE,RET>.TweetType,
202200
TwitterGraph<I,RV,RVT,RE,RET>.RepliesTo,TwitterGraph<I,RV,RVT,RE,RET>.RepliesToType,
@@ -237,7 +235,7 @@ implements
237235
ET extends TwitterGraph<I, RV, RVT, RE, RET>.ElementType<E, ET>
238236
>
239237
implements
240-
TypedElement.Type<E,ET,TwitterGraph<I,RV,RVT,RE,RET>, I, RV, RVT, RE, RET>
238+
TypedElement.Type<E,ET,TwitterGraph<I,RV,RVT,RE,RET>, I, RV, RVT, RE, RET>
241239
{
242240
@Override public final TwitterGraph<I,RV,RVT,RE,RET> graph() { return TwitterGraph.this; }
243241
}
@@ -247,7 +245,7 @@ implements
247245
ET extends TwitterGraph<I, RV, RVT, RE, RET>.ElementType<E,ET>
248246
>
249247
implements
250-
TypedElement<E,ET,TwitterGraph<I, RV, RVT, RE, RET>, I, RV, RVT, RE, RET>
248+
TypedElement<E,ET,TwitterGraph<I, RV, RVT, RE, RET>, I, RV, RVT, RE, RET>
251249
{
252250
@Override public final TwitterGraph<I, RV, RVT, RE, RET> graph() { return TwitterGraph.this; }
253251
}
@@ -339,7 +337,7 @@ implements
339337
this.type = type;
340338
}
341339
@Override public final RE raw() { return this.edge; }
342-
@Override public final ET type() { return type; }
340+
@Override public final ET type() { return type; }
343341
}
344342

345343
public abstract class Property<
@@ -349,13 +347,14 @@ implements
349347
PV
350348
>
351349
implements
352-
com.bio4j.angulillos.Property<V,VT,P,PV,TwitterGraph<I, RV, RVT, RE, RET>, I, RV, RVT, RE, RET>
350+
com.bio4j.angulillos.Property<V,VT,P,PV,TwitterGraph<I, RV, RVT, RE, RET>, I, RV, RVT, RE, RET>
353351
{
354352
private VT type;
355353
protected Property(VT type) { this.type = type; }
356354
@Override public final VT elementType() { return type; }
357355
}
358356
}
357+
359358
```
360359

361360

docs/src/test/java/com/bio4j/angulillos/TwitterGraphTestSuite.java.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ public abstract class TwitterGraphTestSuite<I extends UntypedGraph<V,VT,E,ET>,V,
2424
}
2525
```
2626

27-
2827
This uses arity-specific methods to return **the** user that tweeted a tweet.
2928

30-
3129
```java
3230
public TwitterGraph<I,V,VT,E,ET>.User tweeted(TwitterGraph<I,V,VT,E,ET>.Tweet tweet) {
3331

src/test/java/com/bio4j/angulillos/TwitterGraph.java

Lines changed: 31 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,24 @@ public abstract class TwitterGraph <
2525
public abstract TwitterGraph<I,RV,RVT,RE,RET>.PostedType Posted();
2626
public abstract TwitterGraph<I,RV,RVT,RE,RET>.RepliesToType RepliesTo();
2727
public abstract TwitterGraph<I,RV,RVT,RE,RET>.FollowsType Follows();
28-
29-
/*
30-
### Vertices and their types
31-
*/
3228

33-
/*
34-
#### User
29+
/* ### Vertices and their types
30+
*/
31+
/* #### User
3532
*/
3633
public final class UserType
3734
extends
3835
VertexType<
3936
TwitterGraph<I,RV,RVT,RE,RET>.User,
4037
TwitterGraph<I,RV,RVT,RE,RET>.UserType
41-
>
38+
>
4239
{
4340
public UserType(RVT raw) { super(raw); }
4441
@Override public final UserType value() { return graph().User(); }
4542
@Override public final User from(RV vertex) { return new User(vertex, this); }
4643

47-
/* ##### User properties */
44+
/* ##### User properties
45+
*/
4846
public final name name = new name();
4947
public final class name extends Property<User,UserType,name,String> {
5048
public name() { super(UserType.this); }
@@ -58,32 +56,31 @@ public final class age extends Property<User,UserType,age,Integer> {
5856
}
5957

6058
public final class User
61-
extends
59+
extends
6260
Vertex<
6361
TwitterGraph<I,RV,RVT,RE,RET>.User,
6462
TwitterGraph<I,RV,RVT,RE,RET>.UserType
65-
>
66-
{
63+
>
64+
{
6765
public User(RV vertex, UserType type) { super(vertex, type); }
6866
@Override public final User self() { return this; }
6967
}
7068

71-
/*
72-
#### Tweet
69+
/* #### Tweet
7370
*/
74-
7571
public final class TweetType
7672
extends
7773
VertexType<
7874
TwitterGraph<I,RV,RVT,RE,RET>.Tweet,
7975
TwitterGraph<I,RV,RVT,RE,RET>.TweetType
80-
>
76+
>
8177
{
8278
public TweetType(RVT raw) { super(raw); }
8379
@Override public final TweetType value() { return graph().Tweet(); }
8480
@Override public final Tweet from(RV vertex) { return new Tweet(vertex, this); }
8581

86-
/* ##### Tweet properties */
82+
/* ##### Tweet properties
83+
*/
8784
public final text text = new text();
8885
public final class text extends Property<Tweet,TweetType,text,String> {
8986
public text() { super(TweetType.this); }
@@ -97,22 +94,21 @@ public final class url extends Property<Tweet,TweetType,url,String> {
9794
}
9895

9996
public final class Tweet
100-
extends
97+
extends
10198
Vertex<
10299
TwitterGraph<I,RV,RVT,RE,RET>.Tweet,
103100
TwitterGraph<I,RV,RVT,RE,RET>.TweetType
104-
>
105-
{
101+
>
102+
{
106103
public Tweet(RV vertex, TweetType type) { super(vertex, type); }
107104
@Override public final Tweet self() { return this; }
108105
}
109106

110107

111-
/*
112-
### Edges
108+
/* ### Edges
113109
*/
114-
public final class PostedType
115-
extends
110+
public final class PostedType
111+
extends
116112
EdgeType<
117113
TwitterGraph<I,RV,RVT,RE,RET>.User,TwitterGraph<I,RV,RVT,RE,RET>.UserType,
118114
TwitterGraph<I,RV,RVT,RE,RET>.Posted,TwitterGraph<I,RV,RVT,RE,RET>.PostedType,
@@ -129,7 +125,7 @@ public final class PostedType
129125
@Override public final Posted from(RE edge) { return new Posted(edge, this); }
130126
}
131127
public final class Posted
132-
extends
128+
extends
133129
Edge<
134130
TwitterGraph<I,RV,RVT,RE,RET>.User,TwitterGraph<I,RV,RVT,RE,RET>.UserType,
135131
TwitterGraph<I,RV,RVT,RE,RET>.Posted,TwitterGraph<I,RV,RVT,RE,RET>.PostedType,
@@ -140,8 +136,8 @@ public final class Posted
140136
@Override public final Posted self() { return this; }
141137
}
142138

143-
public final class FollowsType
144-
extends
139+
public final class FollowsType
140+
extends
145141
EdgeType<
146142
TwitterGraph<I,RV,RVT,RE,RET>.User,TwitterGraph<I,RV,RVT,RE,RET>.UserType,
147143
TwitterGraph<I,RV,RVT,RE,RET>.Follows,TwitterGraph<I,RV,RVT,RE,RET>.FollowsType,
@@ -155,7 +151,7 @@ public final class FollowsType
155151
@Override public final Follows from(RE edge) { return new Follows(edge, this); }
156152
}
157153
public final class Follows
158-
extends
154+
extends
159155
Edge<
160156
TwitterGraph<I,RV,RVT,RE,RET>.User,TwitterGraph<I,RV,RVT,RE,RET>.UserType,
161157
TwitterGraph<I,RV,RVT,RE,RET>.Follows,TwitterGraph<I,RV,RVT,RE,RET>.FollowsType,
@@ -166,8 +162,8 @@ public final class Follows
166162
@Override public final Follows self() { return this; }
167163
}
168164

169-
public final class RepliesToType
170-
extends
165+
public final class RepliesToType
166+
extends
171167
EdgeType<
172168
TwitterGraph<I,RV,RVT,RE,RET>.Tweet,TwitterGraph<I,RV,RVT,RE,RET>.TweetType,
173169
TwitterGraph<I,RV,RVT,RE,RET>.RepliesTo,TwitterGraph<I,RV,RVT,RE,RET>.RepliesToType,
@@ -182,7 +178,7 @@ public final class RepliesToType
182178
@Override public final RepliesTo from(RE edge) { return new RepliesTo(edge, this); }
183179
}
184180
public final class RepliesTo
185-
extends
181+
extends
186182
Edge<
187183
TwitterGraph<I,RV,RVT,RE,RET>.Tweet,TwitterGraph<I,RV,RVT,RE,RET>.TweetType,
188184
TwitterGraph<I,RV,RVT,RE,RET>.RepliesTo,TwitterGraph<I,RV,RVT,RE,RET>.RepliesToType,
@@ -219,7 +215,7 @@ public abstract class ElementType<
219215
ET extends TwitterGraph<I, RV, RVT, RE, RET>.ElementType<E, ET>
220216
>
221217
implements
222-
TypedElement.Type<E,ET,TwitterGraph<I,RV,RVT,RE,RET>, I, RV, RVT, RE, RET>
218+
TypedElement.Type<E,ET,TwitterGraph<I,RV,RVT,RE,RET>, I, RV, RVT, RE, RET>
223219
{
224220
@Override public final TwitterGraph<I,RV,RVT,RE,RET> graph() { return TwitterGraph.this; }
225221
}
@@ -229,7 +225,7 @@ public abstract class Element<
229225
ET extends TwitterGraph<I, RV, RVT, RE, RET>.ElementType<E,ET>
230226
>
231227
implements
232-
TypedElement<E,ET,TwitterGraph<I, RV, RVT, RE, RET>, I, RV, RVT, RE, RET>
228+
TypedElement<E,ET,TwitterGraph<I, RV, RVT, RE, RET>, I, RV, RVT, RE, RET>
233229
{
234230
@Override public final TwitterGraph<I, RV, RVT, RE, RET> graph() { return TwitterGraph.this; }
235231
}
@@ -321,7 +317,7 @@ protected Edge(RE edge, ET type) {
321317
this.type = type;
322318
}
323319
@Override public final RE raw() { return this.edge; }
324-
@Override public final ET type() { return type; }
320+
@Override public final ET type() { return type; }
325321
}
326322

327323
public abstract class Property<
@@ -331,10 +327,10 @@ public abstract class Property<
331327
PV
332328
>
333329
implements
334-
com.bio4j.angulillos.Property<V,VT,P,PV,TwitterGraph<I, RV, RVT, RE, RET>, I, RV, RVT, RE, RET>
330+
com.bio4j.angulillos.Property<V,VT,P,PV,TwitterGraph<I, RV, RVT, RE, RET>, I, RV, RVT, RE, RET>
335331
{
336332
private VT type;
337333
protected Property(VT type) { this.type = type; }
338334
@Override public final VT elementType() { return type; }
339335
}
340-
}
336+
}

0 commit comments

Comments
 (0)