Skip to content

Commit

Permalink
extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Nov 5, 2013
1 parent 560f001 commit 2d9f570
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/java/com/jcabi/s3/RegionITCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,19 @@ public void throwsWhenObjectIsAbsent() throws Exception {
new Ocket.Text(this.bucket.ocket("key-is-absent.txt")).read();
}

/**
* Region can read and write large S3 content.
* @throws Exception If fails
*/
@Test
public void readsAndWritesLargeObjectContent() throws Exception {
Assume.assumeThat(RegionITCase.KEY, Matchers.notNullValue());
final String name = "test-44.txt";
final Ocket.Text ocket = new Ocket.Text(this.bucket.ocket(name));
final String data = RandomStringUtils.random(Tv.HUNDRED * Tv.THOUSAND);
ocket.write(data);
MatcherAssert.assertThat(ocket.read(), Matchers.equalTo(data));
this.bucket.remove(name);
}

}

0 comments on commit 2d9f570

Please sign in to comment.