private void setTestMapForAllTests() {
    testIdToBucketList = new HashMap<String, TestBucket>();
    concatSection_TestToBucketMap = new HashMap<String, TestBucket>();
    testBucketList = new ArrayList<TestBucket>();

    TestDAO testDAO = new TestDAOImpl();
    List<Test> testList = testDAO.getAllActiveTests(false);

    for (Test test : testList) {
      TestBucket bucket = new TestBucket();

      bucket.testName = TestService.getUserLocalizedTestName(test);
      bucket.testSection = test.getTestSection().getLocalizedName();

      testIdToBucketList.put(test.getId(), bucket);
      testBucketList.add(bucket);
    }
  }
Exemplo n.º 2
0
 public static List<Test> getAllActiveTests() {
   return testDAO.getAllActiveTests(false);
 }