@Test public void factoryShouldCreateRequestQueue() { RequestQueue requestQueue = DefaultRequestQueueFactory.create(context); assertNotNull(requestQueue); }
public static RequestQueue create(Context context) { Assert.notNull(context, "Context"); Cache diskCache = getDefaultDiskCache(context); HttpStack httpStack = HttpStackFactory.createDefaultHttpStack(); Network network = getDefaultNetwork(httpStack); return new RequestQueue(diskCache, network); }
DefaultRequestQueueFactory { public static RequestQueue create(Context context) { Assert.notNull(context, "Context"); Cache diskCache = getDefaultDiskCache(context); HttpStack httpStack = HttpStackFactory.createDefaultHttpStack(); Network network = getDefaultNetwork(httpStack); return new RequestQueue(diskCache, network); } }
DefaultRequestQueueFactory { public static RequestQueue create(Context context) { Assert.notNull(context, "Context"); Cache diskCache = getDefaultDiskCache(context); HttpStack httpStack = HttpStackFactory.createDefaultHttpStack(); Network network = getDefaultNetwork(httpStack); return new RequestQueue(diskCache, network); }  }
DefaultRequestQueueFactory { public static RequestQueue create(Context context) { Assert.notNull(context, "Context"); Cache diskCache = getDefaultDiskCache(context); HttpStack httpStack = HttpStackFactory.createDefaultHttpStack(); Network network = getDefaultNetwork(httpStack); return new RequestQueue(diskCache, network); }  static RequestQueue create(Context context); static Network getDefaultNetwork(HttpStack httpStack); static Cache getDefaultDiskCache(Context context); static File getCacheDir(Context context); }
DefaultRequestQueueFactory { public static RequestQueue create(Context context) { Assert.notNull(context, "Context"); Cache diskCache = getDefaultDiskCache(context); HttpStack httpStack = HttpStackFactory.createDefaultHttpStack(); Network network = getDefaultNetwork(httpStack); return new RequestQueue(diskCache, network); }  static RequestQueue create(Context context); static Network getDefaultNetwork(HttpStack httpStack); static Cache getDefaultDiskCache(Context context); static File getCacheDir(Context context);  }