@Test public void testLoadEmptyQueue() throws Exception { dependencyLoader.load(); final EnhancedDependencies enhancedDependencies = getUpdatedEnhancedDependencies(); assertTrue( enhancedDependencies.isEmpty() ); }
public void load() { if (!updateQueue.isEmpty()) { loadFromServer(); } else { returnDefault(); } }
DependencyLoader { public void load() { if (!updateQueue.isEmpty()) { loadFromServer(); } else { returnDefault(); } } }
DependencyLoader { public void load() { if (!updateQueue.isEmpty()) { loadFromServer(); } else { returnDefault(); } } @Inject  DependencyLoader(final DependencyLoaderView view,
                            final Promises promises,
                            final Caller<DependencyService> dependencyService); }
DependencyLoader { public void load() { if (!updateQueue.isEmpty()) { loadFromServer(); } else { returnDefault(); } } @Inject  DependencyLoader(final DependencyLoaderView view,
                            final Promises promises,
                            final Caller<DependencyService> dependencyService); void init(final EnhancedDependenciesManager manager); void load(); void addToQueue(final Dependency dependency); }
DependencyLoader { public void load() { if (!updateQueue.isEmpty()) { loadFromServer(); } else { returnDefault(); } } @Inject  DependencyLoader(final DependencyLoaderView view,
                            final Promises promises,
                            final Caller<DependencyService> dependencyService); void init(final EnhancedDependenciesManager manager); void load(); void addToQueue(final Dependency dependency);  }