> + }
> + int b = currentChunk.getData()[bytesRead] & 0xff;
> + bytesRead = bytesRead + 1;
> + if (bytesRead >= currentChunk.getSize()) {
> + readNextChunk();
> + }
> + return b;
> + }
> +
> + private boolean hasFinished() {
> + return chunks.size() == 0 && bytesRead >= currentChunk.getSize();
> + }
> +
> + private void readNextChunk() {
> + if (chunks.size() > 0) {
> + this.currentChunk = jdbcService.findChunkById(chunks.get(0));
To properly implement a unit test for this class I'll probably need some
library to mock the jdbcService (e.g. mockito). Is this ok?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/176/files#r32200142