> + }
> + 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));
Absolutely, but EasyMock is the one we use for this kind of tests. You'll have
it already available as a transitive dependency, so there's no need to add it
to the pom.xml
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/176/files#r32200459