Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DemoCompnentTest.testChildNodesCount() fails on AMP Archetype for 4.1.X #182

Closed
mindthegab opened this issue Jul 20, 2014 · 3 comments
Closed

Comments

@mindthegab
Copy link
Contributor

From tlh...@gmail.com on April 03, 2014 16:00:19

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

Original issue: http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=182

@mindthegab
Copy link
Contributor Author

From colum...@gmail.com on July 18, 2014 13:27:51

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).

Status: Fixed
Labels: Milestone-Release-sdk-1.2.0

@mindthegab
Copy link
Contributor Author

From colum...@gmail.com on July 18, 2014 13:28:03

Status: WontFix

@mindthegab
Copy link
Contributor Author

From colum...@gmail.com on July 18, 2014 13:28:25

Labels: -Milestone-Release-sdk-1.2.0 Milestone-Release-sdk-1.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant