Package com.volantis.synergetics.testtools

Examples of com.volantis.synergetics.testtools.HypersonicManager.useCleanupWith()


    public void testCreateUnorderedSet() throws Exception {
        // Use the in-memory hypersonic db - no background threads!
        final HypersonicManager hypersonicMgr = new HypersonicManager(
                HypersonicManager.IN_MEMORY_SOURCE);
        hypersonicMgr.useCleanupWith(new Executor() {
            public void execute() throws Exception {

                InternalJDBCRepository repository = createRepository(
                        hypersonicMgr.getSource(), null, "#dp");
                JDBCRepositoryConnection connection =
View Full Code Here


    public void testRemoveUnorderedSet() throws Exception {
        // Use the in-memory hypersonic db - no background threads!
        final HypersonicManager hypersonicMgr = new HypersonicManager(
                HypersonicManager.IN_MEMORY_SOURCE);
        hypersonicMgr.useCleanupWith(new Executor() {
            public void execute() throws Exception {

                InternalJDBCRepository repository = createRepository(
                        hypersonicMgr.getSource(), null, "#dp");
                JDBCRepositoryConnection connection =
View Full Code Here

    public void testMany() throws Exception {
        // Use the in-memory hypersonic db - no background threads!
        final HypersonicManager hypersonicMgr = new HypersonicManager(
                HypersonicManager.IN_MEMORY_SOURCE);
        hypersonicMgr.useCleanupWith(new Executor() {
            public void execute() throws Exception {

                InternalJDBCRepository repository = createRepository(
                        hypersonicMgr.getSource(), null, "#dp");
                JDBCRepositoryConnection connection =
View Full Code Here

     */
    public void testEnumerateDeviceNamesTACNoneFound() throws Exception {
        // Use the in-memory hypersonic db - no background threads!
        final HypersonicManager hypersonicMgr = new HypersonicManager(
                HypersonicManager.IN_MEMORY_SOURCE);
        hypersonicMgr.useCleanupWith(new Executor() {
            public void execute() throws Exception {

                InternalJDBCRepository repository = createRepository(
                        hypersonicMgr.getSource(), null, defaultProject);
                JDBCRepositoryConnection connection =
View Full Code Here

            DeviceRepositoryAccessorTest test)
            throws Exception {
        // Use the in-memory hypersonic db - no background threads!
        final HypersonicManager hypersonicMgr = new HypersonicManager(
                HypersonicManager.IN_MEMORY_SOURCE);
        hypersonicMgr.useCleanupWith(new Executor() {
            public void execute() throws Exception {
                InternalJDBCRepository repository = createRepository(
                        hypersonicMgr.getSource(), null, defaultProject);
                JDBCRepositoryConnection connection =
                        (JDBCRepositoryConnection) repository.connect();
View Full Code Here

        Environment.init("/com/volantis/mcs/ibm/ucp/ucp-config.xml");

        // Use the in-memory hypersonic db - no background threads!
        final HypersonicManager hypersonicMgr = new HypersonicManager(
                HypersonicManager.IN_MEMORY_SOURCE);
        hypersonicMgr.useCleanupWith(new Executor() {
            public void execute() throws Exception {

                // Create the database tables.
                // todo: this should be refactored to be re-usable, see the
                // to do comment in the class comment.
View Full Code Here

        // device repository to be created for initialisation to complete.
        // It only "worked" originally because of a bug in
        // Volantis.initializeInternal where exceptions were thrown away.
        final HypersonicManager dbMgr = new HypersonicManager(
                HypersonicManager.IN_MEMORY_SOURCE);
        dbMgr.useCleanupWith(new Executor() {
            public void execute() throws Exception {
                ConfigChecker checker =
                        new ConfigChecker(volantis,
                                servletContext);
                checker.setAppConf(new MandatoryAppConfigurator() {
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.