Skip to content

Commit 97a0d54

Browse files
committed
Add comments and remove trailing whitespace
1 parent 7c1612d commit 97a0d54

File tree

1 file changed

+38
-17
lines changed

1 file changed

+38
-17
lines changed

src/test/java/org/culturegraph/mf/stream/converter/FormetaRecordsReaderTest.java

Lines changed: 38 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2014 Christoph Böhme
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+
*/
116
package org.culturegraph.mf.stream.converter;
217

318
import static org.mockito.Mockito.verify;
@@ -12,23 +27,29 @@
1227
import org.mockito.Mock;
1328
import org.mockito.MockitoAnnotations;
1429

15-
public class FormetaRecordsReaderTest {
16-
17-
private static String SINGLE_RECORD = "l: v";
18-
19-
private static String RECORD_LITERAL = " l: v,";
20-
private static String RECORD_GROUP = " r{l: v}";
21-
private static String RECORD_NESTED_GROUP = " r{ e { l: v } }";
22-
private static String RECORD_QUOTED_LITERAL = " 'l x': v,";
23-
private static String RECORD_LEFT_BRACE_IN_QUOTES = " '{': l,";
24-
private static String RECORD_RIGHT_BRACE_IN_QUOTES = " r{ l: '}' }";
25-
private static String RECORD_COLON_IN_QUOTES = " ':': v,";
26-
private static String RECORD_COMMA_IN_QUOTES = " l: ',v:v',";
27-
private static String RECORD_ESCAPED_LEFT_BRACE = " \\{: v,";
28-
private static String RECORD_ESCAPED_RIGHT_BRACE = " r{ l: \\} }";
29-
private static String RECORD_ESCAPED_COLON = " \\:: v,";
30-
private static String RECORD_ESCAPED_COMMA = " l: \\,v\\:v,";
31-
private static String RECORD_ESCAPED_QUOTE = " '\\',': v";
30+
/**
31+
* Tests for class {@link FormetaRecordsReader}.
32+
*
33+
* @author Christoph Böhme
34+
*
35+
*/
36+
public final class FormetaRecordsReaderTest {
37+
38+
private static final String SINGLE_RECORD = "l: v";
39+
40+
private static final String RECORD_LITERAL = " l: v,";
41+
private static final String RECORD_GROUP = " r{l: v}";
42+
private static final String RECORD_NESTED_GROUP = " r{ e { l: v } }";
43+
private static final String RECORD_QUOTED_LITERAL = " 'l x': v,";
44+
private static final String RECORD_LEFT_BRACE_IN_QUOTES = " '{': l,";
45+
private static final String RECORD_RIGHT_BRACE_IN_QUOTES = " r{ l: '}' }";
46+
private static final String RECORD_COLON_IN_QUOTES = " ':': v,";
47+
private static final String RECORD_COMMA_IN_QUOTES = " l: ',v:v',";
48+
private static final String RECORD_ESCAPED_LEFT_BRACE = " \\{: v,";
49+
private static final String RECORD_ESCAPED_RIGHT_BRACE = " r{ l: \\} }";
50+
private static final String RECORD_ESCAPED_COLON = " \\:: v,";
51+
private static final String RECORD_ESCAPED_COMMA = " l: \\,v\\:v,";
52+
private static final String RECORD_ESCAPED_QUOTE = " '\\',': v";
3253

3354
private FormetaRecordsReader formetaRecordsReader;
3455

0 commit comments

Comments
 (0)