Revision 4504
Added by daigle about 16 years ago
test/edu/ucsb/nceas/metacattest/OnlineDataAccessTest.java | ||
---|---|---|
327 | 327 |
*/ |
328 | 328 |
public void onlineDataCasesTest_1() { |
329 | 329 |
try { |
330 |
debug("\nRunning: onlineDataCasesTest_1"); |
|
330 | 331 |
|
331 | 332 |
// upload online data |
332 | 333 |
onlineDocid = generateDocid(); |
... | ... | |
402 | 403 |
*/ |
403 | 404 |
public void onlineDataCasesTest_2() { |
404 | 405 |
try { |
406 |
debug("\nRunning: onlineDataCasesTest_2"); |
|
405 | 407 |
|
406 | 408 |
// upload an online document |
407 | 409 |
onlineDocid = generateDocid(); |
... | ... | |
476 | 478 |
*/ |
477 | 479 |
public void onlineDataCasesTest_3() { |
478 | 480 |
try { |
481 |
debug("\nRunning: onlineDataCasesTest_3"); |
|
479 | 482 |
|
480 | 483 |
/////////Case 1.///////////////////// |
481 | 484 |
// upload an online document - read only |
... | ... | |
679 | 682 |
*/ |
680 | 683 |
public void onlineDataCasesTest_4() { |
681 | 684 |
try { |
685 |
debug("\nRunning: onlineDataCasesTest_4"); |
|
682 | 686 |
|
683 | 687 |
/////////Case 1.///////////////////// |
684 | 688 |
// upload an online document - read only |
... | ... | |
874 | 878 |
* exist - wrong url |
875 | 879 |
*/ |
876 | 880 |
public void onlineDataCasesTest_5() { |
877 |
try { |
|
881 |
try { |
|
882 |
debug("\nRunning: onlineDataCasesTest_5"); |
|
878 | 883 |
|
879 | 884 |
// upload online data |
880 | 885 |
onlineDocid = generateDocid(); |
... | ... | |
925 | 930 |
*/ |
926 | 931 |
public void onlineDataCasesTest_6() { |
927 | 932 |
try { |
928 |
|
|
933 |
debug("\nRunning: onlineDataCasesTest_6"); |
|
929 | 934 |
// insert a document |
930 | 935 |
m.login(username, password); |
931 | 936 |
testdocument = getTestEmlDoc("OnlineDataAccessTest: Doing insert", |
... | ... | |
1130 | 1135 |
catch (MetacatException me) { |
1131 | 1136 |
if (! (expectedKarmaFailure && |
1132 | 1137 |
(me.getMessage().indexOf( |
1133 |
"User try to update a access module which it doesn't have \"ALL\" permission") !=
|
|
1138 |
"User tried to update an access module when they don't have \"ALL\" permission") !=
|
|
1134 | 1139 |
-1))) { |
1135 | 1140 |
fail("Metacat Error:\n" + me.getMessage()); |
1136 | 1141 |
} |
Also available in: Unified diff
Add debug statements at the beginning of every test module.