|
| 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 | + */ |
1 | 16 | package org.culturegraph.mf.stream.converter;
|
2 | 17 |
|
3 | 18 | import static org.mockito.Mockito.verify;
|
|
12 | 27 | import org.mockito.Mock;
|
13 | 28 | import org.mockito.MockitoAnnotations;
|
14 | 29 |
|
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"; |
32 | 53 |
|
33 | 54 | private FormetaRecordsReader formetaRecordsReader;
|
34 | 55 |
|
|
0 commit comments