test_class.file: cache/src/test/java/net/runelite/cache/definitions/savers/InterfaceSaverTest.java
test_class.identifier: InterfaceSaverTest
test_case.body: @Test
  	public void testSave() throws Exception
  	{
  		File base = StoreLocation.LOCATION;
  		try (Store store = new Store(base))
  		{
  			store.load();
  
  			Storage storage = store.getStorage();
  			Index index = store.getIndex(IndexType.INTERFACES);
  			Archive archive = index.getArchive(31);
  			byte[] archiveData = storage.loadArchive(archive);
  			ArchiveFiles files = archive.getFiles(archiveData);
  			FSFile file = files.findFile(76);
  			byte[] contents = file.getContents();
  
  			InterfaceDefinition def = new InterfaceLoader().load(0, contents);
  			byte[] b = new InterfaceSaver().save(def);
  			assertArrayEquals(contents, b);
  		}
  	}
test_case.class_method_signature: InterfaceSaverTest.testSave()
test_case.full_signature: @Test public void testSave()
test_case.identifier: testSave
test_case.invocations: load getStorage getIndex getArchive loadArchive getFiles findFile getContents load save assertArrayEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSave()
focal_class.file: cache/src/main/java/net/runelite/cache/definitions/savers/InterfaceSaver.java
focal_class.identifier: InterfaceSaver
focal_class.class_method_signature: InterfaceSaver.save(InterfaceDefinition def)
focal_class.full_signature: public byte[] save(InterfaceDefinition def)
focal_class.identifier: save
focal_class.modifiers: public
focal_class.parameters: (InterfaceDefinition def)
focal_class.return: byte[]
focal_class.signature: byte[] save(InterfaceDefinition def)
focal_class.class_method_signature: InterfaceSaver.saveIf3(InterfaceDefinition def)
focal_class.full_signature: private byte[] saveIf3(InterfaceDefinition def)
focal_class.identifier: saveIf3
focal_class.modifiers: private
focal_class.parameters: (InterfaceDefinition def)
focal_class.return: byte[]
focal_class.signature: byte[] saveIf3(InterfaceDefinition def)
focal_class.class_method_signature: InterfaceSaver.saveIf1(InterfaceDefinition def)
focal_class.full_signature: private byte[] saveIf1(InterfaceDefinition def)
focal_class.identifier: saveIf1
focal_class.modifiers: private
focal_class.parameters: (InterfaceDefinition def)
focal_class.return: byte[]
focal_class.signature: byte[] saveIf1(InterfaceDefinition def)
focal_method.body: public byte[] save(InterfaceDefinition def)
  	{
  		if (def.isIf3)
  		{
  			return saveIf3(def);
  		}
  		else
  		{
  			return saveIf1(def);
  		}
  	}
focal_method.class_method_signature: InterfaceSaver.save(InterfaceDefinition def)
focal_method.full_signature: public byte[] save(InterfaceDefinition def)
focal_method.identifier: save
focal_method.invocations: saveIf3 saveIf1
focal_method.modifiers: public
focal_method.parameters: (InterfaceDefinition def)
focal_method.return: byte[]
focal_method.signature: byte[] save(InterfaceDefinition def)