18
18
*/
19
19
20
20
/*
21
- * Copyright (c) 2006, 2021 , Oracle and/or its affiliates. All rights reserved.
21
+ * Copyright (c) 2006, 2022 , Oracle and/or its affiliates. All rights reserved.
22
22
* Portions Copyright (c) 2020, Ric Harris <[email protected] >.
23
23
*/
24
24
package org .opengrok .indexer .history ;
41
41
/**
42
42
* @author austvik
43
43
*/
44
- public class SubversionHistoryParserTest {
44
+ class SubversionHistoryParserTest {
45
45
46
46
private SubversionHistoryParser instance ;
47
47
@@ -59,7 +59,7 @@ public void tearDown() {
59
59
* Test of parse method, of class SubversionHistoryParser.
60
60
*/
61
61
@ Test
62
- public void parseEmpty () throws Exception {
62
+ void parseEmpty () throws Exception {
63
63
// Empty repository shoud produce at least valid XML.
64
64
History result = instance .parse ("<?xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n " +
65
65
"<log>\n " + "</log>" );
@@ -72,7 +72,7 @@ public void parseEmpty() throws Exception {
72
72
* Test of parsing output similar to that in subversions own svn repository.
73
73
*/
74
74
@ Test
75
- public void parseALaSvn () throws Exception {
75
+ void parseALaSvn () throws Exception {
76
76
String revId1 = "12345" ;
77
77
String author1 = "username1" ;
78
78
String date1 = "2007-09-11T11:48:56.123456Z" ;
@@ -177,14 +177,17 @@ private static class DateTimeTestData {
177
177
178
178
}
179
179
180
-
181
180
@ Test
182
- public void testDateFormats () {
181
+ void testDateFormats () {
183
182
DateTimeTestData [] dates = new DateTimeTestData [] {
184
- new DateTimeTestData ("2020-03-24T17:11:35.545818Z" , LocalDateTime .of (2020 , 3 , 24 , 17 , 11 , 35 , 545000000 )),
185
- new DateTimeTestData ("2007-09-11T11:48:56.123456Z" , LocalDateTime .of (2007 , 9 , 11 , 11 , 48 , 56 , 123000000 )),
186
- new DateTimeTestData ("2007-09-11T11:48:56.000000Z" , LocalDateTime .of (2007 , 9 , 11 , 11 , 48 , 56 )),
187
- new DateTimeTestData ("2007-09-11T11:48:56.Z" , LocalDateTime .of (2007 , 9 , 11 , 11 , 48 , 56 )),
183
+ new DateTimeTestData ("2020-03-24T17:11:35.545818Z" ,
184
+ LocalDateTime .of (2020 , 3 , 24 , 17 , 11 , 35 , 545000000 )),
185
+ new DateTimeTestData ("2007-09-11T11:48:56.123456Z" ,
186
+ LocalDateTime .of (2007 , 9 , 11 , 11 , 48 , 56 , 123000000 )),
187
+ new DateTimeTestData ("2007-09-11T11:48:56.000000Z" ,
188
+ LocalDateTime .of (2007 , 9 , 11 , 11 , 48 , 56 )),
189
+ new DateTimeTestData ("2007-09-11T11:48:56.Z" ,
190
+ LocalDateTime .of (2007 , 9 , 11 , 11 , 48 , 56 )),
188
191
new DateTimeTestData ("2007-09-11 11:48:56Z" ),
189
192
new DateTimeTestData ("2007-09-11T11:48:56" ),
190
193
new DateTimeTestData ("2007-09-11T11:48:56.123456" ),
0 commit comments