Revision 3425
Added by Jing Tao over 17 years ago
test/edu/ucsb/nceas/metacattest/client/MetacatClientTest.java | ||
---|---|---|
343 | 343 |
new File(onlinetestdatafile)); |
344 | 344 |
assertTrue(response.indexOf("<success>") != -1); |
345 | 345 |
assertTrue(response.indexOf(identifier) != -1); |
346 |
identifier = newdocid +".2"; |
|
347 |
response = m.upload(identifier, |
|
348 |
new File(onlinetestdatafile)); |
|
349 |
assertTrue(response.indexOf("<success>") != -1); |
|
350 |
assertTrue(response.indexOf(identifier) != -1); |
|
346 | 351 |
//System.err.println(response); |
347 | 352 |
|
348 | 353 |
} catch (MetacatAuthException mae) { |
... | ... | |
376 | 381 |
|
377 | 382 |
assertTrue(response.indexOf("<success>") != -1); |
378 | 383 |
assertTrue(response.indexOf(identifier) != -1); |
384 |
identifier = newdocid + ".2"; |
|
385 |
response = m.upload(identifier, "onlineDataFile1", |
|
386 |
new FileInputStream(testFile), |
|
387 |
(int) testFile.length()); |
|
388 |
|
|
389 |
assertTrue(response.indexOf("<success>") != -1); |
|
390 |
assertTrue(response.indexOf(identifier) != -1); |
|
379 | 391 |
//System.err.println(response); |
380 | 392 |
|
381 | 393 |
} catch (MetacatAuthException mae) { |
Also available in: Unified diff
Add more test (update) on upload