77 < link rel ="stylesheet " href ="attachments/site.css " type ="text/css ">
88 < link rel ="shortcut icon " href ="attachments/favicon.ico ">
99 < link rel ="icon " type ="image/x-icon " href ="attachments/favicon.ico ">
10- < title > Codehaus Cargo - Adding a Samples Test</ title > <!-- Global site tag (gtag.js) - Google Analytics -->
10+ < title > Codehaus Cargo - Adding a Samples Test</ title >
11+ <!-- Global site tag (gtag.js) - Google Analytics -->
1112 < script async src ="https://www.googletagmanager.com/gtag/js?id=G-MYCEY8S1MG "> </ script >
1213 < script >
1314 window . dataLayer = window . dataLayer || [ ] ;
3031 </ tr >
3132 </ tbody >
3233 </ table >
33- </ div > </ td >
34+ </ div >
35+ </ td >
3436 </ tr >
3537 < tr valign ="top ">
3638 < td id ="cargo-navigation " class ="leftColumn " valign ="top " style ="padding-top:0px ">
@@ -180,7 +182,8 @@ <h3 id="Navigation-Containers">Containers</h3>
180182 </ ul > </ li >
181183 </ ul >
182184 < ul class ="alternate ">
183- < li > WebLogic< br >
185+ < li > WebLogic
186+ < br >
184187 < ul class ="alternate ">
185188 < li > < a href ="WebLogic+8.x.html "> WebLogic 8.x</ a > </ li >
186189 < li > < a href ="WebLogic+9.x.html "> WebLogic 9.x</ a > </ li >
@@ -193,15 +196,17 @@ <h3 id="Navigation-Containers">Containers</h3>
193196 </ ul > </ li >
194197 </ ul >
195198 < ul class ="alternate ">
196- < li > WebSphere< br >
199+ < li > WebSphere
200+ < br >
197201 < ul class ="alternate ">
198202 < li > < a href ="WebSphere+8.5.x.html "> WebSphere 8.5.x</ a > </ li >
199203 < li > < a href ="WebSphere+9.x.html "> WebSphere 9.x</ a > </ li >
200204 < li > < a href ="WebSphere+Liberty.html "> WebSphere Liberty</ a > </ li >
201205 </ ul > </ li >
202206 </ ul >
203207 < ul class ="alternate ">
204- < li > WildFly< br >
208+ < li > WildFly
209+ < br >
205210 < ul class ="alternate ">
206211 < li > < a href ="WildFly+8.x.html "> WildFly 8.x</ a > </ li >
207212 < li > < a href ="WildFly+9.x.html "> WildFly 9.x</ a > </ li >
@@ -252,9 +257,12 @@ <h3 id="Navigation-Development">Development</h3>
252257 < li > < a href ="Cargo+Code+Style.html "> Code style</ a > </ li >
253258 < li > < a href ="Adding+a+container.html "> Adding a container</ a > </ li >
254259 </ ul > </ li >
255- < li > < a href ="https://codehaus-cargo.semaphoreci.com/projects/cargo "> Continous integration</ a > < br > < a href ="https://codehaus-cargo.semaphoreci.com/projects/cargo "> < span class ="confluence-embedded-file-wrapper "> < img class ="confluence-embedded-image confluence-external-resource " id ="ci-status-image " src ="https://codehaus-cargo.semaphoreci.com/badges/cargo/branches/master.svg?style=shields " loading ="lazy "> </ span > </ a > </ li >
260+ < li > < a href ="https://codehaus-cargo.semaphoreci.com/projects/cargo "> Continous integration</ a >
261+ < br >
262+ < a href ="https://codehaus-cargo.semaphoreci.com/projects/cargo "> < span class ="confluence-embedded-file-wrapper "> < img class ="confluence-embedded-image confluence-external-resource " id ="ci-status-image " src ="https://codehaus-cargo.semaphoreci.com/badges/cargo/branches/master.svg?style=shields " loading ="lazy "> </ span > </ a > </ li >
256263 < li > < a href ="Release+procedure.html "> Release procedure</ a > </ li >
257- </ ul > </ td >
264+ </ ul >
265+ </ td >
258266 < td id ="cargo-content " style ="padding:0px ">
259267 < table style ="border-collapse:collapse;width:100%;height:100% ">
260268 < tbody >
@@ -266,21 +274,26 @@ <h3 id="Navigation-Development">Development</h3>
266274 < td align ="left "> < b > < a href ="Home.html "> Codehaus Cargo</ a > > < a href ="Developers.html "> Developers</ a > > Adding a Samples Test</ b > </ td >
267275 < td align ="right " style ="width:350px ">
268276 < form method ="GET " action ="Search.html ">
269- < input type ="text " size ="30 " name ="q " id ="search_query "> < input type ="submit " value ="Search ">
270- </ form > </ td >
277+ < input type ="text " size ="30 " name ="q " id ="search_query "> < input type ="submit " value ="Search ">
278+ </ form >
279+ </ td >
271280 </ tr >
272281 </ tbody >
273- </ table > </ td >
282+ </ table >
283+ </ td >
274284 </ tr >
275285 < tr valign ="top ">
276286 < td class ="rightColumn ">
277287 < p > updating samples test cases.</ p >
278288 < p > 1. find the test case you wish to copy.</ p >
279- < p > copy recursively < code > resources/testdata/<you_want_to_copy>-war</ code > to a new folder (ex. < code > resources/testdata/NEW-war</ code > )< br >
280- edit < code > resources/testdata/new-war/pom.xml</ code > (change < code > artifact-id</ code > to < code > NEW-war</ code > , and name to something descriptive )< br >
281- edit < code > resources/testdata/pom.xml</ code > and add module < code > NEW-war</ code > </ p >
282- < p > edit < code > core/samples/pom.xml</ code > < br >
283- under Test data artifacts, add</ p >
289+ < p > copy recursively < code > resources/testdata/<you_want_to_copy>-war</ code > to a new folder (ex. < code > resources/testdata/NEW-war</ code > )
290+ < br >
291+ edit < code > resources/testdata/new-war/pom.xml</ code > (change < code > artifact-id</ code > to < code > NEW-war</ code > , and name to something descriptive )
292+ < br >
293+ edit < code > resources/testdata/pom.xml</ code > and add module < code > NEW-war</ code > </ p >
294+ < p > edit < code > core/samples/pom.xml</ code >
295+ < br >
296+ under Test data artifacts, add</ p >
284297 < div class ="code panel pdl conf-macro output-block " style ="border-width: 1px; ">
285298 < div class ="codeContent panelContent pdl ">
286299 < pre class ="syntaxhighlighter-pre "> <dependency>
@@ -304,23 +317,27 @@ <h3 id="Navigation-Development">Development</h3>
304317 </ div >
305318 < p > this will create a property that an implementation of < code > AbstractDataSourceWarCapabilityContainerTestCase</ code > can understand</ p >
306319 < p > add a new test class that does what you want, extending < code > AbstractDataSourceWarCapabilityContainerTestCase</ code > or a subclass of it. Make sure you use an appropriate < code > Validator</ code > for the configuration type you are concerned with. Otherwise you may end up testing invalid containers.</ p >
307- < p > finally, execute < code > mvn -P<container_to_test> install</ code > from the root of Cargo.</ p > </ td >
320+ < p > finally, execute < code > mvn -P<container_to_test> install</ code > from the root of Cargo.</ p >
321+ </ td >
308322 </ tr >
309323 </ tbody >
310- </ table > </ td >
324+ </ table >
325+ </ td >
311326 </ tr >
312327 < tr height ="23 ">
313328 < td colspan ="2 " style ="padding:0px ">
314329 < div style ="position:fixed;width:100%;height:23px;bottom:0;border-top:1px solid #39434F;z-index:2;background-color:#FFFFFF ">
315330 < table style ="width:100% ">
316331 < tbody >
317332 < tr valign ="top ">
318- < td align ="left "> Copyright 2004-2025. All rights reserved unless otherwise noted.< br > </ td >
333+ < td align ="left "> Copyright 2004-2025. All rights reserved unless otherwise noted.
334+ < br > </ td >
319335 < td align ="right "> < a href ="Cookies.html "> Click here to read our privacy and cookie policy</ a > </ td >
320336 </ tr >
321337 </ tbody >
322338 </ table >
323- </ div > </ td >
339+ </ div >
340+ </ td >
324341 </ tr >
325342 </ tbody >
326343 </ table >
0 commit comments