@DataProvider (name = "testToStringDataProvider")
  Object[][] testToStringDataProvider() {
    return new Object[][]{
        {0, "0 B"},
        {100, "100 B"},
        {10 * 1024, "10 KB"},
        {15l * 1024 * 1024, "15 MB"},
        {25l * 1024 * 1024 * 1024, "25 GB"},
        {35l * 1024 * 1024 * 1024 * 1024, "35 TB"},
        {1536, "1.5 KB"},
        {1025, "1 KB"},
        {1024 * 1024 - 1, "1024 KB"}

    };
  }
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