Package com.volantis.synergetics.testtools

Examples of com.volantis.synergetics.testtools.Executor


    public void testRemoveOrderedSet() 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 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

    
     * @throws Exception
     */
    public void testOutput() throws Exception {
        final String value = "some output";
        doOutput(new Executor() {
            public void execute() throws Exception {
                System.out.print(value);
            }
        }, value);
    }
View Full Code Here

    
     * @throws Exception
     */
    public void testError() throws Exception {
        final String value = "an error";
        doError(new Executor() {
            public void execute() throws Exception {
                System.err.print(value);
            }
        }, value);
    }
View Full Code Here

     * the AppManager.
     *
     * @param executor The code to run.
     */
    public void runWithHyperSonicManager(Executor executor) throws Exception {
        final Executor hypersonicExecutor = executor;
        runWithAppManager(new AppExecutor() {
            public void execute(AppContext appContext) throws Exception {
                hypersonicManager.useCleanupWith(hypersonicExecutor);
            }
        });
View Full Code Here

TOP

Related Classes of com.volantis.synergetics.testtools.Executor

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.