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

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


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


    joined.addOp(new Invoke(-1, null, "void m(int, int, int)", asList(JavaType.INT,
        JavaType.INT, JavaType.INT), false, JavaType.VOID));

    List<Operation> operations = new Stack2Turing(root).translate();
    assertEquals(2, operations.size());
    MethodInvocation mB = (MethodInvocation) operations.get(0);
    MethodInvocation mA = (MethodInvocation) operations.get(1);
    // since we use hash order is non-deterministic
    if (mB.getParameters().get(1).toString().startsWith("A")) {
      MethodInvocation temp = mB;
      mB = mA;
      mA = temp;
    }

    assertEquals("[root{java.lang.Object}, A{java.lang.Object}, joined{java.lang.Object}]", mA
View Full Code Here

TOP

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

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.