Issue 182 in maven-alfresco-archetypes: DemoCompnentTest.testChildNodesCount() fails on AMP Archetype for 4.1.X

9 views
Skip to first unread message

maven-alfres...@googlecode.com

unread,
Apr 3, 2014, 4:00:27 PM4/3/14
to maven-a...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 182 by tlh...@gmail.com: DemoCompnentTest.testChildNodesCount()
fails on AMP Archetype for 4.1.X
http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=182

What steps will reproduce the problem?
1.Build an AMP Archetype project
2.Edit the POM to do an enterprise install of 4.1.X
3.Run mvn install against the project
3.The build fails

What is the expected output? What do you see instead?
The Build Should Succeed. Instead that build fails on the
DemoComponentTest.testChildNodesCount. The following error is thrown:

Results :

Failed tests:
DemoComponentTest.testChildNodesCount:84 expected:<7> but was:<6>

This is caused because 4.1.X only creates 6 folders in the Company Home
Directory where 4.2.X creates 7.

Changing the following line in DemoComponentTest launched with 4.1.X
versions would resolve the issue:
assertEquals(7, childNodeCount);
to
assertEquals(6, childNodeCount);

What version of the product are you using? On what operating system?
4.1.X, Windows





--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

maven-alfres...@googlecode.com

unread,
Jul 18, 2014, 4:27:57 PM7/18/14
to maven-a...@googlegroups.com
Updates:
Status: Fixed
Labels: Milestone-Release-sdk-1.2.0

Comment #1 on issue 182 by colum...@gmail.com:
DemoCompnentTest.testChildNodesCount() fails on AMP Archetype for 4.1.X
http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=182

You should use the proper version of the SDK against the proper version of
Alfresco.

I.e. 1.0.x with 4.1.x and 1.1.x with 4.2.x.

This is documented here
http://docs.alfresco.com/4.2/concepts/dev-extensions-maven-sdk-compatibility.html.

Moving forward we'll look into changing that test not to be version
dependent (i.e. assess something very simple and always true).

maven-alfres...@googlecode.com

unread,
Jul 18, 2014, 4:28:58 PM7/18/14
to maven-a...@googlegroups.com
Updates:
Status: WontFix

Comment #2 on issue 182 by colum...@gmail.com:
DemoCompnentTest.testChildNodesCount() fails on AMP Archetype for 4.1.X
http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=182

(No comment was entered for this change.)

maven-alfres...@googlecode.com

unread,
Jul 18, 2014, 4:30:00 PM7/18/14
to maven-a...@googlegroups.com
Updates:
Labels: -Milestone-Release-sdk-1.2.0 Milestone-Release-sdk-1.1.1

Comment #3 on issue 182 by colum...@gmail.com:
Reply all
Reply to author
Forward
0 new messages