Open GoogleCodeExporter opened 9 years ago
Absolutely!!!
IF you have anything that'd be great...
Original comment by colum...@gmail.com
on 30 Oct 2013 at 7:37
here a basic mvn project:
https://github.com/valerifabio/alfresco-mvn-testing-webscripts
it works up to 4.2.c; from version 4.2.d the class
org.alfresco.repo.web.scripts.BaseWebScriptTest very useful for the unit
testing it's no more present in the alfresco-remote-api jar (need some
investigation).
The demo webscript is a java backend webscript and the trick to test it with
junit is the presence of these 2 files:
web-scripts-application-context.xml
web-scripts-application-context-test.xml
in the test classpath:alfresco/
That's it!
Original comment by valerifa...@gmail.com
on 6 Nov 2013 at 3:50
created this issue for the missing class:
https://issues.alfresco.com/jira/browse/PUBLICAPI-213
Original comment by valerifa...@gmail.com
on 8 Nov 2013 at 3:57
Sorry, I missed your question in the flow of notifications (this project has
been very active these days ;-)
The test class can be found in this artifact:
<dependency>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-remote-api</artifactId>
<version>4.2.e</version>
<classifier>tests</classifier>
</dependency>
Original comment by samuel.l...@alfresco.com
on 8 Nov 2013 at 4:37
fine, Samuel Langlois publish the same in the ISSUE:
https://issues.alfresco.com/jira/browse/PUBLICAPI-213
i created. It remain the question of the sources of the test classified jar...
tnx
Original comment by valerifa...@gmail.com
on 20 Nov 2013 at 10:21
Nice stuff Fabio.
Do you think we could add you project as a sample archetype in the SDK?
If so I'd love to give you committership rigths and consolidate this so that it
gets released with the next SDK release.
This is a question multiple people asked.
Original comment by colum...@gmail.com
on 20 Nov 2013 at 1:58
Hi Gabriele,
I'd love toadd my "little piece of code" to the SDK.
I can add my archetype under svn/trunk/archetypes/ ;
some naming convention for the project name? alfresco-amp-webscript-archetype
would be fine?
Using the last version recently released of the SDK (1.1.2-SNAPSHOT) I've some
trouble with the spring content the are loaded twice first with the
DemoComponentTest and the with my webscript test class, so i'm oriented to
release an archtype w/o the DemoComponent e the DemoComponentTest with only the
webscript anche the test class. It will be fine for the 1st version? Fits the
requirements of the "multiple people asking"? ;-)
Original comment by valerifa...@gmail.com
on 26 Nov 2013 at 9:20
Hi Fabio,
thanks a lot for your contributions!
I would like to integrate your code; here's the list of resources I'd like to
include:
1.
https://github.com/valerifabio/alfresco-mvn-testing-webscripts/blob/master/src/m
ain/java/org/alfresco/demoamp/DemoWebscript.java
2.
https://github.com/valerifabio/alfresco-mvn-testing-webscripts/tree/master/src/m
ain/resources/alfresco/templates/webscripts/org/alfresco/demoamp/*
3. Webscript bean in
https://github.com/valerifabio/alfresco-mvn-testing-webscripts/blob/master/src/m
ain/amp/config/alfresco/module/alfresco-mvn-testing-webscripts/context/service-c
ontext.xml
4.
https://github.com/valerifabio/alfresco-mvn-testing-webscripts/blob/master/src/t
est/java/org/alfresco/demoamp/test/DemoWebscriptTest.java
However I don't understand why you need
https://github.com/valerifabio/alfresco-mvn-testing-webscripts/tree/master/src/t
est/resources/alfresco/* and whether they're currently used or not.
Thanks again!
Original comment by maurizio...@alfresco.com
on 3 Jul 2014 at 11:03
Ciao Fabio, Mau,
I was wondering if we can close this issue in the next month or so. I'm
scheduling it for the release 2.x for now as it seems that we have an idea of
what's needed here.
Mau, I'll assign it to you as you reviewed already the code.
Thanks again for the contribution!
Original comment by colum...@gmail.com
on 17 Jul 2014 at 10:03
Original issue reported on code.google.com by
valerifa...@gmail.com
on 26 Jul 2013 at 3:24