/testability-explorer/src/test/java/com/google/test/metric/report/ClassSourceReportTestExample.java

http://testability-explorer.googlecode.com/ · Java · 29 lines · 18 code · 7 blank · 4 comment · 0 complexity · e53f89ba868200314cad8b8fb6072eaa MD5 · raw file

  1. // Copyright 2008 Google Inc. All Rights Reserved.
  2. package com.google.test.metric.report;
  3. import com.google.test.metric.CostUtil;
  4. /**
  5. * @author alexeagle@google.com (Alex Eagle)
  6. */
  7. public class ClassSourceReportTestExample {
  8. @SuppressWarnings("unused")
  9. private Integer foo = 1;
  10. static {
  11. CostUtil.staticCost1();
  12. }
  13. {
  14. CostUtil.staticCost2();
  15. }
  16. public ClassSourceReportTestExample() {
  17. CostUtil.staticCost3();
  18. }
  19. public void doSomething() {
  20. CostUtil.staticCost4();
  21. }
  22. }