Skip to content

Commit e2cf315

Browse files
committed
test all paths #401
1 parent 0a165f8 commit e2cf315

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

fj-doc-lib-direct/src/test/java/org/fugerit/java/doc/lib/direct/TestVenusDirectFacade.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ void testDoc() throws IOException {
2121
VenusDirectFacade.handleAllOutput( config );
2222
Assertions.assertThrows( ConfigRuntimeException.class, () -> VenusDirectFacade.handleOutput( config, "not-existing-output-id" ) );
2323
config.getChainMap().remove( "test-doc" );
24-
config.setCreateParentDirectory( Boolean.FALSE ); // for coverage
2524
Assertions.assertThrows( ConfigRuntimeException.class, () -> VenusDirectFacade.handleOutput( config, "test-doc-html" ) );
2625
}
2726
}
@@ -30,9 +29,10 @@ void testDoc() throws IOException {
3029
void testSubstitute() throws IOException {
3130
try (Reader reader = new InputStreamReader(ClassHelper.loadFromDefaultClassLoader( "config/venus-direct-config-2.yaml" ) )) {
3231
Map<String, String> envMap = new HashMap<>();
33-
envMap.put( "baseDir", "/config" );
32+
envMap.put( "baseDir", "." );
3433
VenusDirectConfig config = VenusDirectFacade.readConfig( reader, envMap );
35-
Assertions.assertEquals( "/config/src/test/resources/template/", config.getTemplatePath() );
34+
Assertions.assertEquals( "./src/test/resources/template/", config.getTemplatePath() );
35+
VenusDirectFacade.handleOutput( config, "test-doc-md" );
3636
}
3737
}
3838

fj-doc-lib-direct/src/test/resources/config/venus-direct-config-2.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ outputList:
1717
- outputId: 'test-doc-html'
1818
chainId: 'test-doc'
1919
handlerId: 'html' # a valid handler for this output type should be defined (i.e. org.fugerit.java.doc.freemarker.html.FreeMarkerHtmlTypeHandlerUTF8)
20-
file: 'target/test-doc.html'
20+
file: 'target/alt-test-doc.html'
2121
- outputId: 'test-doc-md'
2222
chainId: 'test-doc'
2323
handlerId: 'md'
24-
file: 'target/test-doc.md'
24+
file: 'target/alt-test-doc.md'
2525
- outputId: 'test-doc-json-data-model-html'
2626
chainId: 'test-doc-json-data-model'
2727
handlerId: 'html'
28-
file: 'target/test-doc-json-data-model.html'
28+
file: 'target/alt-test-doc-json-data-model.html'
2929
- outputId: 'test-doc-yaml-data-model-md'
3030
chainId: 'test-doc-yaml-data-model'
3131
handlerId: 'md'
32-
file: 'target/test-doc-json-data-model.md'
32+
file: 'target/alt-test-doc-json-data-model.md'

0 commit comments

Comments
 (0)