[JBoss JIRA] (ARQ-930) Warp JSF: Support for describing tested JSF/XHTML pages in JavaDoc and using ShrinkWrap Descriptor
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQ-930?page=com.atlassian.jira.plugin.sy... ]
Lukáš Fryč updated ARQ-930:
---------------------------
Description:
Ultimately, we should be able to use following methods to describe resources as JSF/XHTML pages:
* in javadoc
* using ShrinkWrap asset
* using ShrinkWrap Descriptor for given format
* referencing external/classpath file
----
*JavaDoc*:
{code}
/**
* @resource index.xhtml
*
* <h:commandLink action="list" />
*
* @resource list.xhtml
*
* <rich:list value="#{...}">
*/
@Test
public void myTest() {
...
}
{code}
The conflicts of same files between tests needs to be solved.
In JSF, we can leverage own Facelet factory to register XHTMLs for each test specifically.
The comments (JavaDoc) can be pre-processed by APT compiler (integrated to JDK >6).
----
*ShrinkWrap asset*:
[TestAutocompleteBehaviors.java|https://github.com/richfaces/richfaces5/bl...]:
{code}
FaceletAsset p = new FaceletAsset();
p.body("<h:form id='form'>");
p.body(" <r:autocomplete id='autocomplete' autocompleteList='#{autocompleteBean.suggestions}'>");
p.body(" <r:ajax event='blur' listener='#{autocompleteBean.actionListener}' />");
p.body(" </r:autocomplete>");
p.body("</h:form>");
archive.addAsWebResource(p, "index.xhtml");
{code}
----
*ShrinkWrap Descriptor*:
{code:java}
Descriptors.create(RichFacesDescriptor.class)
.autocomplete()
.id("autocomplete")
.autocompleteList("#{autocompleteBean.suggestions}")
.behavior()
.ajax()
.event("blur")
.listener("#{autocompleteBean.actionListener}");
{code}
----
*referencing external file*:
{code:java}
ShrinkWrap.create(WebArchive.class).addWebAppResource("index.xhtml")
{code}
note that the API is simplified from the version using addWebResource(File file, String path)
was:
Ultimately, we should be able to use following methods to describe resources as JSF/XHTML pages:
* in javadoc
* using ShrinkWrap asset
* using ShrinkWrap Descriptor for given format
* referencing external/classpath file
----
*JavaDoc*:
{code}
/**
* @resource index.xhtml
*
* <h:commandLink action="list" />
*
* @resource list.xhtml
*
* <rich:list value="#{...}">
*/
@Test
public void myTest() {
...
}
{code}
The conflicts of same files between tests needs to be solved.
In JSF, we can leverage own Facelet factory to register XHTMLs for each test specifically.
The comments (JavaDoc) can be pre-processed by APT compiler (integrated to JDK >6).
----
*ShrinkWrap asset*:
[TestAutocompleteBehaviors.java|https://github.com/richfaces/richfaces5/bl...]:
{code}
FaceletAsset p = new FaceletAsset();
p.body("<h:form id='form'>");
p.body(" <r:autocomplete id='autocomplete' autocompleteList='#{autocompleteBean.suggestions}'>");
p.body(" <r:ajax event='blur' listener='#{autocompleteBean.actionListener}' />");
p.body(" </r:autocomplete>");
p.body("</h:form>");
archive.addAsWebResource(p, "index.xhtml");
{code}
----
*ShrinkWrap Descriptor*:
{code:java}
Descriptors.create(RichFacesDescriptor.class)
.autocomplete()
.id("autocomplete")
.autocompleteList("#{autocompleteBean.suggestions}")
.behavior()
.ajax()
.event("blur")
.listener("#{autocompleteBean.actionListener}");
{code}
----
*referencing external file:*
{code:java}
ShrinkWrap.create(WebArchive.class).addWebAppResource("index.xhtml")
{code}
note that the API is simplified from the version using addWebResource(File file, String path)
> Warp JSF: Support for describing tested JSF/XHTML pages in JavaDoc and using ShrinkWrap Descriptor
> --------------------------------------------------------------------------------------------------
>
> Key: ARQ-930
> URL: https://issues.jboss.org/browse/ARQ-930
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Warp
> Reporter: Lukáš Fryč
> Fix For: warp_1.next
>
>
> Ultimately, we should be able to use following methods to describe resources as JSF/XHTML pages:
> * in javadoc
> * using ShrinkWrap asset
> * using ShrinkWrap Descriptor for given format
> * referencing external/classpath file
> ----
> *JavaDoc*:
> {code}
> /**
> * @resource index.xhtml
> *
> * <h:commandLink action="list" />
> *
> * @resource list.xhtml
> *
> * <rich:list value="#{...}">
> */
> @Test
> public void myTest() {
> ...
> }
> {code}
> The conflicts of same files between tests needs to be solved.
> In JSF, we can leverage own Facelet factory to register XHTMLs for each test specifically.
> The comments (JavaDoc) can be pre-processed by APT compiler (integrated to JDK >6).
> ----
> *ShrinkWrap asset*:
> [TestAutocompleteBehaviors.java|https://github.com/richfaces/richfaces5/bl...]:
> {code}
> FaceletAsset p = new FaceletAsset();
> p.body("<h:form id='form'>");
> p.body(" <r:autocomplete id='autocomplete' autocompleteList='#{autocompleteBean.suggestions}'>");
> p.body(" <r:ajax event='blur' listener='#{autocompleteBean.actionListener}' />");
> p.body(" </r:autocomplete>");
> p.body("</h:form>");
> archive.addAsWebResource(p, "index.xhtml");
> {code}
> ----
> *ShrinkWrap Descriptor*:
> {code:java}
> Descriptors.create(RichFacesDescriptor.class)
> .autocomplete()
> .id("autocomplete")
> .autocompleteList("#{autocompleteBean.suggestions}")
> .behavior()
> .ajax()
> .event("blur")
> .listener("#{autocompleteBean.actionListener}");
> {code}
> ----
> *referencing external file*:
> {code:java}
> ShrinkWrap.create(WebArchive.class).addWebAppResource("index.xhtml")
> {code}
> note that the API is simplified from the version using addWebResource(File file, String path)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] (ARQ-930) Warp JSF: Support for describing tested JSF/XHTML pages in JavaDoc and using ShrinkWrap Descriptor
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQ-930?page=com.atlassian.jira.plugin.sy... ]
Lukáš Fryč updated ARQ-930:
---------------------------
Description:
Ultimately, we should be able to use following methods to describe resources as JSF/XHTML pages:
* in javadoc
* using ShrinkWrap asset
* using ShrinkWrap Descriptor for given format
* referencing external/classpath file
----
*JavaDoc*:
{code}
/**
* @resource index.xhtml
*
* <h:commandLink action="list" />
*
* @resource list.xhtml
*
* <rich:list value="#{...}">
*/
@Test
public void myTest() {
...
}
{code}
The conflicts of same files between tests needs to be solved.
In JSF, we can leverage own Facelet factory to register XHTMLs for each test specifically.
----
*ShrinkWrap asset*:
[TestAutocompleteBehaviors.java|https://github.com/richfaces/richfaces5/bl...]:
{code}
FaceletAsset p = new FaceletAsset();
p.body("<h:form id='form'>");
p.body(" <r:autocomplete id='autocomplete' autocompleteList='#{autocompleteBean.suggestions}'>");
p.body(" <r:ajax event='blur' listener='#{autocompleteBean.actionListener}' />");
p.body(" </r:autocomplete>");
p.body("</h:form>");
archive.addAsWebResource(p, "index.xhtml");
{code}
----
*ShrinkWrap Descriptor*:
{code:java}
Descriptors.create(RichFacesDescriptor.class)
.autocomplete()
.id("autocomplete")
.autocompleteList("#{autocompleteBean.suggestions}")
.behavior()
.ajax()
.event("blur")
.listener("#{autocompleteBean.actionListener}");
{code}
----
*referencing external file:*
{code:java}
ShrinkWrap.create(WebArchive.class).addWebAppResource("index.xhtml")
{code}
note that the API is simplified from the version using addWebResource(File file, String path)
was:
{code}
/**
* @resource index.xhtml:
* <h:inputText value="#{...}" />
*/
@Test
public void myTest() {
...
}
{code}
> Warp JSF: Support for describing tested JSF/XHTML pages in JavaDoc and using ShrinkWrap Descriptor
> --------------------------------------------------------------------------------------------------
>
> Key: ARQ-930
> URL: https://issues.jboss.org/browse/ARQ-930
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Warp
> Reporter: Lukáš Fryč
> Fix For: warp_1.next
>
>
> Ultimately, we should be able to use following methods to describe resources as JSF/XHTML pages:
> * in javadoc
> * using ShrinkWrap asset
> * using ShrinkWrap Descriptor for given format
> * referencing external/classpath file
> ----
> *JavaDoc*:
> {code}
> /**
> * @resource index.xhtml
> *
> * <h:commandLink action="list" />
> *
> * @resource list.xhtml
> *
> * <rich:list value="#{...}">
> */
> @Test
> public void myTest() {
> ...
> }
> {code}
> The conflicts of same files between tests needs to be solved.
> In JSF, we can leverage own Facelet factory to register XHTMLs for each test specifically.
> ----
> *ShrinkWrap asset*:
> [TestAutocompleteBehaviors.java|https://github.com/richfaces/richfaces5/bl...]:
> {code}
> FaceletAsset p = new FaceletAsset();
> p.body("<h:form id='form'>");
> p.body(" <r:autocomplete id='autocomplete' autocompleteList='#{autocompleteBean.suggestions}'>");
> p.body(" <r:ajax event='blur' listener='#{autocompleteBean.actionListener}' />");
> p.body(" </r:autocomplete>");
> p.body("</h:form>");
> archive.addAsWebResource(p, "index.xhtml");
> {code}
> ----
> *ShrinkWrap Descriptor*:
> {code:java}
> Descriptors.create(RichFacesDescriptor.class)
> .autocomplete()
> .id("autocomplete")
> .autocompleteList("#{autocompleteBean.suggestions}")
> .behavior()
> .ajax()
> .event("blur")
> .listener("#{autocompleteBean.actionListener}");
> {code}
> ----
> *referencing external file:*
> {code:java}
> ShrinkWrap.create(WebArchive.class).addWebAppResource("index.xhtml")
> {code}
> note that the API is simplified from the version using addWebResource(File file, String path)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] (ARQ-930) Warp JSF: Support for describing tested JSF/XHTML pages in JavaDoc and using ShrinkWrap Descriptor
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQ-930?page=com.atlassian.jira.plugin.sy... ]
Lukáš Fryč updated ARQ-930:
---------------------------
Description:
Ultimately, we should be able to use following methods to describe resources as JSF/XHTML pages:
* in javadoc
* using ShrinkWrap asset
* using ShrinkWrap Descriptor for given format
* referencing external/classpath file
----
*JavaDoc*:
{code}
/**
* @resource index.xhtml
*
* <h:commandLink action="list" />
*
* @resource list.xhtml
*
* <rich:list value="#{...}">
*/
@Test
public void myTest() {
...
}
{code}
The conflicts of same files between tests needs to be solved.
In JSF, we can leverage own Facelet factory to register XHTMLs for each test specifically.
The comments (JavaDoc) can be pre-processed by APT compiler (integrated to JDK >6).
----
*ShrinkWrap asset*:
[TestAutocompleteBehaviors.java|https://github.com/richfaces/richfaces5/bl...]:
{code}
FaceletAsset p = new FaceletAsset();
p.body("<h:form id='form'>");
p.body(" <r:autocomplete id='autocomplete' autocompleteList='#{autocompleteBean.suggestions}'>");
p.body(" <r:ajax event='blur' listener='#{autocompleteBean.actionListener}' />");
p.body(" </r:autocomplete>");
p.body("</h:form>");
archive.addAsWebResource(p, "index.xhtml");
{code}
----
*ShrinkWrap Descriptor*:
{code:java}
Descriptors.create(RichFacesDescriptor.class)
.autocomplete()
.id("autocomplete")
.autocompleteList("#{autocompleteBean.suggestions}")
.behavior()
.ajax()
.event("blur")
.listener("#{autocompleteBean.actionListener}");
{code}
----
*referencing external file:*
{code:java}
ShrinkWrap.create(WebArchive.class).addWebAppResource("index.xhtml")
{code}
note that the API is simplified from the version using addWebResource(File file, String path)
was:
Ultimately, we should be able to use following methods to describe resources as JSF/XHTML pages:
* in javadoc
* using ShrinkWrap asset
* using ShrinkWrap Descriptor for given format
* referencing external/classpath file
----
*JavaDoc*:
{code}
/**
* @resource index.xhtml
*
* <h:commandLink action="list" />
*
* @resource list.xhtml
*
* <rich:list value="#{...}">
*/
@Test
public void myTest() {
...
}
{code}
The conflicts of same files between tests needs to be solved.
In JSF, we can leverage own Facelet factory to register XHTMLs for each test specifically.
----
*ShrinkWrap asset*:
[TestAutocompleteBehaviors.java|https://github.com/richfaces/richfaces5/bl...]:
{code}
FaceletAsset p = new FaceletAsset();
p.body("<h:form id='form'>");
p.body(" <r:autocomplete id='autocomplete' autocompleteList='#{autocompleteBean.suggestions}'>");
p.body(" <r:ajax event='blur' listener='#{autocompleteBean.actionListener}' />");
p.body(" </r:autocomplete>");
p.body("</h:form>");
archive.addAsWebResource(p, "index.xhtml");
{code}
----
*ShrinkWrap Descriptor*:
{code:java}
Descriptors.create(RichFacesDescriptor.class)
.autocomplete()
.id("autocomplete")
.autocompleteList("#{autocompleteBean.suggestions}")
.behavior()
.ajax()
.event("blur")
.listener("#{autocompleteBean.actionListener}");
{code}
----
*referencing external file:*
{code:java}
ShrinkWrap.create(WebArchive.class).addWebAppResource("index.xhtml")
{code}
note that the API is simplified from the version using addWebResource(File file, String path)
> Warp JSF: Support for describing tested JSF/XHTML pages in JavaDoc and using ShrinkWrap Descriptor
> --------------------------------------------------------------------------------------------------
>
> Key: ARQ-930
> URL: https://issues.jboss.org/browse/ARQ-930
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Warp
> Reporter: Lukáš Fryč
> Fix For: warp_1.next
>
>
> Ultimately, we should be able to use following methods to describe resources as JSF/XHTML pages:
> * in javadoc
> * using ShrinkWrap asset
> * using ShrinkWrap Descriptor for given format
> * referencing external/classpath file
> ----
> *JavaDoc*:
> {code}
> /**
> * @resource index.xhtml
> *
> * <h:commandLink action="list" />
> *
> * @resource list.xhtml
> *
> * <rich:list value="#{...}">
> */
> @Test
> public void myTest() {
> ...
> }
> {code}
> The conflicts of same files between tests needs to be solved.
> In JSF, we can leverage own Facelet factory to register XHTMLs for each test specifically.
> The comments (JavaDoc) can be pre-processed by APT compiler (integrated to JDK >6).
> ----
> *ShrinkWrap asset*:
> [TestAutocompleteBehaviors.java|https://github.com/richfaces/richfaces5/bl...]:
> {code}
> FaceletAsset p = new FaceletAsset();
> p.body("<h:form id='form'>");
> p.body(" <r:autocomplete id='autocomplete' autocompleteList='#{autocompleteBean.suggestions}'>");
> p.body(" <r:ajax event='blur' listener='#{autocompleteBean.actionListener}' />");
> p.body(" </r:autocomplete>");
> p.body("</h:form>");
> archive.addAsWebResource(p, "index.xhtml");
> {code}
> ----
> *ShrinkWrap Descriptor*:
> {code:java}
> Descriptors.create(RichFacesDescriptor.class)
> .autocomplete()
> .id("autocomplete")
> .autocompleteList("#{autocompleteBean.suggestions}")
> .behavior()
> .ajax()
> .event("blur")
> .listener("#{autocompleteBean.actionListener}");
> {code}
> ----
> *referencing external file:*
> {code:java}
> ShrinkWrap.create(WebArchive.class).addWebAppResource("index.xhtml")
> {code}
> note that the API is simplified from the version using addWebResource(File file, String path)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] (ARQ-1141) Warp: support for custom URLs
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQ-1141?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč resolved ARQ-1141.
-----------------------------
Assignee: Lukáš Fryč
Fix Version/s: (was: warp_1.next)
Resolution: Rejected
The Warp can enhance only requests to servers which are enriched by Arquillian+Warp - which are basically ones injectable through @ArquillianResource.
> Warp: support for custom URLs
> -----------------------------
>
> Key: ARQ-1141
> URL: https://issues.jboss.org/browse/ARQ-1141
> Project: Arquillian
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: Extension - Warp
> Affects Versions: warp_1.0.0.Alpha1
> Reporter: Lukáš Fryč
> Assignee: Lukáš Fryč
>
> Warp allows to instantiate HTTP proxy for URL obtained from {{URLResourceProvider}}.
> This is quite a limitation since it might be necessary to provide custom URLs.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] (ARQ-1261) Warp: setup container-compatibility integration builds
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQ-1261?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč updated ARQ-1261:
----------------------------
Description:
We should test compatibility with following containers;
* Jetty
* Tomcat 6/7
* TomEE
* Glassfish
* WebSphere?
* WebLogic?
* OpenShift?
* CloudBees?
was:
We should test compatibility with following containers;
* TomEE
* Glassfish
* WebSphere?
* WebLogic?
* CloudBees?
> Warp: setup container-compatibility integration builds
> ------------------------------------------------------
>
> Key: ARQ-1261
> URL: https://issues.jboss.org/browse/ARQ-1261
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Warp
> Reporter: Lukáš Fryč
> Assignee: Pavol Pitonak
> Fix For: warp_1.0.0.Beta1
>
>
> We should test compatibility with following containers;
> * Jetty
> * Tomcat 6/7
> * TomEE
> * Glassfish
> * WebSphere?
> * WebLogic?
> * OpenShift?
> * CloudBees?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] (ARQ-1238) Warp: declarative approach - @Inspect and @Observe
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQ-1238?page=com.atlassian.jira.plugin.s... ]
Lukáš Fryč updated ARQ-1238:
----------------------------
Fix Version/s: warp_1.next
(was: warp_1.0.0.Beta1)
> Warp: declarative approach - @Inspect and @Observe
> --------------------------------------------------
>
> Key: ARQ-1238
> URL: https://issues.jboss.org/browse/ARQ-1238
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Warp
> Affects Versions: warp_1.0.0.Alpha2
> Reporter: Lukáš Fryč
> Priority: Optional
> Fix For: warp_1.next
>
>
> {code:java}
> /**
> * Filters can be specified by annotation - then they will be applied in any
> * Warp execution where no other filter was specified.
> */
> @Observe(RequestToObserve.class)
> public void testFilterSpecifiedByAnnotation() {
> Warp
> .execute(clientAction)
> .verify(serverAssertion);
> }
> /**
> * Assertions can be specified by annotation - all specified assertions
> * will be used for all requests.
> */
> @Inspect({Inspection1.class, Inspection2.class})
> public void testSpecifyAssertionByAnnotation() {
> clientAction.action();
> }
> {code}https://github.com/arquillian/arquillian-extension-warp/blob/master/api/src/test/java/org/jboss/arquillian/warp/TestExecutionAPI.java#L150
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months