Package atg.repository

Examples of atg.repository.MutableRepository


     * environment variable. (ex: DYNAMO_HOME=/home/user/ATG/ATG9.0/home)
     */
    @Test
    public void testResolveComponentWithNucleus() {
        assertNotNull(mNucleus);
        MutableRepository catalog = (MutableRepository) mNucleus.resolveName(
                "/atg/deployment/DeploymentRepository"
        );
        assertNotNull("DeploymentRepository should not be null.", catalog);
        MutableRepository profile = (MutableRepository) mNucleus.resolveName(
                "/atg/userprofiling/ProfileAdapterRepository"
        );
        // Good enough for this test.
        // Don't want to disturb any data that might be in this repository.
    }
View Full Code Here


        // Start Nucleus
        Nucleus n = startNucleus(configpath);

        TransactionDemarcation td = new TransactionDemarcation();
        MutableRepository r = (MutableRepository) n.resolveName("/SimpleRepository");

        try {
            // Start a new transaction
            td.begin(((GSARepository) r).getTransactionManager());
            // Create the item
            MutableRepositoryItem item = r.createItem("simpleItem");
            item.setPropertyValue("name", "simpleName");
            // Persist to the repository
            r.addItem(item);
            // Try to get it back from the repository
            String id = item.getRepositoryId();
            RepositoryItem item2 = r.getItem(id, "simpleItem");
            assertNotNull(
                    " We did not get back the item just created from the repository.", item2
            );
            rollback = false;
        } finally {
View Full Code Here

     * @throws Exception
     */
    @Test
    public void testProfileFormHandler()
            throws Exception {
        MutableRepository par = (MutableRepository) nucleus.resolveName(
                PROFILE_ADAPTER_REPOSITORY_PATH
        );
        assertNotNull(par);
    }
View Full Code Here

        DynamoHttpServletRequest request = servletTestUtils.createDynamoHttpServletRequestForSession(
                nucleus, "mySessionId", "new"
        );
        previousRequest = setCurrentRequest(request);
        MutableRepository par = (MutableRepository) nucleus.resolveName(
                PROFILE_ADAPTER_REPOSITORY_PATH
        );
        assertNotNull(par);

        assertNotNull(
View Full Code Here

TOP

Related Classes of atg.repository.MutableRepository

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.