mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
21 lines
444 B
Java
21 lines
444 B
Java
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");
|
|
}
|
|
}
|