<commit_before>## Arquillian Portal Extension

### What is this?

**Arquillian Portal Extension** was created to help you write tests for portlets.

Currently it supports:

* Injection of portal specific @ArquillianResource URL with @PortalResource
* Ability for portal containers to add extra deployments into the container prior to deployment of the test archive

On it's own this extension doesn't do much, so you will need a portal container specific implementation of this extension
to use it. Implementations for GateIn and Pluto portal containers can be found at
[JBoss Portlet Bridge](http://github.com/jbossportletbridge).

### Code example
---

    @RunWith(Arquillian.class)
    public class PortletTest {
        @Deployment
        public static Archive<?> createDeployment() {
            return ShrinkWrap
                .create(WebArchive.class)
                .addAsLibraries(
                    DependencyResolvers.use(MavenDependencyResolver.class).loadEffectivePom("pom.xml")
                        .artifacts("org.jboss.portletbridge:portletbridge-api").resolveAsFiles())
                .addAsLibraries(
                    DependencyResolvers.use(MavenDependencyResolver.class).loadEffectivePom("pom.xml")
                        .artifacts("org.jboss.portletbridge:portletbridge-impl").resolveAsFiles())
                .addAsWebInfResource("WEB-INF/web.xml", "web.xml").addAsWebInfResource("WEB-INF/faces-config.xml")
                .addAsWebInfResource("WEB-INF/portlet.xml", "portlet.xml");
                .addClass(Bean.class)
                .addAsWebResource("output.xhtml", "home.xhtml")
                .addAsWebResource("resources/stylesheet.css", "resources/stylesheet.css");<commit_msg>ARQ-961 Error in README for the name of additional URL qualifier<commit_after>## Arquillian Portal Extension

### What is this?

**Arquillian Portal Extension** was created to help you write tests for portlets.

Currently it supports:

* Injection of portal specific @ArquillianResource URL with @PortalURL
* Ability for portal containers to add extra deployments into the container prior to deployment of the test archive

On it's own this extension doesn't do much, so you will need a portal container specific implementation of this extension
to use it. Implementations for GateIn and Pluto portal containers can be found at
[JBoss Portlet Bridge](http://github.com/jbossportletbridge).

### Code example
---

    @RunWith(Arquillian.class)
    public class PortletTest {
        @Deployment
        public static Archive<?> createDeployment() {
            return ShrinkWrap
                .create(WebArchive.class)
                .addAsLibraries(
                    DependencyResolvers.use(MavenDependencyResolver.class).loadEffectivePom("pom.xml")
                        .artifacts("org.jboss.portletbridge:portletbridge-api").resolveAsFiles())
                .addAsLibraries(
                    DependencyResolvers.use(MavenDependencyResolver.class).loadEffectivePom("pom.xml")
                        .artifacts("org.jboss.portletbridge:portletbridge-impl").resolveAsFiles())
                .addAsWebInfResource("WEB-INF/web.xml", "web.xml").addAsWebInfResource("WEB-INF/faces-config.xml")
                .addAsWebInfResource("WEB-INF/portlet.xml", "portlet.xml");
                .addClass(Bean.class)
                .addAsWebResource("output.xhtml", "home.xhtml")
                .addAsWebResource("resources/stylesheet.css", "resources/stylesheet.css");
{'fraction_non_alphanumeric': 0.09514285714285714, 'fraction_numerical': 0.0008571428571428571, 'mean_word_length': 2.9514672686230248, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7090576', 'n_tokens_mistral': 976, 'n_tokens_neox': 908, 'n_words': 237}