> + return false; > + default: > + System.out.println("Not a valid option"); > + break; > + } > + } > + catch(InputMismatchException e){ > + System.out.println("Not a valid option"); > + } > + return true; > + } > + > + private static ByteSource buildData(long size) { > + byte[] array = new byte[1024]; > + Arrays.fill(array, (byte) 'a'); > + return ByteSources.repeatingArrayByteSource(array).slice(0, size);
Can you call `TestUtils.randomByteSource().limit(size)` instead? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-examples/pull/58/files#r16017703