I have some chart rendering tasks that I want to cover with tests. I used svg renderer in my tests. At first run I generate some files. At next runs I want to compare output with first run results. If they are different tests should fail. It was just fine. The issue is that such rendering is platform depended. So that I cannot run same tests on Linux and Windows. I don’t like it at all. How can I write cross platform tests for stuff that used JFreeChart?
Share
Ok. I solve this issue. If someone have same issue keep in mind next hints
ttffont and set it explicitly for each label. You can load font byFont.createFont.Locale.setDefault(Locale.US);