Skip to content

Commit 98c8851

Browse files
ktosodagnir
authored andcommitted
include sample content in test file, FIXME: these should use a virtual
filesystem
1 parent 7598c3a commit 98c8851

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

core/src/test/java/software/amazon/awssdk/core/async/FileAsyncRequestPublisherTckTest.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,25 @@
1515

1616
package software.amazon.awssdk.core.async;
1717

18+
import org.junit.Test;
1819
import org.reactivestreams.Publisher;
20+
import org.reactivestreams.Subscriber;
1921
import org.reactivestreams.tck.TestEnvironment;
22+
import software.amazon.awssdk.http.async.SimpleSubscriber;
2023

24+
import java.io.BufferedWriter;
2125
import java.io.File;
26+
import java.io.FileWriter;
2227
import java.io.IOException;
2328
import java.nio.ByteBuffer;
29+
import java.nio.charset.StandardCharsets;
30+
import java.nio.file.FileSystem;
31+
import java.nio.file.Files;
32+
import java.nio.file.Paths;
33+
34+
import static org.assertj.core.api.Assertions.assertThat;
35+
import static org.mockito.Matchers.any;
36+
import static org.mockito.Mockito.*;
2437

2538
public class FileAsyncRequestPublisherTckTest extends org.reactivestreams.tck.PublisherVerification<ByteBuffer> {
2639

@@ -29,6 +42,15 @@ public class FileAsyncRequestPublisherTckTest extends org.reactivestreams.tck.Pu
2942

3043
public FileAsyncRequestPublisherTckTest() throws IOException {
3144
super(new TestEnvironment());
45+
46+
BufferedWriter writer = new BufferedWriter(new FileWriter(example));
47+
writer.write("Hello world\n");
48+
writer.write("Hello world\n");
49+
writer.write("Hello world\n");
50+
writer.write("Hello world\n");
51+
writer.write("Hello world\n");
52+
writer.flush();
53+
writer.close();
3254
}
3355

3456
@Override

0 commit comments

Comments
 (0)