Search in sources :

Example 1 with NodeDescriptor

use of org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor in project tomee by apache.

the class StratocasterTest method addEnvEntry.

private static void addEnvEntry(WebAppDescriptor descriptor, String name, String type, String value) {
    Node appNode = ((NodeDescriptor) descriptor).getRootNode();
    appNode.createChild("/env-entry").createChild("env-entry-name").text(name).getParent().createChild("env-entry-type").text(type).getParent().createChild("env-entry-value").text(value);
}
Also used : Node(org.jboss.shrinkwrap.descriptor.spi.node.Node) NodeDescriptor(org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor)

Example 2 with NodeDescriptor

use of org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor in project tomee by apache.

the class ServletEnvEntryInjectionTest method addEnvEntry.

private static void addEnvEntry(final WebAppDescriptor descriptor, final String name, String type, String value) {
    Node appNode = ((NodeDescriptor) descriptor).getRootNode();
    appNode.createChild("/env-entry").createChild("env-entry-name").text(name).getParent().createChild("env-entry-type").text(type).getParent().createChild("env-entry-value").text(value);
}
Also used : Node(org.jboss.shrinkwrap.descriptor.spi.node.Node) NodeDescriptor(org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor)

Example 3 with NodeDescriptor

use of org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor in project tomee by apache.

the class ServletFilterEnvEntryInjectionTest method addEnvEntry.

private static void addEnvEntry(WebAppDescriptor descriptor, String name, String type, String value) {
    Node appNode = ((NodeDescriptor) descriptor).getRootNode();
    appNode.createChild("/env-entry").createChild("env-entry-name").text(name).getParent().createChild("env-entry-type").text(type).getParent().createChild("env-entry-value").text(value);
}
Also used : Node(org.jboss.shrinkwrap.descriptor.spi.node.Node) NodeDescriptor(org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor)

Example 4 with NodeDescriptor

use of org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor in project tomee by apache.

the class ServletListenerEnvEntryInjectionTest method addEnvEntry.

private static void addEnvEntry(WebAppDescriptor descriptor, String name, String type, String value) {
    Node appNode = ((NodeDescriptor) descriptor).getRootNode();
    appNode.createChild("/env-entry").createChild("env-entry-name").text(name).getParent().createChild("env-entry-type").text(type).getParent().createChild("env-entry-value").text(value);
}
Also used : Node(org.jboss.shrinkwrap.descriptor.spi.node.Node) NodeDescriptor(org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor)

Example 5 with NodeDescriptor

use of org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor in project tomee by apache.

the class SharedEnvironmentTest method addEnvEntry.

private static void addEnvEntry(WebAppDescriptor descriptor, String name, String type, String value) {
    Node appNode = ((NodeDescriptor) descriptor).getRootNode();
    appNode.createChild("/env-entry").createChild("env-entry-name").text(name).getParent().createChild("env-entry-type").text(type).getParent().createChild("env-entry-value").text(value);
}
Also used : Node(org.jboss.shrinkwrap.descriptor.spi.node.Node) NodeDescriptor(org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor)

Aggregations

Node (org.jboss.shrinkwrap.descriptor.spi.node.Node)7 NodeDescriptor (org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor)7 Deployment (org.jboss.arquillian.container.test.api.Deployment)1 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)1 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)1 WebAppDescriptor (org.jboss.shrinkwrap.descriptor.api.webapp30.WebAppDescriptor)1