jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roman Coedo <notificati...@github.com>
Subject Re: [jclouds-labs] JCLOUDS-826: Add blob operations (#176)
Date Thu, 11 Jun 2015 08:40:47 GMT
> +      }
> +      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
Mime
View raw message