mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 19:59:05 +01:00
Moved all automatic connection logic into poller.
This commit is contained in:
20
briar-tests/src/org/briarproject/RunAction.java
Normal file
20
briar-tests/src/org/briarproject/RunAction.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package org.briarproject;
|
||||
|
||||
import org.hamcrest.Description;
|
||||
import org.jmock.api.Action;
|
||||
import org.jmock.api.Invocation;
|
||||
|
||||
public class RunAction implements Action {
|
||||
|
||||
@Override
|
||||
public Object invoke(Invocation invocation) throws Throwable {
|
||||
Runnable task = (Runnable) invocation.getParameter(0);
|
||||
task.run();
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void describeTo(Description description) {
|
||||
description.appendText("runs a runnable");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user