File tree Expand file tree Collapse file tree 4 files changed +6
-15
lines changed
main/java/cz/jiripinkas/jsitemapgenerator
test/java/cz/jiripinkas/jsitemapgenerator/robots Expand file tree Collapse file tree 4 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -240,8 +240,8 @@ public interface GeneratorConsumerWithException<T> {
240
240
void accept (T t ) throws Exception ;
241
241
}
242
242
243
- public interface StringSupplierWithException <String > {
244
- String get () throws Exception ;
243
+ public interface StringSupplierWithException <S > {
244
+ S get () throws Exception ;
245
245
}
246
246
247
247
/**
Original file line number Diff line number Diff line change 1
- /**
2
- *
3
- */
4
1
package cz .jiripinkas .jsitemapgenerator ;
5
2
6
3
import static java .util .Calendar .HOUR_OF_DAY ;
52
49
* @see <a href="http://www.w3.org/TR/NOTE-datetime">Date and Time Formats</a>
53
50
*/
54
51
public class W3CDateFormat extends SimpleDateFormat {
55
- private static final long serialVersionUID = -5733368073260485802L ;
56
52
57
53
/** The six patterns defined by W3C, plus {@link #AUTO} configuration */
58
54
public enum Pattern {
Original file line number Diff line number Diff line change @@ -23,14 +23,6 @@ private SitemapGenerator(String baseUrl) {
23
23
super (baseUrl );
24
24
}
25
25
26
- /**
27
- * @param baseUrl Base URL
28
- * @param additionalNamespaces Additional parameters
29
- */
30
- private SitemapGenerator (String baseUrl , AdditionalNamespace [] additionalNamespaces ) {
31
- this (baseUrl );
32
- }
33
-
34
26
/**
35
27
* Construct additional namespaces string
36
28
* @param additionalNamespaceList
Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ public class RobotsRuleTest {
8
8
9
9
@ Test
10
10
public void testBuilderOK () {
11
- RobotsRule .builder ().allowAll ().userAgentAll ().build ();
11
+ RobotsRule robotsRule = RobotsRule .builder ().allowAll ().userAgentAll ().build ();
12
+ assertEquals ("/" , robotsRule .getAllows ().get (0 ));
13
+ assertEquals ("*" , robotsRule .getUserAgent ());
14
+ assertTrue (robotsRule .getDisallows ().isEmpty ());
12
15
}
13
16
14
17
@ Test (expected = RobotsRuleException .class )
You can’t perform that action at this time.
0 commit comments