Package org.olat.catalog

Source Code of org.olat.catalog.CatalogManagerTest

/**
* OLAT - Online Learning and Training<br>
* http://www.olat.org
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing,<br>
* software distributed under the License is distributed on an "AS IS" BASIS, <br>
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. <br>
* See the License for the specific language governing permissions and <br>
* limitations under the License.
* <p>
* Copyright (c) since 2004 at Multimedia- & E-Learning Services (MELS),<br>
* University of Zurich, Switzerland.
* <p>
*/
package org.olat.catalog;

import junit.framework.Test;
import junit.framework.TestSuite;

import org.apache.log4j.Logger;
import org.olat.core.commons.persistence.DB;
import org.olat.core.commons.persistence.DBFactory;
import org.olat.core.test.OlatTestCase;

/**
* Description:<br>
* TODO: patrickb Class Description for CatalogManagerTest
*
* <P>
* Initial Date:  17.04.2007 <br>
* @author patrickb
*/
public class CatalogManagerTest extends OlatTestCase {

  private static Logger log = Logger.getLogger(CatalogManagerTest.class.getName());
 
 
  public CatalogManagerTest(String arg0) {
    super(arg0);
  }
 
  /**
   * @see junit.framework.TestCase#setUp()
   */
  public void setUp()throws Exception {
    super.setUp();
    // create some users with user manager
    //clear database from errors
    DBFactory.getJunitInstance().clearDatabase();
    // populate Catalog with testdata
    CatalogManager cm = CatalogManager.getInstance();
//    List roots = cm.getRootCatalogEntries();
//    roots.get(0);
  }

  /**
   *
   *
   */
  public void testGetChildrenOf(){
    //TODO:pb: unit test for CatalogManagerTest
  }
 
 
 
 
  /**
   * TearDown is called after each test
   */
  public void tearDown() {
    try {
      DB db = DBFactory.getJunitInstance();
      db.closeSession();
    } catch (Exception e) {
      log.error("Exception in tearDown(): " + e);
    }
  }

  public static Test suite() throws Exception {
    return new TestSuite(CatalogManagerTest.class);
  }
 
 
}
TOP

Related Classes of org.olat.catalog.CatalogManagerTest

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.