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
The AlfrescoPerson does not work in Maven SDK 1.1.1 #168
Comments
From m.swe...@aca-it.be on December 10, 2013 05:06:51 An issue has been created: http://issues.alfresco.com/jira/browse/ALF-20644 |
From colum...@gmail.com on July 18, 2014 13:19:40 Sam, you are assigned to the related http://issues.alfresco.com/jira/browse/ALF-20644 so assigning this to you if you don't mind. Can you have a look at this? Status: Accepted |
@marcomancuso can you just do a double check whether with 2.0.0-SNAPSHOT (and the new 5.0.a) artifacts this still reproduces? If not, please close the issue. |
I cannot replicate the issue with Maven 1.1.1, Alfresco 4.2.e (same as issue), AMP archetype @RunWith(RemoteTestRunner.class)
} In order to use Alfresco Person I had to add in the pom.xml the test dependency:
org.alfresco.util.test.junitrules.AlfrescoPerson is in fact defined inside alfresco-repository-4.2.e-tests.jar It doesn't throw any error: Am I missing something? |
Tested with Maven SDK 2.0.0-beta-2, Alfresco Version 5.0.a as well
Results: no errors |
…ed to work in amp and aio in eclipse and cmd line
Hi Marco Does this issue still happen with 2.0.0 / 2.1.0? It seems the dependency is added, but the issue was never closed. Could you verify and close the issue if it's fixed? /Ole |
In SDK 3, this dependency does not exists anymore. |
Given the age of this issue I will close it. Feel free to reopen if this is still a valid issue with SDK3 |
This is still a valid issue in SDK 3 (alfresco-platform version 5.0.3).
|
From m.swe...@aca-it.be on December 02, 2013 10:30:31
What steps will reproduce the problem? 1. Create a fresh project with the Maven SDK 1.1.1
2. Create a test using the AlfrescoPerson rule to create a temporary user
3. The test will fail, because it cannot find the bean "testUserComponent". What is the expected output? What do you see instead? The rule should still work (just like in Maven SDK version 1.0.2), but it complains about the bean that cannot be found. What version of the product are you using? On what operating system? Maven SDK 1.1.1. on OSX with Maven 3.1.1 and Alfresco 4.2.e. Please provide any additional information below. The bean is defined in the file "community-integration-test-context.xml". I added it to my resources and referenced it in the @ContextConfiguration annotation to work around this problem. However this should work out of the box.
I also noticed that it is difficult to make it work out of the box, because it is hard getting to the application context before the JUnit rule is initialised. To fix it:
This is also necessary to be able to use the TemporaryNodes rule. I feel that it shouldn't be so hard trying to make the default test utility classes to work.
Original issue: http://code.google.com/p/maven-alfresco-archetypes/issues/detail?id=168
The text was updated successfully, but these errors were encountered: