All Downloads are FREE. Search and download functionalities are using the official Maven repository.

atg.adapter.gsa.SchemaTracker Maven / Gradle / Ivy

Go to download

ATG DUST is a framework for building JUnit tests for applications built on the ATG Dynamo platform. This framework allows one to quickly write test code that depends up Nucleus or ATG Repositories. By using this framework one can drastically cut down on development time. It takes only a few seconds to start up a test with a repository, but it may take multiple minutes to start up an application server. To get started with DUST, take a look at http://atgdust.sourceforge.net/first-test.html. This page will walk you through the process of running a basic test which starts Nucleus. After that, read the other getting started guides to describe how to create standalone Junit tests which can startup repositories and use the DynamoHttpServletResponse classes. For only ATG10 and tested.

The newest version!
package atg.adapter.gsa;

import java.util.HashMap;
import java.util.List;

public class SchemaTracker {

  public  HashMap> mTableToRepository = new HashMap>();
  
  /**
   * @return the tableToRepository
   */
  public HashMap> getTableToRepository() {
    return mTableToRepository;
  }

  /**
   * @param pTableToRepository the tableToRepository to set
   */
  public void setTableToRepository(
      HashMap> pTableToRepository) {
    mTableToRepository = pTableToRepository;
  }

  private static SchemaTracker sSchemaTracker = null;
  private SchemaTracker() {}
  
  public static SchemaTracker getSchemaTracker() {
    if (sSchemaTracker == null)
      sSchemaTracker = new SchemaTracker();
    return sSchemaTracker;
  }

  /**
   * Resets the state in this class.
   */
  public void reset() {
    mTableToRepository.clear();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy