@Test(expected = GdxRuntimeException.class) public void testGet() { Gdx.files = mock(Files.class); Asset.get("", Texture.class); }
public static <T> T get(String relativePath, Class<T> assetClass) { AssetManager assetManager = getAssetManager(); String path = assetFolders.containsKey(assetClass) && !assetFolders.get(assetClass).trim().isEmpty() && !assetFolders.get(assetClass).equals(".") && !assetFolders.get(assetClass).equals("/") ? assetFolders.get(assetClass) + "/" + relativePath : relativePath; return assetManager.get(path, assetClass); }
Asset { public static <T> T get(String relativePath, Class<T> assetClass) { AssetManager assetManager = getAssetManager(); String path = assetFolders.containsKey(assetClass) && !assetFolders.get(assetClass).trim().isEmpty() && !assetFolders.get(assetClass).equals(".") && !assetFolders.get(assetClass).equals("/") ? assetFolders.get(assetClass) + "/" + relativePath : relativePath; return assetManager.get(path, assetClass); } }
Asset { public static <T> T get(String relativePath, Class<T> assetClass) { AssetManager assetManager = getAssetManager(); String path = assetFolders.containsKey(assetClass) && !assetFolders.get(assetClass).trim().isEmpty() && !assetFolders.get(assetClass).equals(".") && !assetFolders.get(assetClass).equals("/") ? assetFolders.get(assetClass) + "/" + relativePath : relativePath; return assetManager.get(path, assetClass); } private  Asset(); }
Asset { public static <T> T get(String relativePath, Class<T> assetClass) { AssetManager assetManager = getAssetManager(); String path = assetFolders.containsKey(assetClass) && !assetFolders.get(assetClass).trim().isEmpty() && !assetFolders.get(assetClass).equals(".") && !assetFolders.get(assetClass).equals("/") ? assetFolders.get(assetClass) + "/" + relativePath : relativePath; return assetManager.get(path, assetClass); } private  Asset(); static T get(String relativePath, Class<T> assetClass); static void load(String key, Class<?> value); static void reload(); static void finishLoading(); }
Asset { public static <T> T get(String relativePath, Class<T> assetClass) { AssetManager assetManager = getAssetManager(); String path = assetFolders.containsKey(assetClass) && !assetFolders.get(assetClass).trim().isEmpty() && !assetFolders.get(assetClass).equals(".") && !assetFolders.get(assetClass).equals("/") ? assetFolders.get(assetClass) + "/" + relativePath : relativePath; return assetManager.get(path, assetClass); } private  Asset(); static T get(String relativePath, Class<T> assetClass); static void load(String key, Class<?> value); static void reload(); static void finishLoading(); static FileHandleResolver fileHandleResolver; }