Examples of TemporaryFileManager


Examples of com.volantis.synergetics.testtools.io.TemporaryFileManager

    private String executePopulateProperties(final Properties properties,
                                             final String prefix)
            throws Throwable {

        final String[] result = new String[1];
        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File file) throws Exception {
                MDPRArchiveAccessor archiveAccessor = new MDPRArchiveAccessor(
                        file.getPath(), transformerMetaFactory);
                EclipseDeviceRepository accessor =
                        new EclipseDeviceRepository(archiveAccessor,
View Full Code Here

Examples of com.volantis.synergetics.testtools.io.TemporaryFileManager

     * throws an IllegalArgumentException when the device argument is null
     * @throws Exception if an error occurs
     */
    public void testMoveDeviceNullDeviceArg() throws Exception {
        try {
            TemporaryFileManager manager = new TemporaryFileManager(
                    new TestDeviceRepositoryCreator());
            manager.executeWith(new TemporaryFileExecutor() {
                public void execute(File repository) throws Exception {
                    EclipseDeviceRepository accessor = new
                            EclipseDeviceRepository(repository.getPath(),
                                    transformerMetaFactory, jdomFactory, false, true, null);

View Full Code Here

Examples of com.volantis.synergetics.testtools.io.TemporaryFileManager

     * throws an IllegalArgumentException when the parentDevice argument is null
     * @throws Exception if an error occurs
     */
    public void testMoveDeviceNullParentDeviceArg() throws Exception {
        try {
            TemporaryFileManager manager = new TemporaryFileManager(
                    new TestDeviceRepositoryCreator());
            manager.executeWith(new TemporaryFileExecutor() {
                public void execute(File repository) throws Exception {
                    EclipseDeviceRepository accessor = new
                            EclipseDeviceRepository(repository.getPath(),
                                    transformerMetaFactory, jdomFactory, false, true, null);

View Full Code Here

Examples of com.volantis.synergetics.testtools.io.TemporaryFileManager

     * a device that does not exist
     * @throws Exception if an error occurs
     */
    public void testMoveDeviceNonExistentDeviceArg() throws Exception {
        try {
            TemporaryFileManager manager = new TemporaryFileManager(
                    new TestDeviceRepositoryCreator());
            manager.executeWith(new TemporaryFileExecutor() {
                public void execute(File repository) throws Exception {
                    EclipseDeviceRepository accessor = new
                            EclipseDeviceRepository(repository.getPath(),
                                    transformerMetaFactory, jdomFactory, false, true, null);

View Full Code Here

Examples of com.volantis.synergetics.testtools.io.TemporaryFileManager

     * specifies a device that does not exist
     * @throws Exception if an error occurs
     */
    public void testMoveDeviceNonExistentParentArg() throws Exception {
        try {
            TemporaryFileManager manager = new TemporaryFileManager(
                    new TestDeviceRepositoryCreator());
            manager.executeWith(new TemporaryFileExecutor() {
                public void execute(File repository) throws Exception {
                    EclipseDeviceRepository accessor = new
                            EclipseDeviceRepository(repository.getPath(),
                                    transformerMetaFactory, jdomFactory, false, true, null);

View Full Code Here

Examples of com.volantis.synergetics.testtools.io.TemporaryFileManager

     * throws an IllegalAddException when the parent argument is an ancestor
     * of te device argument
     * @throws Exception if an error occurs
     */
    public void testMoveDeviceToInvalidChild() throws Throwable {
        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {
                EclipseDeviceRepository accessor = new
                        EclipseDeviceRepository(repository.getPath(),
                                transformerMetaFactory, jdomFactory, false, true, null);

View Full Code Here

Examples of com.volantis.synergetics.testtools.io.TemporaryFileManager

     * Enusre that the {@link EclipseDeviceRepository#moveDevice} method
     * actually moves the devices when the arguments are valid
     * @throws Exception if an error occurs
     */
    public void testMoveDevice() throws Throwable {
        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {
                EclipseDeviceRepository accessor = new
                        EclipseDeviceRepository(repository.getPath(),
                                transformerMetaFactory, jdomFactory, false, true, null);

View Full Code Here

Examples of com.volantis.synergetics.testtools.io.TemporaryFileManager

    /**
     * This tests the {@link EclipseDeviceRepository#getDeviceHierarchyDocument(String, TransformerMetaFactory, JDOMFactory)}
     * static method.
     */
    public void testGetDeviceHierarchyDocument() throws Exception {
        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {
                // Don't need a test instance for the static test but to test that
                // the static test hasn't altered any state an instance is required
                EclipseDeviceRepository originalRepository = new
                        EclipseDeviceRepository(repository.getPath(),
View Full Code Here

Examples of com.volantis.synergetics.testtools.io.TemporaryFileManager

     *
     */

    public void testGetTACIdentificationDocument() throws Exception {

        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {

                EclipseDeviceRepository accessor =
                        new EclipseDeviceRepository(repository.getPath(),
                                transformerMetaFactory, jdomFactory, true, true, null);
View Full Code Here

Examples of com.volantis.synergetics.testtools.io.TemporaryFileManager

     *
     * @throws Exception if an error occurs
     */
    public void testUpdateOccurs() throws Exception {

        TemporaryFileManager manager = new TemporaryFileManager(
                upgradeableRepositoryCreator);
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {

                String filename = repository.getPath();
                MDPRArchiveAccessor accessor = new MDPRArchiveAccessor(filename,
                        transformerMetaFactory);
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.