package tdl.examples;

import tdl.client.Client;

/**
 * Created by julianghionoiu on 11/06/2015.
 */
public class AddNumbers {

    public static void main(String[] args) throws Exception {
        Client client = new Client("localhost", 21616, "test");

        client.goLiveWith(params -> {
            Integer x = Integer.parseInt(params[0]);
            Integer y = Integer.parseInt(params[1]);
            return x + y;
        });
    }
}

package tdl.examples;

import tdl.client.Client;
import tdl.client.abstractions.UserImplementation;

/**
 * Created by julianghionoiu on 11/06/2015.
 */
public class AddNumbers {

    public static void main(String[] args) throws Exception {
        Client client = new Client("localhost", 21616, "test");

        client.goLiveWith(new UserImplementation() {
            @Override
            public Object process(String... params) {
                Integer x = Integer.parseInt(params[0]);
                Integer y = Integer.parseInt(params[1]);
                return x + y;
            }
        });
    }
}

Replace lambda in example with anonymous class to fix cobertura
Replace lambda in example with anonymous class to fix cobertura
