@Test public void factoryShouldReturnBasicNetwork() { HttpStack httpStack = HttpStackFactory.createDefaultHttpStack(); Network network = DefaultRequestQueueFactory.getDefaultNetwork(httpStack); assertEquals(network.getClass(), BasicNetwork.class); }
public static Network getDefaultNetwork(HttpStack httpStack) { Assert.notNull(httpStack, "HttpStack"); return new BasicNetwork(httpStack); }
DefaultRequestQueueFactory { public static Network getDefaultNetwork(HttpStack httpStack) { Assert.notNull(httpStack, "HttpStack"); return new BasicNetwork(httpStack); } }
DefaultRequestQueueFactory { public static Network getDefaultNetwork(HttpStack httpStack) { Assert.notNull(httpStack, "HttpStack"); return new BasicNetwork(httpStack); }  }
DefaultRequestQueueFactory { public static Network getDefaultNetwork(HttpStack httpStack) { Assert.notNull(httpStack, "HttpStack"); return new BasicNetwork(httpStack); }  static RequestQueue create(Context context); static Network getDefaultNetwork(HttpStack httpStack); static Cache getDefaultDiskCache(Context context); static File getCacheDir(Context context); }
DefaultRequestQueueFactory { public static Network getDefaultNetwork(HttpStack httpStack) { Assert.notNull(httpStack, "HttpStack"); return new BasicNetwork(httpStack); }  static RequestQueue create(Context context); static Network getDefaultNetwork(HttpStack httpStack); static Cache getDefaultDiskCache(Context context); static File getCacheDir(Context context);  }