Separate Annotations and Implementation into separate jars
It would be nice to be able to have only the annotations on the production classpath, importing the actual implementation logic on the test classpath only.
I'm thinking of removing annotations altogether:-) With custom strategies there's no need. Besides it was an architectural mistake asking users to annotate their production code with a testing framework
On Thursday, February 26, 2015, mnd999 [email protected] wrote:
It would be nice to be able to have only the annotations on the production classpath, importing the actual implementation logic on the test classpath only.
— Reply to this email directly or view it on GitHub https://github.com/mtedone/podam/issues/79.
Yeah, i think that might be a better solution, see #80
If that's about PodamExclude annotation, PODAM allows usage of any custom annotations as exclusion annotations. See this test https://github.com/mtedone/podam/blob/master/src/test/java/uk/co/jemos/podam/test/unit/BooleanUnitTest.java
Daniil I was suggesting to remove all podam annotations
On Thursday, February 26, 2015, Daniil Ivanov [email protected] wrote:
If that's about PodamExclude annotation, PODAM allows usage of any custom annotations as exclusion annotations. See this test
https://github.com/mtedone/podam/blob/master/src/test/java/uk/co/jemos/podam/test/unit/BooleanUnitTest.java
— Reply to this email directly or view it on GitHub https://github.com/mtedone/podam/issues/79#issuecomment-76214004.
PODAm has quite a few annotations:
- PodamLongValue, PodamBooleanValue, PodamDoubleValue, PodamShortValue, PodamByteValue, PodamCharValue, PodamFloatValue, PodamStringValue, PodamIntValue - can be done through DataProviderStrategy.
- PodamCollection - can be done with DataProviderStrategy
- PodamConstructor - can be done with DataProviderStrategy by manipulating constructor sorting
- PodamExclude - cannot be done with DataProviderStrategy
- PodamStrategyValue - this is very crucial annotation, which is the only conduit for some POJO production and has no replacement
Thank you Daniil. I’ve always built POJOs through Podam without ever annotating my production code. I must assume that the “cannot be done / crucial” annotations are used within Podam itself?
On 27 Feb 2015, at 08:57, Daniil Ivanov [email protected] wrote:
PODAm has quite a free annotations:
PodamLongValue, PodamBooleanValue, PodamDoubleValue, PodamShortValue, PodamByteValue, PodamCharValue, PodamFloatValue, PodamStringValue, PodamIntValue - can be done through DataProviderStrategy. PodamCollection - can be done with DataProviderStrategy PodamConstructor - can be done with DataProviderStrategy by manipulating constructor sorting PodamExclude - cannot be done with DataProviderStrategy PodamStrategyValue - this is very crucial annotation, which is the only conduit for some POJO production and has no replacement — Reply to this email directly or view it on GitHub https://github.com/mtedone/podam/issues/79#issuecomment-76358488.
Fixed in 5.2.0.RELEASE. You can now specify your production annotations and Podam will exclude fields annotated with it while filling the POJO