// Path: cdi-properties-test/cdi-properties-test-common/src/main/java/com/byteslounge/cdi/test/common/InjectedBean.java
// public class InjectedBean implements Serializable {
// 
//     private static final long serialVersionUID = 1L;
// 
//     public String getText() {
//         return TestConstants.BEAN_TEST_RETURN_VALUE;
//     }
// 
// }
// 
// Path: cdi-properties-test/cdi-properties-test-common/src/main/java/com/byteslounge/cdi/test/common/TestBean.java
// @Named
// @RequestScoped
// public class TestBean {
// 
//     @Property("hello.world")
//     private String helloWorld;
// 
//     @Property(value = "system.linux.box", parameters = { "Linux", "16" })
//     private String systemBox;
// 
//     @Property(value = "other.message", resourceBundleBaseName = TestConstants.OTHER_RESOURCE_BUNDLE_NAME)
//     private String other;
// 
//     @Property(value = "other.parameter", parameters = { "B" }, resourceBundleBaseName = TestConstants.OTHER_RESOURCE_BUNDLE_NAME)
//     private String otherAbc;
// 
//     @Inject
//     private InjectedBean injectedBean;
// 
//     @SuppressWarnings("unused")
//     @PostConstruct
//     private void init() {
//         Assert.assertEquals(injectedBean.getText(), TestConstants.BEAN_TEST_RETURN_VALUE);
//     }
// 
//     public String getHelloWorld() {
//         return helloWorld;
//     }
// 
//     public String getSystemBox() {
//         return systemBox;
//     }
// 
//     public String getOther() {
//         return other;
//     }
// 
//     public String getOtherAbc() {
//         return otherAbc;
//     }
// 
// }
// 
// Path: cdi-properties-test/cdi-properties-test-common/src/main/java/com/byteslounge/cdi/test/it/common/IntegrationTestDeploymentUtils.java
// public static class DeploymentAppenderFactory {
// 
//     private DeploymentAppenderFactory() {
//     }
// 
//     public static WebDeploymentAppender create(WebArchive archive) {
//         return new WebDeploymentAppender(archive);
//     }
// 
//     public static JavaDeploymentAppender create(JavaArchive archive) {
//         return new JavaDeploymentAppender(archive);
//     }
// 
//     public static EnterpriseDeploymentAppender create(EnterpriseArchive archive) {
//         return new EnterpriseDeploymentAppender(archive);
//     }
// }


import java.io.IOException;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import com.byteslounge.cdi.test.common.InjectedBean;
import com.byteslounge.cdi.test.common.TestBean;
import com.byteslounge.cdi.test.it.common.IntegrationTestDeploymentUtils.DeploymentAppenderFactory;
/*
 * Copyright 2015 byteslounge.com (Gonçalo Marques).
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 */
package com.byteslounge.cdi.test.it.common;




/**
 * Base class for Integration Tests which use the default property resolver method
 * 
 * @author Gonçalo Marques
 * @since 1.1.0
 */
public abstract class AbstractWarDefaultPropertyMethod {

    protected static WebArchive createArchive() throws IOException {

        WebArchive webArchive = ShrinkWrap.create(WebArchive.class, "cdipropertiestest.war").addClasses(TestBean.class,
                InjectedBean.class);
// Path: cdi-properties-test/cdi-properties-test-common/src/main/java/com/byteslounge/cdi/test/common/InjectedBean.java
// public class InjectedBean implements Serializable {
// 
//     private static final long serialVersionUID = 1L;
// 
//     public String getText() {
//         return TestConstants.BEAN_TEST_RETURN_VALUE;
//     }
// 
// }
// 
// Path: cdi-properties-test/cdi-properties-test-common/src/main/java/com/byteslounge/cdi/test/common/TestBean.java
// @Named
// @RequestScoped
// public class TestBean {
// 
//     @Property("hello.world")
//     private String helloWorld;
// 
//     @Property(value = "system.linux.box", parameters = { "Linux", "16" })
//     private String systemBox;
// 
//     @Property(value = "other.message", resourceBundleBaseName = TestConstants.OTHER_RESOURCE_BUNDLE_NAME)
//     private String other;
// 
//     @Property(value = "other.parameter", parameters = { "B" }, resourceBundleBaseName = TestConstants.OTHER_RESOURCE_BUNDLE_NAME)
//     private String otherAbc;
// 
//     @Inject
//     private InjectedBean injectedBean;
// 
//     @SuppressWarnings("unused")
//     @PostConstruct
//     private void init() {
//         Assert.assertEquals(injectedBean.getText(), TestConstants.BEAN_TEST_RETURN_VALUE);
//     }
// 
//     public String getHelloWorld() {
//         return helloWorld;
//     }
// 
//     public String getSystemBox() {
//         return systemBox;
//     }
// 
//     public String getOther() {
//         return other;
//     }
// 
//     public String getOtherAbc() {
//         return otherAbc;
//     }
// 
// }
// 
// Path: cdi-properties-test/cdi-properties-test-common/src/main/java/com/byteslounge/cdi/test/it/common/IntegrationTestDeploymentUtils.java
// public static class DeploymentAppenderFactory {
// 
//     private DeploymentAppenderFactory() {
//     }
// 
//     public static WebDeploymentAppender create(WebArchive archive) {
//         return new WebDeploymentAppender(archive);
//     }
// 
//     public static JavaDeploymentAppender create(JavaArchive archive) {
//         return new JavaDeploymentAppender(archive);
//     }
// 
//     public static EnterpriseDeploymentAppender create(EnterpriseArchive archive) {
//         return new EnterpriseDeploymentAppender(archive);
//     }
// }


// Path: cdi-properties-test/cdi-properties-test-common/src/main/java/com/byteslounge/cdi/test/it/common/AbstractWarDefaultPropertyMethod.java
import java.io.IOException;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import com.byteslounge.cdi.test.common.InjectedBean;
import com.byteslounge.cdi.test.common.TestBean;
import com.byteslounge.cdi.test.it.common.IntegrationTestDeploymentUtils.DeploymentAppenderFactory;

/*
 * Copyright 2015 byteslounge.com (Gonçalo Marques).
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 */
package com.byteslounge.cdi.test.it.common;




/**
 * Base class for Integration Tests which use the default property resolver method
 * 
 * @author Gonçalo Marques
 * @since 1.1.0
 */
public abstract class AbstractWarDefaultPropertyMethod {

    protected static WebArchive createArchive() throws IOException {

        WebArchive webArchive = ShrinkWrap.create(WebArchive.class, "cdipropertiestest.war").addClasses(TestBean.class,
                InjectedBean.class);
        DeploymentAppenderFactory