Repository for creating nacha sample files for testing purposes . Static templates are parameterized so that we can substitute parameters and use them for testing.
we will use static files for nacha templates . templates would be parameterized using freemarker syntax . It would be substituted using parameters given in properties file. You can find more information on the apache freemarker on https://freemarker.apache.org/
- Look at the test cases to see usage
- generateNachaFile test case will generate a ach file using nacha_customer_CT_PPD.ftl
- There is one variable ${nachaConfig.effDate} that would get substituted with actual value
All freemarker templates needs to be put in resources directory Change the ResourcePath.basePath variable to point to the location of your templates.
You can observe that effDate variable is replaced in generated file.