protected WebArchive genericCreateArchiveWithPemsAndMPConfig ( String sourceWarName , String baseWarName , List < String > classList , String mpConfig , String fileContent ) throws Exception { try { WebArchive newWar = genericCreateArchiveWithPems ( sourceWarName , baseWarName , classList ) ; newWar . add ( new StringAsset ( fileContent ) , mpConfig ) ; return newWar ; } catch ( Exception e ) { Log . error ( thisClass , "genericCreateArchive" , e ) ; throw e ; } }
Create a test war using files from the source war and the classList . Add a default list of pem files . Also add a microprofile - config . properties file with the content passed to this method