Bug 1257180 - Aditional test coverage for creating JAXBContext
Summary: Aditional test coverage for creating JAXBContext
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Core
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: Alessandro Lazarotti
QA Contact: Radovan Synek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-26 12:26 UTC by Anton Giertli
Modified: 2020-03-27 20:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 20:11:25 UTC
Type: Feature Request
Embargoed:


Attachments (Terms of Use)
kjar (46.76 KB, application/zip)
2015-08-26 12:26 UTC, Anton Giertli
no flags Details

Description Anton Giertli 2015-08-26 12:26:09 UTC
Created attachment 1067235 [details]
kjar

Description of problem:

During the KJAR deployment, the JAXBContext will be created for classes which are annotated with @Remotable. 

It would be nice if customer could test the attempt of JAXBContext creation even before attempting the real deployment within business-central.

For this, it is necessary that the unit tests are added to the code base so customer could use those in their environments.

Specifically, the attached KJAR deployment will fail with 

Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
com.capitalone.api.deposits.applications.model.v3.ApplicantRoleConstraint is an interface, and JAXB can't handle interfaces.
        this problem is related to the following location:
                at com.capitalone.api.deposits.applications.model.v3.ApplicantRoleConstraint
com.capitalone.api.deposits.applications.model.v3.DateOfBirth is an interface, and JAXB can't handle interfaces.
        this problem is related to the following location:
                at com.capitalone.api.deposits.applications.model.v3.DateOfBirth

It should be possible to test before actual deployment attempt, that this KJAR deployment will fail or succeed.

Comment 2 Maciej Swiderski 2015-08-26 16:21:00 UTC
Anton,

could you please elaborate more on this? how would you like to see that?

We have tests in code base to cover this [1] though not sure what you'd like to have here...

[1] https://github.com/droolsjbpm/jbpm/blob/master/jbpm-services/jbpm-kie-services/src/test/java/org/jbpm/kie/services/test/KModuleWithDependenciesDeploymentServiceTest.java

Comment 3 Anton Giertli 2015-08-27 07:47:44 UTC
Thanks for this Maciej, it looks promising.

I'll run this with customer and see if it suits his needs.

Comment 4 Kris Verlaenen 2015-09-07 14:41:34 UTC
I guess the customer is not looking for test coverage, but for a way to 'validate' if their project would deploy without actually deploying this.

With managed repos, you don't only have 'Build & Deploy' but where you can also simply build the project without deploying.  This probably still wouldn't trigger creation of the jaxb context though.  I believe it might be useful to add a 'Validate' option to the Build menu where we would do as many validations as possible (same what would happen if you actually do build & deploy) but the end result will always be that the kjar is not really added to the repo and the kjar is not deployed (just tested).


Note You need to log in before you can comment on or make changes to this bug.