@DataProvider (name = "testFileSizeDataProvider")
  public Object[][] testFileSizeDataProvider() {
    return new Object[][]{
        {"0", 0l},
        {"0 B", 0l},
        {"0B", 0l},
        {"1kB", 1024l},
        {"1 kB", 1024l},
        {"1,5kB", 1024l + 512},
        {"1.5kB", 1024l + 512},
        {"1 MB", 1024l * 1024},
        {"1 GB", 1024l * 1024 * 1024},
        {"1 TB", 1024l * 1024 * 1024 * 1024}
    };
  }
Created with IntelliJ IDEA.
User: krzyh
Date: 10/30/13
Time: 7:43 AM
To change this template use File | Settings | File Templates.
olv-vfs/src/test/java/pl/otros/vfs/browser/table/FileSizeTest.java