Skip to content

Commit a92645b

Browse files
committed
tidy up
1 parent ef5de4f commit a92645b

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

opengrok-indexer/src/test/java/org/opengrok/indexer/history/SubversionHistoryParserTest.java

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
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.
2222
* Portions Copyright (c) 2020, Ric Harris <[email protected]>.
2323
*/
2424
package org.opengrok.indexer.history;
@@ -41,7 +41,7 @@
4141
/**
4242
* @author austvik
4343
*/
44-
public class SubversionHistoryParserTest {
44+
class SubversionHistoryParserTest {
4545

4646
private SubversionHistoryParser instance;
4747

@@ -59,7 +59,7 @@ public void tearDown() {
5959
* Test of parse method, of class SubversionHistoryParser.
6060
*/
6161
@Test
62-
public void parseEmpty() throws Exception {
62+
void parseEmpty() throws Exception {
6363
// Empty repository shoud produce at least valid XML.
6464
History result = instance.parse("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
6565
"<log>\n" + "</log>");
@@ -72,7 +72,7 @@ public void parseEmpty() throws Exception {
7272
* Test of parsing output similar to that in subversions own svn repository.
7373
*/
7474
@Test
75-
public void parseALaSvn() throws Exception {
75+
void parseALaSvn() throws Exception {
7676
String revId1 = "12345";
7777
String author1 = "username1";
7878
String date1 = "2007-09-11T11:48:56.123456Z";
@@ -177,14 +177,17 @@ private static class DateTimeTestData {
177177

178178
}
179179

180-
181180
@Test
182-
public void testDateFormats() {
181+
void testDateFormats() {
183182
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)),
188191
new DateTimeTestData("2007-09-11 11:48:56Z"),
189192
new DateTimeTestData("2007-09-11T11:48:56"),
190193
new DateTimeTestData("2007-09-11T11:48:56.123456"),

0 commit comments

Comments
 (0)