geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament" <>
Subject Reading from a WAR file in an Arquillian test
Date Thu, 30 Nov 2017 18:05:29 GMT
I have the following deployment used in an Arquillian test:

    public static WebArchive createDeployment() {
        String propertyName = SimpleGetApi.class.getName()+"/mp-rest/url";
        String value = getStringURL();
        return ShrinkWrap.create(WebArchive.class)
            .addAsManifestResource(new StringAsset(propertyName+"="+value),
            .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");

When I use this, Geronimo Config says it can't find the property.  When I
instead change to use a JAR file, it's loaded correctly.

So is this file in the right location in the WAR?


Or should GConfig be looking for it in WEB-INF/classes/META-INF?

And the other half of my question, is this a GConfig issue or a MP Config


View raw message