Hi Lars,
yeah, sure. I probably should document that better...
First, the test project is just a container for the unit test classes. I just copied this separation from the other bindings. My assumption is that its because of OSGI that we must separate the testing code from the production code. Perhaps its because you need to create a test binding to use OSGI functionality with the chance to deploy only the production code to a working system. The homematic binding does not use OSGI functionality, but I just followed this pattern. And I do not know if tycho (the OSGI Maven Plugin) does obey the maven file structure when creating the bundle.
The unit tests can be executed like any other unit tests from within eclipse of through maven from the command line (which is done in the Jenkins build).
The idea behind these tests is to ensure that the data processing inside the binding works correctly. It tests the conversion of the HM value to the OH values and vice versa. Another important thing is to document the expected behavior of the homematic binding, especially what should be mapped for which class of devices. Since your additions are mainly very generic ones, there is of course no test class per device but per parameter.
The tests itself get a basic configured binding from the BasicBindingTest and can use some utility methods that makes testing quite easy. I will javadoc these methods.
Does that answer your questions?
R.,
Thomas