Package com.google.test.metric

Examples of com.google.test.metric.LocalField


  public void testVariableFormatting() throws Exception {
    Type type = JavaType.fromJava("com.google.test.metric.example.MutableGlobalState." +
        "FinalGlobalExample$Gadget");
    FieldInfo field = new FieldInfo(null, "finalInstance", type, false, false, false);
    LocalField localField = new LocalField(new Variable(
        "com.google.test.metric.example.MutableGlobalState.FinalGlobalExample$" +
            "FinalGlobal.finalInstance",
        type, false, false), field);
    assertEquals("FinalGlobalExample$Gadget finalInstance", localField.getDescription());
  }
View Full Code Here


  }

  @Override
  public List<Variable> apply(List<Variable> input) {
    Variable instance = fieldInfo.isGlobal() ? null : input.get(0);
    return list(new LocalField(instance, fieldInfo));
  }
View Full Code Here

  }

  @Override
  public List<Variable> apply(List<Variable> input) {
    Variable instance = fieldInfo.isGlobal() ? null : input.get(0);
    return list(new LocalField(instance, fieldInfo));
//    return list(fieldInfo);
  }
View Full Code Here

TOP

Related Classes of com.google.test.metric.LocalField

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.