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;
        });
    }
}

@@ -41,16 +41,67 @@
 .Client;
+%0Aimport tdl.client.abstractions.UserImplementation;
 %0A%0A/**%0A *
@@ -330,20 +330,115 @@
 ith(
-params -%3E %7B%0A
+new UserImplementation() %7B%0A            @Override%0A            public Object process(String... params) %7B%0A    
     
@@ -490,32 +490,36 @@
 %5D);%0A            
+    
 Integer y = Inte
@@ -555,16 +555,20 @@
         
+   
+ 
 return x
@@ -573,16 +573,30 @@
  x + y;%0A
+            %7D%0A
         

Replace lambda in example with anonymous class to fix cobertura