@Test public void testCheckThreadPositive() { threadAccess.checkThread(); }
public void checkThread() { if (!isSingleThread()) { throw new IllegalStateException("Must be invoked in single thread"); } }
EventBufferSingleThreadAccessMock implements ISingleThreadAccess { public void checkThread() { if (!isSingleThread()) { throw new IllegalStateException("Must be invoked in single thread"); } } }
EventBufferSingleThreadAccessMock implements ISingleThreadAccess { public void checkThread() { if (!isSingleThread()) { throw new IllegalStateException("Must be invoked in single thread"); } } EventBufferSingleThreadAccessMock(); }
EventBufferSingleThreadAccessMock implements ISingleThreadAccess { public void checkThread() { if (!isSingleThread()) { throw new IllegalStateException("Must be invoked in single thread"); } } EventBufferSingleThreadAccessMock(); @Override boolean isSingleThread(); @Override void invoke(final Runnable runnable); int getEventsCount(); List<Runnable> getEventsCopy(); List<Runnable> popEvents(); void runEvents(); void checkThread(); }
EventBufferSingleThreadAccessMock implements ISingleThreadAccess { public void checkThread() { if (!isSingleThread()) { throw new IllegalStateException("Must be invoked in single thread"); } } EventBufferSingleThreadAccessMock(); @Override boolean isSingleThread(); @Override void invoke(final Runnable runnable); int getEventsCount(); List<Runnable> getEventsCopy(); List<Runnable> popEvents(); void runEvents(); void checkThread();  }