deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/api/config/injectable/InjectableConfigPropertyTest.java
/**
     *X TODO creating a WebArchive is only a workaround because JavaArchive cannot contain other archives.
     */
X TODO creating a WebArchive is only a workaround because JavaArchive cannot contain other archives.
X TODO creating a WebArchive is only a workaround because JavaArchive cannot contain other archives .
@Deployment
    public static WebArchive deploy()
    {
        URL fileUrl = InjectableConfigPropertyTest.class.getClassLoader()
                .getResource("META-INF/apache-deltaspike.properties");
        JavaArchive testJar = ShrinkWrap.create(JavaArchive.class, "injectableConfigPropertyTest.jar")
                .addPackage(SettingsBean.class.getPackage())
                .addPackage(ServerEndpointPojoWithCt.class.getPackage())
                .addPackage(NumberConfiguredBean.class.getPackage())
                .addAsManifestResource(FileUtils.getFileForURL(fileUrl.toString()))
                .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
        return ShrinkWrap.create(WebArchive.class, "beanProvider.war")
                .addAsLibraries(ArchiveUtils.getDeltaSpikeCoreArchive())
                .addAsLibraries(testJar)
                .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
    }
@ Deployment public static WebArchive deploy ( ) { URL fileUrl = InjectableConfigPropertyTest . class . getClassLoader ( ) . getResource ( "META-INF/apache-deltaspike.properties" ) ; JavaArchive testJar = ShrinkWrap . create ( JavaArchive . class , "injectableConfigPropertyTest.jar" ) . addPackage ( SettingsBean . class . getPackage ( ) ) . addPackage ( ServerEndpointPojoWithCt . class . getPackage ( ) ) . addPackage ( NumberConfiguredBean . class . getPackage ( ) ) . addAsManifestResource ( FileUtils . getFileForURL ( fileUrl . toString ( ) ) ) . addAsManifestResource ( EmptyAsset . INSTANCE , "beans.xml" ) ; return ShrinkWrap . create ( WebArchive . class , "beanProvider.war" ) . addAsLibraries ( ArchiveUtils . getDeltaSpikeCoreArchive ( ) ) . addAsLibraries ( testJar ) . addAsWebInfResource ( EmptyAsset . INSTANCE , "beans.xml" ) ; }
X TODO creating a WebArchive is only a workaround because JavaArchive cannot contain other archives.
X TODO creating a WebArchive is only a workaround because JavaArchive cannot contain other archives .