Skip to content

Commit c827a9a

Browse files
committed
chore: coverage
1 parent 4e4e642 commit c827a9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fj-doc-base/src/test/java/test/org/fugerit/java/doc/base/process/TestDocProcessContext.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package test.org.fugerit.java.doc.base.process;
22

3+
import java.nio.charset.StandardCharsets;
34
import java.util.HashMap;
45
import java.util.Map;
56

@@ -19,10 +20,11 @@ class TestDocProcessContext {
1920
@Test
2021
void testContext1() {
2122
DocProcessContext context = DocProcessContext.newContext( "c", "d" ).withSourceType(DocFacadeSource.SOURCE_TYPE_XML)
22-
.withAtt( "a" , "b" ).withDocBase( new DocBase() ).withDocType( DocConfig.TYPE_PDF );
23+
.withAtt( "a" , "b" ).withDocBase( new DocBase() ).withDocType( DocConfig.TYPE_PDF ).withDocCharset(StandardCharsets.UTF_8.toString());
2324
log.info( "context : {}", context );
2425
Assertions.assertEquals( "b" , context.getAttribute( "a" ) );
2526
Assertions.assertEquals( DocFacadeSource.SOURCE_TYPE_XML , context.getSourceType() );
27+
Assertions.assertEquals( "UTF-8" , context.getAttribute( DocProcessContext.ATT_NAME_DOC_CHARSET ) );
2628
}
2729

2830
@Test

0 commit comments

Comments
 (0)