Package com.m6d.filecrush.crush

Examples of com.m6d.filecrush.crush.FileStatusHasSize


    bucketer.reset(dir);

    for (int i = 0; i < input.size(); i++) {
      FileStatus file = input.get(i);

      bucketer.add(new FileStatusHasSize(file));

      assertThat(dir, bucketer.count(), equalTo(i + 1));
    }

    List<Bucket> actual = bucketer.createBuckets();
View Full Code Here


    bucketer = new Bucketer(5, 50, true);
  }

  @Test(expected = IllegalStateException.class)
  public void callAddBeforeReset() {
    bucketer.add(new FileStatusHasSize(new FileStatus()));
  }
View Full Code Here

TOP

Related Classes of com.m6d.filecrush.crush.FileStatusHasSize

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.