public class ReportTestUtils {
/**
* Adds a few simple sinks with known names
*/
public static void setupSinkFactory() {
SinkFactoryImpl sf = new SinkFactoryImpl();
sf.setSink("one", new SinkBuilder() {
@Override
public EventSink build(Context context, String... argv) {
return new EventSink.Base() {
public String getName() {
return "One";
}
};
}
});
sf.setSink("two", new SinkBuilder() {
@Override
public EventSink build(Context context, String... argv) {
return new EventSink.Base() {
public String getName() {
return "Two";
}
};
}
});
sf.setSink("three", new SinkBuilder() {
@Override
public EventSink build(Context context, String... argv) {
return new EventSink.Base() {
public String getName() {
return "Three";