jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <notificati...@github.com>
Subject Re: [jclouds-labs] JCLOUDS-826: Add blob operations (#176)
Date Thu, 11 Jun 2015 08:45:16 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));

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
Mime
View raw message