static

in src/main/java/com/microsoft/appcenter/espresso/Factory.java [21:34]


    static {
        Bundle arguments = getArguments();
        String label = arguments.getString("label");
        if ("true".equals(label)) {
            int timeoutInSec = 1;
            String timeout = arguments.getString("timeoutInSec");
            if(timeout != null) {
                timeoutInSec = Integer.valueOf(timeout);
            }
            eventReporter = new LocalSocketEventReporter("junitevent", timeoutInSec);
        } else {
            eventReporter = new StdOutEventReporter();
        }
    }