Package org.springframework.util

Examples of org.springframework.util.StopWatch.prettyPrint()


    watch.start("convert 4,000,000 manually");
    for (int i = 0; i < 4000000; i++) {
      new Integer(3).toString();
    }
    watch.stop();
    System.out.println(watch.prettyPrint());
  }

  @Test
  public void testPerformance2() throws Exception {
    Assume.group(TestGroup.PERFORMANCE);
View Full Code Here


      for (String element : source) {
        target.add(Integer.valueOf(element));
      }
    }
    watch.stop();
    System.out.println(watch.prettyPrint());
  }

  public static List<Integer> list;

  @Test
View Full Code Here

      for (Map.Entry<String, String> entry : source.entrySet()) {
        target.put(entry.getKey(), Integer.valueOf(entry.getValue()));
      }
    }
    watch.stop();
    System.out.println(watch.prettyPrint());
  }

  public static Map<String, Integer> map;

  @Test
View Full Code Here

    }

    assertThat(sink, eventually(hasValue(NumberFormat.getInstance().format(MESSAGE_GROUPS_PER_EXECUTION))));

    stopWatch.stop();
    System.out.println(stopWatch.prettyPrint());
  }

}
View Full Code Here

        } else {
            System.out.println("Number of collections doesn't match -- Bad");
            brokenPeople.add(person);
        }

        System.out.println(stopWatch.prettyPrint());
    }

    private static void reportCollections(Collection[] collections) {
        System.out.println("====================================");
        System.out.println("This user is permitted to submit to the following collections.");
View Full Code Here

            //
            filterChain.doFilter(request, response);
            //
            stopWatch.stop();
            //
            log.trace(stopWatch.prettyPrint());
        } else {
            filterChain.doFilter(request, response);
        }
    }
View Full Code Here

            } else {
                System.out.println("No contacts found which this user has permission to");
            }

            System.out.println();
            System.out.println(stopWatch.prettyPrint());
        }

        SecurityContextHolder.clearContext();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.