Package com.madgnome.jira.plugins.jirachievements.data.ao

Examples of com.madgnome.jira.plugins.jirachievements.data.ao.Category


  }

  @Test
  public void getOrCreateShouldCreateIfAny()
  {
    Category category = Category.USER;
    int number = 0;
    statisticRefDaoService.create(StatisticRefEnum.CREATED_ISSUE_COUNT);

    assertNull(daoService.get(category, number));
    Level level = daoService.getOrCreate(category, number, StatisticRefEnum.CREATED_ISSUE_COUNT, 0, 10);
View Full Code Here


  }

  @Test
  public void findMatchingLevelShouldReturnLevelForGivenValue()
  {
    Category category = Category.USER;
    statisticRefDaoService.create(StatisticRefEnum.CREATED_ISSUE_COUNT);
    daoService.getOrCreate(category, 0, StatisticRefEnum.CREATED_ISSUE_COUNT, 0, 10);
    daoService.getOrCreate(category, 1, StatisticRefEnum.CREATED_ISSUE_COUNT, 10, 50);
    daoService.getOrCreate(category, 2, StatisticRefEnum.CREATED_ISSUE_COUNT, 50, 150);
    daoService.getOrCreate(category, 3, StatisticRefEnum.CREATED_ISSUE_COUNT, 150, 500);
View Full Code Here

  }

  @Test
  public void findNextLevelShouldReturnClosestNextLevelForGivenValue()
  {
    Category category = Category.USER;
    statisticRefDaoService.create(StatisticRefEnum.CREATED_ISSUE_COUNT);
    daoService.getOrCreate(category, 0, StatisticRefEnum.CREATED_ISSUE_COUNT, 0, 10);
    daoService.getOrCreate(category, 1, StatisticRefEnum.CREATED_ISSUE_COUNT, 10, 50);
    daoService.getOrCreate(category, 2, StatisticRefEnum.CREATED_ISSUE_COUNT, 50, 150);
    daoService.getOrCreate(category, 3, StatisticRefEnum.CREATED_ISSUE_COUNT, 150, 500);
View Full Code Here

TOP

Related Classes of com.madgnome.jira.plugins.jirachievements.data.ao.Category

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.