DPascalBernard / maven-alfresco-archetypes

Automatically exported from code.google.com/p/maven-alfresco-archetypes
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 reported on code.google.com by tlh...@gmail.com on 3 Apr 2014 at 8:00

GoogleCodeExporter commented 8 years ago
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.htm
l.

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

Original comment by colum...@gmail.com on 18 Jul 2014 at 8:27

GoogleCodeExporter commented 8 years ago

Original comment by colum...@gmail.com on 18 Jul 2014 at 8:28

GoogleCodeExporter commented 8 years ago

Original comment by colum...@gmail.com on 18 Jul 2014 at 8:28