@@ -0,0 +1,1610 @@
+/*%0A * %0A * %0A * Copyright (C) 2006 SIPfoundry Inc.%0A * Licensed by SIPfoundry under the LGPL license.%0A * %0A * Copyright (C) 2006 Pingtel Corp.%0A * Licensed to SIPfoundry under a Contributor Agreement.%0A * %0A * $%0A */%0Apackage org.sipfoundry.sipxconfig.site;%0A%0Aimport org.sipfoundry.sipxconfig.admin.commserver.imdb.ReplicationManagerImpl;%0Aimport org.sipfoundry.sipxconfig.domain.DomainInitializer;%0Aimport org.springframework.context.ApplicationEvent;%0Aimport org.springframework.context.ApplicationListener;%0A%0A/**%0A * Hook to mimic what a real system does when it starts up, and that is to create%0A * initial, required, system data.%0A */%0Apublic class InitializeTestSystem implements ApplicationListener %7B%0A    private DomainInitializer m_domainInitializer;%0A    private ReplicationManagerImpl m_replicationManagerImpl;%0A%0A    public DomainInitializer getDomainInitializer() %7B%0A        return m_domainInitializer;%0A    %7D%0A%0A    public void setDomainInitializer(DomainInitializer domainInitializer) %7B%0A        m_domainInitializer = domainInitializer;%0A    %7D%0A%0A    public void onApplicationEvent(ApplicationEvent event) %7B%0A        // decided to pick a ficticious name rather than allowing default hostname to be used%0A        // this should simplify unit tests by letting them validate against exact values.%0A        m_domainInitializer.setInitialDomain(%22example.org%22);%0A        m_domainInitializer.onInitTask(null);%0A        %0A        m_replicationManagerImpl.setEnabled(false);%0A    %7D%0A%0A    public void setReplicationManagerImpl(ReplicationManagerImpl replicationManagerImpl) %7B%0A        m_replicationManagerImpl = replicationManagerImpl;%0A    %7D%0A%7D%0A

FIX BUILD - Add nec. file