This is an automated email from the ASF dual-hosted git repository.
pawan pushed a commit to branch trunk
in repository
https://gitbox.apache.org/repos/asf/ofbiz-framework.gitThe following commit(s) were added to refs/heads/trunk by this push:
new 1369df3 Fixed: Party's ContactMechWorkerTests does not work (OFBIZ-11646)
1369df3 is described below
commit 1369df300fa3dbc9555c5a111d6501cf6c668392
Author: Pawan Verma <
[hidden email]>
AuthorDate: Tue May 5 11:52:04 2020 +0530
Fixed: Party's ContactMechWorkerTests does not work
(OFBIZ-11646)
The reason for the issue was a typo in the class-name attribute.
Thanks: Jacques for the review.
---
.../main/groovy/org/apache/ofbiz/party/ContactMechWorkerTests.groovy | 2 +-
applications/party/testdef/PartyContactMechTests.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/applications/party/src/main/groovy/org/apache/ofbiz/party/ContactMechWorkerTests.groovy b/applications/party/src/main/groovy/org/apache/ofbiz/party/ContactMechWorkerTests.groovy
index 3912f69..da79d16 100644
--- a/applications/party/src/main/groovy/org/apache/ofbiz/party/ContactMechWorkerTests.groovy
+++ b/applications/party/src/main/groovy/org/apache/ofbiz/party/ContactMechWorkerTests.groovy
@@ -92,7 +92,7 @@ class ContactMechWorkerTests extends OFBizTestCase {
}
//Restart a search at 05/13/2001 10:00:00.000, the email 9126 need to have two purposes
- partyContactMechValueMaps = ContactMechWorker.getPartyContactMechValueMaps(delegator, "DemoCustomer", UtilDateTime.toTimestamp("05/13/2001 10:00:00.000"), "EMAIL_ADDRESS")
+ partyContactMechValueMaps = ContactMechWorker.getPartyContactMechValueMaps(delegator, "DemoCustomer", UtilDateTime.toTimestamp("05/13/2001 10:00:00"), "EMAIL_ADDRESS")
partyContactMechValueMaps.forEach {
Map partyContactMechValueMap ->
switch (partyContactMechValueMap?.contactMech?.contactMechId) {
diff --git a/applications/party/testdef/PartyContactMechTests.xml b/applications/party/testdef/PartyContactMechTests.xml
index 27d652b..de4f662 100644
--- a/applications/party/testdef/PartyContactMechTests.xml
+++ b/applications/party/testdef/PartyContactMechTests.xml
@@ -25,7 +25,7 @@
<entity-xml action="load" entity-xml-url="component://party/testdef/data/PartyContactMechTestData.xml"/>
</test-case>
<test-case case-name="ContactMechWorker-tests">
- <junit-test-suite className="org.apache.ofbiz.party.ContactMechWorkerTests"/>
+ <junit-test-suite class-name="org.apache.ofbiz.party.ContactMechWorkerTests"/>
</test-case>
<test-case case-name="partyContactMech-tests">
<simple-method-test location="component://party/minilang/test/PartyContactMechTests.xml"/>