MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / test

Method test

newio/MappedIO.java:30–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 private static Tester[] tests = {
29 new Tester("Stream Write") {
30 @Override public void test() {
31 try(
32 DataOutputStream dos =
33 new DataOutputStream(
34 new BufferedOutputStream(
35 new FileOutputStream(
36 new File("temp.tmp"))))
37 ) {
38 for(int i = 0; i < numOfInts; i++)
39 dos.writeInt(i);
40 } catch(IOException e) {
41 throw new RuntimeException(e);
42 }
43 }
44 },
45 new Tester("Mapped Write") {
46 @Override public void test() {

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
sizeMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected