File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
metafacture-biblio/src/test/java/org/metafacture/biblio/marc21 Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .metafacture .biblio .marc21 ;
17
17
18
+ import static org .metafacture .biblio .marc21 .Marc21EventNames .LEADER_ENTITY ;
19
+ import static org .metafacture .biblio .marc21 .Marc21EventNames .RECORD_STATUS_LITERAL ;
18
20
import static org .mockito .ArgumentMatchers .any ;
19
21
import static org .mockito .ArgumentMatchers .matches ;
20
22
import static org .mockito .Mockito .verify ;
35
37
*/
36
38
public final class Marc21EncoderTest {
37
39
38
- private static final String LEADER_LITERAL = "leader" ;
39
-
40
40
private Marc21Encoder marc21Encoder ;
41
41
42
42
@ Mock
@@ -102,4 +102,15 @@ public void issue231ShouldIgnoreTypeLiterals() {
102
102
verify (receiver ).process (any (String .class ));
103
103
}
104
104
105
+ @ Test
106
+ public void issue278ShouldNotFailWhenProcessingLeaderEntity () {
107
+ marc21Encoder .startRecord ("" );
108
+ marc21Encoder .startEntity (LEADER_ENTITY );
109
+ marc21Encoder .literal (RECORD_STATUS_LITERAL , "a" );
110
+ marc21Encoder .endEntity ();
111
+ marc21Encoder .endRecord ();
112
+
113
+ verify (receiver ).process (any (String .class ));
114
+ }
115
+
105
116
}
You can’t perform that action at this time.
0 commit comments