File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
src/test/java/com/aliyun/oss Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -411,13 +411,7 @@ public void testBucket() {
411411 public void testDataRedundancyType () {
412412 assertEquals (DataRedundancyType .LRS , DataRedundancyType .parse ("LRS" ));
413413 assertEquals (DataRedundancyType .ZRS , DataRedundancyType .parse ("ZRS" ));
414-
415- try {
416- DataRedundancyType type = DataRedundancyType .parse ("ERROR" );
417- assertTrue (false );
418- } catch (Exception e ) {
419- assertTrue (true );
420- }
414+ assertEquals (DataRedundancyType .Unknown , DataRedundancyType .parse ("ERROR" ));
421415 }
422416
423417 @ Test
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public void testAsyncProcessObject() {
7171
7272 } catch (OSSException e ) {
7373 e .printStackTrace ();
74- Assert .assertTrue (e .getErrorMessage ().contains ("ResourceNotFound, The specified resource OSSBucket is not found." ));
74+ Assert .assertTrue (e .getErrorMessage ().contains ("ResourceNotFound, The specified resource Attachment is not found." ));
7575 }
7676 }
7777}
You can’t perform that action at this time.
0 commit comments