Examples of IsisConfigurationDefault


Examples of org.apache.isis.core.commons.config.IsisConfigurationDefault

    public void setUp() throws Exception {
        org.apache.log4j.Logger.getRootLogger().setLevel(org.apache.log4j.Level.OFF);

        context.ignoring(mockTemplateImageLoader, mockSpecificationLoader, mockPersistenceSessionFactory, mockUserProfileLoader, mockAuthenticationManager, mockAuthorizationManager, mockContainer);

        final IsisSessionFactoryDefault sessionFactory = new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, new IsisConfigurationDefault(), mockSpecificationLoader, mockTemplateImageLoader, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader,
                mockPersistenceSessionFactory, mockContainer, Collections.emptyList(), new OidMarshaller());
        IsisContextStatic.createRelaxedInstance(sessionFactory);
        sessionFactory.init();

        final TextBlockTarget target = new TextBlockTargetExample();
View Full Code Here

Examples of org.apache.isis.core.commons.config.IsisConfigurationDefault

    @Before
    public void setUp() throws Exception {
        org.apache.log4j.Logger.getRootLogger().setLevel(org.apache.log4j.Level.OFF);

        configuration = new IsisConfigurationDefault();
        servicesList = Collections.emptyList();
       
        oidMarshaller = new OidMarshaller();

        context.checking(new Expectations() {
View Full Code Here

Examples of org.apache.isis.core.commons.config.IsisConfigurationDefault

        context.ignoring(mockTemplateImageLoader, mockSpecificationLoader, mockUserProfileLoader, mockPersistenceSessionFactory, mockAuthenticationManager, mockAuthorizationManager, mockContainer);

        TestToolkit.createInstance();

        final IsisConfigurationDefault configuration = new IsisConfigurationDefault();
        final IsisSessionFactory sessionFactory = new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, configuration, mockSpecificationLoader, mockTemplateImageLoader, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader, mockPersistenceSessionFactory, mockContainer, Collections.emptyList(), new OidMarshaller());
        sessionFactory.init();
        IsisContextStatic.createRelaxedInstance(sessionFactory);
    }
View Full Code Here

Examples of org.apache.isis.core.commons.config.IsisConfigurationDefault

    public void setUp() throws Exception {
        org.apache.log4j.Logger.getRootLogger().setLevel(org.apache.log4j.Level.OFF);

        context.ignoring(mockTemplateImageLoader, mockSpecificationLoader, mockUserProfileLoader, mockPersistenceSessionFactory, mockAuthenticationManager, mockAuthorizationManager, mockContainer);

        final IsisSessionFactory sessionFactory = new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, new IsisConfigurationDefault(), mockSpecificationLoader, mockTemplateImageLoader, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader, mockPersistenceSessionFactory,
            mockContainer, Collections.emptyList(), new OidMarshaller());
        sessionFactory.init();
        IsisContextStatic.createRelaxedInstance(sessionFactory);

        final TextBlockTarget target = new TextBlockTargetExample();
View Full Code Here

Examples of org.apache.isis.core.commons.config.IsisConfigurationDefault

                    new QueryResultsCache()
                    );
        }

        private IsisConfiguration testConfiguration() {
            final IsisConfigurationDefault testConfiguration = new IsisConfigurationDefault();

            testConfiguration.add("isis.persistor.datanucleus.RegisterEntities.packagePrefix", "dom");
            testConfiguration.add("isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionURL", "jdbc:hsqldb:mem:test");
           
            testConfiguration.add("isis.persistor.datanucleus.impl.datanucleus.defaultInheritanceStrategy", "TABLE_PER_CLASS");
            testConfiguration.add(DataNucleusObjectStore.INSTALL_FIXTURES_KEY , "true");
           
            testConfiguration.add("isis.persistor.datanucleus.impl.datanucleus.cache.level2.type","none");

            testConfiguration.add("isis.persistor.datanucleus.impl.datanucleus.identifier.case", "PreserveCase");

            return testConfiguration;
        }
View Full Code Here

Examples of org.apache.isis.core.commons.config.IsisConfigurationDefault

                    new IsisJdoSupportImpl()
                    );
        }

        private IsisConfiguration testConfiguration() {
            final IsisConfigurationDefault testConfiguration = new IsisConfigurationDefault();

            testConfiguration.add("isis.persistor.datanucleus.RegisterEntities.packagePrefix", "dom");
            testConfiguration.add("isis.persistor.datanucleus.impl.javax.jdo.option.ConnectionURL", "jdbc:hsqldb:mem:test");
           
            testConfiguration.add("isis.persistor.datanucleus.impl.datanucleus.defaultInheritanceStrategy", "TABLE_PER_CLASS");
            testConfiguration.add(DataNucleusObjectStore.INSTALL_FIXTURES_KEY , "true");
           
            testConfiguration.add("isis.persistor.datanucleus.impl.datanucleus.cache.level2.type","none");

            testConfiguration.add("isis.persistor.datanucleus.impl.datanucleus.identifier.case", "PreserveCase");

            return testConfiguration;
        }
View Full Code Here

Examples of org.apache.isis.core.commons.config.IsisConfigurationDefault

public class DefaultsTest {
    @Test
    public void tablePrefixDefaultsTo_Isis() {
        final String prefix = "isis.persistor.sql";
        final IsisConfiguration config = new IsisConfigurationDefault();
        Defaults.initialise(prefix, config);
        Assert.assertThat(Defaults.getTablePrefix(), is("isis_"));
    }
View Full Code Here

Examples of org.apache.isis.core.commons.config.IsisConfigurationDefault

    @Test
    public void tablePrefixCanBeReplaced() {
        final String prefix = "isis.persistor.sql";
        final String key = "isis.persistor.sql.default.tableprefix";
        final IsisConfigurationDefault config = new IsisConfigurationDefault();
        config.add(key, "");
        Defaults.initialise(prefix, config);
        Assert.assertThat(Defaults.getTablePrefix(), is(""));
    }
View Full Code Here

Examples of org.apache.isis.core.commons.config.IsisConfigurationDefault

                ignoring(mockAuthenticationManager);
                ignoring(mockAuthorizationManager);
            }
        });

        configuration = new IsisConfigurationDefault();

        SpecificationLoader mockSpecificationLoader;
        final JavaReflectorInstaller javaReflectorInstaller = new JavaReflectorInstaller();
        javaReflectorInstaller.setConfiguration(configuration);
        mockSpecificationLoader = javaReflectorInstaller.createReflector();
View Full Code Here

Examples of org.apache.isis.core.commons.config.IsisConfigurationDefault

    @Override
    protected void setUp() throws Exception {
        super.setUp();

        facetFactory = new ValueFacetFactory();
        isisConfigurationDefault = new IsisConfigurationDefault();
        facetFactory.setIsisConfiguration(isisConfigurationDefault);
    }
View Full Code Here
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.