@Test public void testOperations() { int numItems = 250; RunnableHolder runnables = new RunnableHolder(numItems); runnables.addOperations(fixture); assertTrue("Should have some operations", fixture.operations().count() > 0); fixture.waitUntilAllOperationsAreFinished(); assertTrue("Should have completed all operations", fixture.operations().count() == 0); }
public abstract NSArray operations();
NSOperationQueue extends NSObject { public abstract NSArray operations(); }
NSOperationQueue extends NSObject { public abstract NSArray operations();  }
NSOperationQueue extends NSObject { public abstract NSArray operations();  abstract NSOperationQueue init(); abstract void addOperation(NSOperation operation); abstract void addOperations_waitUntilFinished(NSArray ops, boolean wait); abstract void cancelAllOperations(); abstract boolean isSuspended(); abstract NSInteger maxConcurrentOperationCount(); abstract String name(); abstract NSUInteger operationCount(); abstract NSArray operations(); abstract void setMaxConcurrentOperationCount(NSInteger count); abstract void setName(String name); abstract void setSuspended(boolean suspend); abstract void waitUntilAllOperationsAreFinished(); }
NSOperationQueue extends NSObject { public abstract NSArray operations();  abstract NSOperationQueue init(); abstract void addOperation(NSOperation operation); abstract void addOperations_waitUntilFinished(NSArray ops, boolean wait); abstract void cancelAllOperations(); abstract boolean isSuspended(); abstract NSInteger maxConcurrentOperationCount(); abstract String name(); abstract NSUInteger operationCount(); abstract NSArray operations(); abstract void setMaxConcurrentOperationCount(NSInteger count); abstract void setName(String name); abstract void setSuspended(boolean suspend); abstract void waitUntilAllOperationsAreFinished(); static final _Class CLASS; static final int NSOperationQueueDefaultMaxConcurrentOperationCount; }