We have to build some software in Java that at the end prints some documents. Different documents should go to different trays of the printer. Because during development we don't have the same printer available as our customer, we are looking for a little piece of software that mocks a printer. We should be able to configure that mock, for example how many trays there are available.
Does anyone know such a tool for mac or windows?
Write an abstraction layer which you implement once for your customer's "real" printer and once for a "virtual" printer. Write integration tests for the customer version, run those tests in your customer's environment. Code against the abstraction layer.
You could create a dummy printer yourself on windows, without any special software.
In Windows 7:
If you set it as default printer, it should be easy enough to use from java code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With