Lines Matching refs:counter
31 CountingOutputStream counter = new CountingOutputStream(out);
33 assertEquals(written, counter.getCount());
35 counter.write(0);
38 assertEquals(written, counter.getCount());
41 counter.write(data);
44 assertEquals(written, counter.getCount());
46 counter.write(data, 0, 5);
49 assertEquals(written, counter.getCount());
51 counter.write(data, 2, 5);
54 assertEquals(written, counter.getCount());
58 counter.write(data, 0, data.length + 1);
63 assertEquals(written, counter.getCount());