@Test public void testReplaceBinaryRef() { Array<String> uris = buildUris(); BinRefContainer binRefContainer = new BinRefContainer(uris); ReferenceUtils.replaceBinaryRef(binRefContainer, "A test", "Another test"); assertEquals(binRefContainer.notAnUri, "Another test"); String str = "simple test"; ReferenceUtils.replaceBinaryRef(binRefContainer, uris.get(2), str); ReferenceUtils.replaceBinaryRef(binRefContainer, uris.get(3), str); ReferenceUtils.replaceBinaryRef(binRefContainer, uris.get(4), str); ReferenceUtils.replaceBinaryRef(binRefContainer, uris.get(5), str); ReferenceUtils.replaceBinaryRef(binRefContainer, uris.get(6), str); ReferenceUtils.replaceBinaryRef(binRefContainer, uris.get(8), "skeleton3"); ReferenceUtils.replaceBinaryRef(binRefContainer, "skeleton3.json", "skeleton2"); assertEquals(binRefContainer.refHolder.uri, str); assertEquals(binRefContainer.list.get(0).uri, str); assertEquals(binRefContainer.list.get(1).uri, str); assertEquals(binRefContainer.array.get(0).uri, str); assertEquals(binRefContainer.array.get(1).uri, uris.get(0)); assertEquals(binRefContainer.uriMap.get("uri1"), str); assertEquals(binRefContainer.uriMap.get("uri2"), uris.get(7)); assertEquals(binRefContainer.animation.getUri(), "skeleton2"); }
public static void replaceBinaryRef(Object object, String oldRef, String newRef) { replaceBinaryRef(object, null, oldRef, newRef); }
ReferenceUtils { public static void replaceBinaryRef(Object object, String oldRef, String newRef) { replaceBinaryRef(object, null, oldRef, newRef); } }
ReferenceUtils { public static void replaceBinaryRef(Object object, String oldRef, String newRef) { replaceBinaryRef(object, null, oldRef, newRef); }  }
ReferenceUtils { public static void replaceBinaryRef(Object object, String oldRef, String newRef) { replaceBinaryRef(object, null, oldRef, newRef); }  static boolean hasBinaryExtension(String strValue); static boolean hasImageExtension(String strValue); static boolean hasVideoExtension(String strValue); static boolean hasAudioExtension(String strValue); static Array<String> listRefBinaries(Object object); static void replaceBinaryRef(Object object, String oldRef,
			String newRef); }
ReferenceUtils { public static void replaceBinaryRef(Object object, String oldRef, String newRef) { replaceBinaryRef(object, null, oldRef, newRef); }  static boolean hasBinaryExtension(String strValue); static boolean hasImageExtension(String strValue); static boolean hasVideoExtension(String strValue); static boolean hasAudioExtension(String strValue); static Array<String> listRefBinaries(Object object); static void replaceBinaryRef(Object object, String oldRef,
			String newRef); static final Array<String> imageExtensions; static final Array<String> audioExtensions; }