Merge pull request #5394 from Abextm/if-cache-names

cache: Name InterfaceDefinition
This commit is contained in:
Adam
2018-09-12 08:12:38 -04:00
committed by GitHub
5 changed files with 357 additions and 260 deletions

View File

@@ -40,7 +40,6 @@ import org.junit.Test;
public class InterfaceSaverTest
{
@Test
public void testSave() throws Exception
{
@@ -51,10 +50,10 @@ public class InterfaceSaverTest
Storage storage = store.getStorage();
Index index = store.getIndex(IndexType.INTERFACES);
Archive archive = index.getArchive(149);
Archive archive = index.getArchive(31);
byte[] archiveData = storage.loadArchive(archive);
ArchiveFiles files = archive.getFiles(archiveData);
FSFile file = files.findFile(0);
FSFile file = files.findFile(76);
byte[] contents = file.getContents();
InterfaceDefinition def = new InterfaceLoader().load(0, contents);