Package org.apache.derbyTesting.junit

Examples of org.apache.derbyTesting.junit.ClasspathSetup


            File        currentDirectory = currentDirectory();
            File        readOnlyDirectory = new File( currentDirectory, SupportFilesSetup.EXTIN );
            File        nast2Jar = new File( readOnlyDirectory, NAST2_JAR_FILE );

            try {
                result = new ClasspathSetup( result, nast2Jar.toURL() );
            }
            catch (Exception e) { printStackTrace( e ); }
        }
       
        //
View Full Code Here


            // DERBY-2162: Only run this test case on platforms that support
            // the URLClassLoader.close() method. Otherwise, we won't be able
            // to delete the jar file afterwards.
            if (ClasspathSetup.supportsClose()) {
                suite.addTest(new ClasspathSetup(
                        new DatabaseClassLoadingTest("testDatabaseInClasspath"),
                        SupportFilesSetup.getReadOnlyURL("dclt.jar")));
            }
          
           // No security manager because the test uses getClass().getClassLoader()
View Full Code Here

        // Only add this test case if we can close the URLClassLoader when
        // we're done. Otherwise, we won't be able to delete the jar file
        // afterwards. (DERBY-2162)
        if (ClasspathSetup.supportsClose()) {
            suite.addTest(
                new ClasspathSetup(
                    new DatabaseClassLoadingTest("testLoginTimeoutInClasspath"),
                    SupportFilesSetup.getReadOnlyURL("dclt.jar")));
        }

        // Finally, check that the database cannot be found anymore after
View Full Code Here

        //
        if (enableSubprotocolTests())
        {
            // Add a jar file to the classpath so that we can test the classpath subprotocol.
            URL nast2Jar = SupportFilesSetup.getReadOnlyURL(NAST2_JAR_FILE);
            result = new ClasspathSetup(result, nast2Jar);

            // Add the jar files needed for testing jar and classpath subprotocols.
            result = new SupportFilesSetup( result, SUPPORT_FILES_SOURCE, null, SUPPORT_FILES_TARGET, null );
        }
       
View Full Code Here

            File        currentDirectory = currentDirectory();
            File        readOnlyDirectory = new File( currentDirectory, SupportFilesSetup.EXTIN );
            File        nast2Jar = new File( readOnlyDirectory, NAST2_JAR_FILE );

            try {
                result = new ClasspathSetup( result, nast2Jar.toURL() );
            }
            catch (Exception e) { printStackTrace( e ); }
        }
       
        //
View Full Code Here

TOP

Related Classes of org.apache.derbyTesting.junit.ClasspathSetup

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.