File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
fj-doc-base/src/test/java/test/org/fugerit/java/doc/base/process Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11package test .org .fugerit .java .doc .base .process ;
22
3+ import java .nio .charset .StandardCharsets ;
34import java .util .HashMap ;
45import 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
You can’t perform that action at this time.
0 commit comments