Skip to content

Commit 89a6988

Browse files
committed
update testcase.
1 parent 4b9abae commit 89a6988

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/test/java/com/aliyun/oss/common/model/BucketRelatedTest.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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

src/test/java/com/aliyun/oss/integrationtests/AsyncProcessObjectTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)