// Path: achievements-server/src/main/java/org/jetbrains/buildserver/achievements/AchievementEvents.java
// public enum AchievementEvents {
//   buildUnpinned,
//   buildTagged,
//   testBombed,
//   testDisarmed,
//   compilationBroken,
//   investigationDelegated,
//   investigationTaken,
//   issueMentioned,
//   changeAdded,
//   userAction // with 5 minutes resolution
// }
// 
// Path: achievements-server/src/main/java/org/jetbrains/buildserver/achievements/UserEvents.java
// public interface UserEvents {
//   void registerEvent(@NotNull String eventName);
// 
//   void registerEvent(@NotNull String eventName, @Nullable Object additionalData);
// 
//   long getLastEventTime(@NotNull String eventName);
// 
//   // most recent first
//   @NotNull
//   List<Long> getEventTimes(@NotNull String eventName);
// 
//   int getNumberOfEvents(@NotNull String eventName);
// 
//   float getEventsRate(@NotNull String eventName, int timeIntervalSeconds);
// }


import jetbrains.buildServer.users.SUser;
import jetbrains.buildServer.vcs.SVcsModification;
import org.jetbrains.buildserver.achievements.AchievementEvents;
import org.jetbrains.buildserver.achievements.UserEvents;
import org.jmock.Mock;
import org.testng.annotations.Test;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;
/*
 * Copyright 2000-2021 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.jetbrains.buildserver.achievements.impl;



@Test
public class AchievementsConfigTest extends AchievementsTestCase {

  public void night_owl() {
    Achievement achievement = new NightOwl();
    SUser user = createUser();
// Path: achievements-server/src/main/java/org/jetbrains/buildserver/achievements/AchievementEvents.java
// public enum AchievementEvents {
//   buildUnpinned,
//   buildTagged,
//   testBombed,
//   testDisarmed,
//   compilationBroken,
//   investigationDelegated,
//   investigationTaken,
//   issueMentioned,
//   changeAdded,
//   userAction // with 5 minutes resolution
// }
// 
// Path: achievements-server/src/main/java/org/jetbrains/buildserver/achievements/UserEvents.java
// public interface UserEvents {
//   void registerEvent(@NotNull String eventName);
// 
//   void registerEvent(@NotNull String eventName, @Nullable Object additionalData);
// 
//   long getLastEventTime(@NotNull String eventName);
// 
//   // most recent first
//   @NotNull
//   List<Long> getEventTimes(@NotNull String eventName);
// 
//   int getNumberOfEvents(@NotNull String eventName);
// 
//   float getEventsRate(@NotNull String eventName, int timeIntervalSeconds);
// }


// Path: achievements-server/src/test/java/org/jetbrains/buildServer/achievements/impl/AchievementsConfigTest.java
import jetbrains.buildServer.users.SUser;
import jetbrains.buildServer.vcs.SVcsModification;
import org.jetbrains.buildserver.achievements.AchievementEvents;
import org.jetbrains.buildserver.achievements.UserEvents;
import org.jmock.Mock;
import org.testng.annotations.Test;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;

/*
 * Copyright 2000-2021 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.jetbrains.buildserver.achievements.impl;



@Test
public class AchievementsConfigTest extends AchievementsTestCase {

  public void night_owl() {
    Achievement achievement = new NightOwl();
    SUser user = createUser();
    UserEvents userEvents = getUserEvents(user);