コード例 #1
0
  @Override
  public void setUp() throws Exception {
    super.setUp();

    Random rnd = new Random();
    long time = Clock.getTime();
    PROJECT_NAME =
        "new_project_from_"
            + getTestName(false)
            + "_"
            + DateFormatUtil.formatDate(time).replace('/', '-')
            + "_"
            + rnd.nextLong();
    registerHttpAuthService();
  }
コード例 #2
0
 @NotNull
 private static String formatDateTime(long time) {
   return " on " + DateFormatUtil.formatDate(time) + " at " + DateFormatUtil.formatTime(time);
 }