package net.runelite.cache.fs;

import java.io.IOException;
import org.junit.Test;

public class StoreLoadTest
{
	@Test
	public void test() throws IOException
	{
		Store store = new Store(new java.io.File("d:/rs/07/cache"));//c:/rs/cache"));
		store.load();
		System.out.println(store);
	}
}

@@ -25,16 +25,49 @@
 he.fs;%0A%0A
+import java.io.FileOutputStream;%0A
 import j
@@ -315,11 +315,745 @@
 ore);%0A%09%7D
+%0A%0A%09//@Test%0A%09public void unpackStore() throws IOException%0A%09%7B%0A%09%09java.io.File base = new java.io.File(%22d:/rs/07/cache%22);%0A%09%09try (Store store = new Store(base))%0A%09%09%7B%0A%09%09%09store.load();%0A%0A%09%09%09for (Index i : store.getIndexes())%0A%09%09%09%7B%0A%09%09%09%09java.io.File ifile = new java.io.File(base, %22%22 + i.getId());%0A%09%09%09%09ifile.mkdir();%0A%0A%09%09%09%09for (Archive a : i.getArchives())%0A%09%09%09%09%7B%0A%09%09%09%09%09java.io.File afile = new java.io.File(ifile, %22%22 + a.getArchiveId());%0A%09%09%09%09%09afile.mkdir();%0A%0A%09%09%09%09%09for (File f : a.getFiles())%0A%09%09%09%09%09%7B%0A%09%09%09%09%09%09java.io.File ffile = new java.io.File(afile, %22%22 + f.getFileId());%0A%09%09%09%09%09%09try (FileOutputStream fout = new FileOutputStream(ffile))%0A%09%09%09%09%09%09%7B%0A%09%09%09%09%09%09%09if (f.getContents() != null)%0A%09%09%09%09%09%09%09%09fout.write(f.getContents());%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D
 %0A%7D%0A

Add disabled test to dump cache