Package com.google.test.metric.method.op.turing

Examples of com.google.test.metric.method.op.turing.MethodInvokation


    joined.addOp(new Invoke(-1, null, "m", "(III)V", asList(Type.INT,
        Type.INT, Type.INT), false, Type.VOID));

    List<Operation> operations = new Stack2Turing(root).translate();
    assertEquals(2, operations.size());
    MethodInvokation m1 = (MethodInvokation) operations.get(0);
    MethodInvokation m2 = (MethodInvokation) operations.get(1);

    assertEquals("[root{java.lang.Object}, B{java.lang.Object}, joined{java.lang.Object}]", m1
        .getParameters().toString());
    assertEquals("this{java.lang.Object}", m1.getMethodThis().toString());
    assertEquals("[root{java.lang.Object}, A{java.lang.Object}, joined{java.lang.Object}]", m2
        .getParameters().toString());
    assertEquals("this{java.lang.Object}", m2.getMethodThis().toString());
  }
View Full Code Here


  @Override
  public Operation toOperation(List<Variable> input) {
    List<Variable> parameters = removeDuplicateSlots(input);
    Variable methodThis = isStatic ? null : parameters.remove(0);
    return new MethodInvokation(lineNumber, clazz, name, signature,
        methodThis, parameters, returnValue);
  }
View Full Code Here

TOP

Related Classes of com.google.test.metric.method.op.turing.MethodInvokation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.