Examples of migrate()


Examples of com.googlecode.flyway.core.Flyway.migrate()

      @Override
      public void execute(DataSource ds) {
        Flyway flyway = new Flyway();
        flyway.setDataSource(ds);
        flyway.setLocations(locations);
        flyway.migrate();
      }
    });
  }
 
  /**
 
View Full Code Here

Examples of com.googlecode.flyway.core.Flyway.migrate()

            // get a fresh database.
            if (ninjaProperties.isTest()) {
                flyway.clean();
            }
           
            flyway.migrate();
           
        }
       
    }
View Full Code Here

Examples of com.vmware.vim.binding.vim.VirtualMachine.migrate()

   throws Exception {
      VcTask task = VcContext.getTaskMgr().execute(new IVcTaskBody() {
         public VcTask body() throws Exception {
            VirtualMachine vm = getManagedObject();
            return new VcTask(TaskType.MigrateVm,
                  vm.migrate(rp.getMoRef(), null, VirtualMachine.MovePriority.defaultPriority, null),
                  callback);
         }
      });
      return task;
   }
View Full Code Here

Examples of com.volantis.mcs.migrate.api.framework.ResourceMigrator.migrate()

        ByteArrayInputStream bais = new ByteArrayInputStream(
                inputData.getBytes());
        final ByteArrayOutputStream baos = new ByteArrayOutputStream();
        DefaultInputMetadata meta = new DefaultInputMetadata(filename, true);
        resourceMigrator.migrate(meta, bais, new OutputCreator() {
            public OutputStream createOutputStream() {
                return baos;
            }
        });
        assertEquals("", outputData, new String(baos.toByteArray()));
View Full Code Here

Examples of com.volantis.mcs.migrate.api.framework.ResourceMigrator.migrate()

        ByteArrayOutputCreator outputCreator = new ByteArrayOutputCreator();
        ResourceMigrator migrator = configFactory.createDefaultResourceMigrator(
                notifier, true);
        InputMetadata meta = frameworkFactory.createInputMetadata(url, false);
        migrator.migrate(meta, stream, outputCreator);
        return outputCreator.getOutputStream().toString();
    }
}
View Full Code Here

Examples of com.volantis.mcs.migrate.impl.framework.DefaultResourceMigrator.migrate()

        DefaultResourceMigrator migrator =
                new DefaultResourceMigrator(mockStreamBufferFactory,
                                            mockResourceIdentifier, mockNotificationReporter);

        migrator.migrate(mockInputMetadata, mockInput, mockOutputCreator);
    }

    /**
     * Create a resource migrator and a resource identifier which identifies
     * the input resource with a match that has two steps.
View Full Code Here

Examples of com.volantis.mcs.migrate.impl.framework.DefaultResourceMigrator.migrate()

        DefaultResourceMigrator migrator = new DefaultResourceMigrator(
                mockStreamBufferFactory, mockResourceIdentifier,
                mockNotificationReporter);

        migrator.migrate(mockInputMetadata, mockInput, mockOutputCreator);
    }

    // todo: later: a test for step exception when paul adds to MethodAction

    // todo: later: a test for three steps would be good too.
View Full Code Here

Examples of com.volantis.mcs.migrate.impl.framework.DefaultResourceMigrator.migrate()

        DefaultResourceMigrator migrator = new DefaultResourceMigrator(
                mockStreamBufferFactory, mockResourceIdentifier,
                mockNotificationReporter);

        migrator.migrate(mockInputMetadata, mockInput, mockOutputCreator);
    }

    /**
     * Create a resource migrator and a resource identifier which identifies
     * the input resource with a match that has no steps.
View Full Code Here

Examples of com.volantis.mcs.migrate.impl.framework.DefaultResourceMigrator.migrate()

        DefaultResourceMigrator migrator = new DefaultResourceMigrator(
                mockStreamBufferFactory, mockResourceIdentifier,
                mockNotificationReporter);

        try {
            migrator.migrate(mockInputMetadata, mockInput, mockOutputCreator);
            fail("Migrator should fail if sequence empty");
        } catch (IllegalStateException e) {
            // success
        }
    }
View Full Code Here

Examples of com.volantis.mcs.migrate.impl.framework.DefaultResourceMigrator.migrate()

        ByteArrayInputStream bais = new ByteArrayInputStream(
                inputData.getBytes());
        final ByteArrayOutputStream baos = new ByteArrayOutputStream();
        InputMetadata meta = new DefaultInputMetadata(filename, true);
        resourceMigrator.migrate(meta, bais, new OutputCreator() {
            public OutputStream createOutputStream() {
                return baos;
            }
        });
        assertEquals("", outputData, new String(baos.toByteArray()));
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.