-
Notifications
You must be signed in to change notification settings - Fork 0
Home
-
Add the src folder to your project. You need JavaPOS version 1.16 or above, JavaFX, and JavaPOS-SPF (and those jar files your service implementations, JavaPOS-SPF or jpos need). In addition to the dependencies described here, you need Xalan-J as well. You find the corresponding jar file here. However, as long as JavaPOS 1.16 is not officially supported, you can used the snapshots as specified in the JavaPOS-SPF wiki as workaround. Starting with release 3.0.2, Jpos116Dummy.jar will be again delivered with JavaPOS-SPF. It can be used to make any JavaPOS version 1.15 implementation compatible to version 1.16, which allows to use it in combination with JavaPOS-SPF and JavaPOS-SPF-Test.
-
All device classes supported by JavaPOS-SPF are supported.
-
jcl.dtd and jpos.xml must be in the working directory of the test application. You must add JposEntry tags for the devices you like to test. You can remove the sample JposEntry if you want. A description of jpos properties that can be specified in all services implemented on base of JavaPOS-SPF can be found here. To find the description of additional jpos properties that can be specified for the sample services, navigate to the JavaPOS-SPF JavaDoc, click on the corresponding Sample link (e.g. SampleFiscalPrinter) and the corresponding Device link (for the SampleFiscalPrinter, you find it here).
If you want to use the POSKeyboard sample of the SampleCombiDevice, you must copy the property file SampleCombiDevice.Device.properties into the working directory as well.
If you want to use the RFIDScanner sample of the SampleDummyDevice module, you can specify tag ID and user data of RFID labels to be simulated in RFIDScannerSampleTags.txt. One line per RFID label, line separator can be CR, LF, CR LF or LF CR. Each line consists of pairs of hexadecimal values, where the first value of each pair represent a tag ID and the following value the corresponding userdata. Values are separated each by one space.
If you want to use a serial connection via the SerialIOJNALinux implementation and the default properties do not work for yous OS, you must create a de.gmxhome.conrad.JNALinux.JnaLinuxSerial.properties property file as well.
If you plan to test a service implementation of an ElectronicValueRW device, and if you need to test ElectronicValueRW methods that need an Object type parameter that is not a String, you need a jar file that contains a class factory for such an Object as well. There are two opportunities: A class with a constructor that consumes one String parameter or a static method with one String parameter that returns an Object of the required type.