7
7
< link rel ="stylesheet " href ="attachments/site.css " type ="text/css ">
8
8
< link rel ="shortcut icon " href ="attachments/favicon.ico ">
9
9
< 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 -->
11
12
< script async src ="https://www.googletagmanager.com/gtag/js?id=G-MYCEY8S1MG "> </ script >
12
13
< script >
13
14
window . dataLayer = window . dataLayer || [ ] ;
30
31
</ tr >
31
32
</ tbody >
32
33
</ table >
33
- </ div > </ td >
34
+ </ div >
35
+ </ td >
34
36
</ tr >
35
37
< tr valign ="top ">
36
38
< td id ="cargo-navigation " class ="leftColumn " valign ="top " style ="padding-top:0px ">
@@ -180,7 +182,8 @@ <h3 id="Navigation-Containers">Containers</h3>
180
182
</ ul > </ li >
181
183
</ ul >
182
184
< ul class ="alternate ">
183
- < li > WebLogic< br >
185
+ < li > WebLogic
186
+ < br >
184
187
< ul class ="alternate ">
185
188
< li > < a href ="WebLogic+8.x.html "> WebLogic 8.x</ a > </ li >
186
189
< li > < a href ="WebLogic+9.x.html "> WebLogic 9.x</ a > </ li >
@@ -193,15 +196,17 @@ <h3 id="Navigation-Containers">Containers</h3>
193
196
</ ul > </ li >
194
197
</ ul >
195
198
< ul class ="alternate ">
196
- < li > WebSphere< br >
199
+ < li > WebSphere
200
+ < br >
197
201
< ul class ="alternate ">
198
202
< li > < a href ="WebSphere+8.5.x.html "> WebSphere 8.5.x</ a > </ li >
199
203
< li > < a href ="WebSphere+9.x.html "> WebSphere 9.x</ a > </ li >
200
204
< li > < a href ="WebSphere+Liberty.html "> WebSphere Liberty</ a > </ li >
201
205
</ ul > </ li >
202
206
</ ul >
203
207
< ul class ="alternate ">
204
- < li > WildFly< br >
208
+ < li > WildFly
209
+ < br >
205
210
< ul class ="alternate ">
206
211
< li > < a href ="WildFly+8.x.html "> WildFly 8.x</ a > </ li >
207
212
< li > < a href ="WildFly+9.x.html "> WildFly 9.x</ a > </ li >
@@ -252,9 +257,12 @@ <h3 id="Navigation-Development">Development</h3>
252
257
< li > < a href ="Cargo+Code+Style.html "> Code style</ a > </ li >
253
258
< li > < a href ="Adding+a+container.html "> Adding a container</ a > </ li >
254
259
</ 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 >
256
263
< li > < a href ="Release+procedure.html "> Release procedure</ a > </ li >
257
- </ ul > </ td >
264
+ </ ul >
265
+ </ td >
258
266
< td id ="cargo-content " style ="padding:0px ">
259
267
< table style ="border-collapse:collapse;width:100%;height:100% ">
260
268
< tbody >
@@ -266,21 +274,26 @@ <h3 id="Navigation-Development">Development</h3>
266
274
< td align ="left "> < b > < a href ="Home.html "> Codehaus Cargo</ a > > < a href ="Developers.html "> Developers</ a > > Adding a Samples Test</ b > </ td >
267
275
< td align ="right " style ="width:350px ">
268
276
< 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 >
271
280
</ tr >
272
281
</ tbody >
273
- </ table > </ td >
282
+ </ table >
283
+ </ td >
274
284
</ tr >
275
285
< tr valign ="top ">
276
286
< td class ="rightColumn ">
277
287
< p > updating samples test cases.</ p >
278
288
< 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 >
284
297
< div class ="code panel pdl conf-macro output-block " style ="border-width: 1px; ">
285
298
< div class ="codeContent panelContent pdl ">
286
299
< pre class ="syntaxhighlighter-pre "> <dependency>
@@ -304,23 +317,27 @@ <h3 id="Navigation-Development">Development</h3>
304
317
</ div >
305
318
< p > this will create a property that an implementation of < code > AbstractDataSourceWarCapabilityContainerTestCase</ code > can understand</ p >
306
319
< 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 >
308
322
</ tr >
309
323
</ tbody >
310
- </ table > </ td >
324
+ </ table >
325
+ </ td >
311
326
</ tr >
312
327
< tr height ="23 ">
313
328
< td colspan ="2 " style ="padding:0px ">
314
329
< div style ="position:fixed;width:100%;height:23px;bottom:0;border-top:1px solid #39434F;z-index:2;background-color:#FFFFFF ">
315
330
< table style ="width:100% ">
316
331
< tbody >
317
332
< 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 >
319
335
< td align ="right "> < a href ="Cookies.html "> Click here to read our privacy and cookie policy</ a > </ td >
320
336
</ tr >
321
337
</ tbody >
322
338
</ table >
323
- </ div > </ td >
339
+ </ div >
340
+ </ td >
324
341
</ tr >
325
342
</ tbody >
326
343
</ table >
0 commit comments