[
https://issues.apache.org/jira/browse/OFBIZ-11646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17099152#comment-17099152
]
Pawan Verma commented on OFBIZ-11646:
-------------------------------------
The reason for the issue was a typo in the class-name attribute.
Found one more error while debugging for the issue.
{code:java}
UtilDateTime |E| nullUtilDateTime |E|
nulljava.lang.NumberFormatException: For input string: "00.000" at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
~[?:1.8.0_202] at java.lang.Integer.parseInt(Integer.java:580) ~[?:1.8.0_202]
{code}
Corrected it also in the patch [^OFBIZ-11646.patch]
This can be tested using the following command:
./gradlew "ofbiz --test component=party --test suitename=partycontactmechtests"
> Party's ContactMechWorkerTests does not work
> --------------------------------------------
>
> Key: OFBIZ-11646
> URL: https://issues.apache.org/jira/browse/OFBIZ-11646
> Project: OFBiz
> Issue Type: Bug
> Components: party
> Affects Versions: Trunk
> Reporter: Pawan Verma
> Assignee: Pawan Verma
> Priority: Major
> Attachments: OFBIZ-11646.patch
>
>
> While working on OFBIZ-8522, I've found that Party's ContactMechWorkerTests
> does not work. I found the below loading error for the tests.
> {code:java}
> |E| XmlFileLoader: File
> /home/pawan/ofbiz_dev/trunk/applications/party/testdef/PartyContactMechTests.xml
> process error. Line: 28. Error message: cvc-complex-type.3.2.2: Attribute
> 'className' is not allowed to appear in element 'junit-test-suite'.
> 2020-05-04 22:32:50,778 |main |UtilXml
> |E| XmlFileLoader: File
> /home/pawan/ofbiz_dev/trunk/applications/party/testdef/PartyContactMechTests.xml
> process error. Line: 28. Error message: cvc-complex-type.4: Attribute
> 'class-name' must appear on element 'junit-test-suite'.{code}
> But partytests got the success that's why we haven't noticed it yet.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)