Package org.photovault.imginfo

Examples of org.photovault.imginfo.Volume


            if ( !embeddedDirectory.exists() ) {
                embeddedDirectory.mkdirs();
            }
            File derbyDir = new File( embeddedDirectory, "derby" );
            File photoDir = new File( embeddedDirectory, "photos");
            Volume vol = new Volume( "photos", photoDir.getAbsolutePath() );
            try {
                addVolume( vol );
            } catch (PhotovaultException ex) {
                // This should not happen since this is the first volume, there cannot be
                // name conflict!!!
View Full Code Here


            volumeRoot.delete();
            volumeRoot.mkdir();
        } catch (IOException ex) {
            ex.printStackTrace();
        }
  volume = new Volume( "testVolume", volumeRoot.getAbsolutePath() );
        PhotovaultSettings settings = PhotovaultSettings.getSettings();
        PVDatabase curDb = settings.getCurrentDatabase();
//        try {
//            curDb.addVolume( extVol );
//        } catch (PhotovaultException ex) {
View Full Code Here

                    user = loginDlg.getUsername();
                    passwd = loginDlg.getPasswd();
                }
                db.setDbName( dbNameFld.getText() );
                db.setHost( dbHostFld.getText() );
                Volume vol = new Volume( "defaultVolume", volumeDirFld.getText() );
                try {
                    db.addVolume( vol );
                } catch (PhotovaultException ex) {
                    // Should not happen...
                }
View Full Code Here

    public void testVolumeAddition() {
        PVDatabase db = new PVDatabase();
        db.setHost( "" );
        db.setDbName( "test" );
       
        Volume v = new Volume( "test", "c:/temp" );
        try {
            db.addVolume( v );
        } catch (PhotovaultException ex) {
            fail( ex.getMessage() );
        }
View Full Code Here

TOP

Related Classes of org.photovault.imginfo.Volume

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.