Examples of TemporaryFileManager


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

    /**
     * Test to see if a particular device exists in the hierarchy.
     */
    public void testDeviceExistsInHierarchy() 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);
                // Master should exist
View Full Code Here

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

    /**
     * Test retrieval of a device identification elements.
     */
    public void testRetrieveDeviceIdentificationElement() 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

    /**
     * Test retrieval of a device identification elements.
     */
    public void testRetrieveDeviceTACIdentificationElement() 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

    /**
     * Test what happens when you try and load a repository without any
     * device definitions.
     */
    public void testNoDevice() throws Exception {
        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {
                try {
                    updateHierarchy(getHierarchy("hierarchy-empty.xml"));
                    fail("empty hierarchy is not valid");
                } catch (RepositoryException e) {
View Full Code Here

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

    /**
     * Test the getting of the root device name.
     */
    public void testGetRootDeviceName() 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);
                assertEquals("Root device name should match",
View Full Code Here

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

    /**
     * Test the retrieval of child device names for a particular device name.
     */
    public void testGetChildDeviceNames() 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

     * "expected <0> but was <1>". I have commented out because it is
     * bogus.</p>
      * @todo this should be re-instated
     */
    public void notestRenameDevice() 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);
                try {
View Full Code Here

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

     * bogus.</p>
      * @todo this should be re-instated
     */
    public void notestRemoveDevice() 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);
                try {
View Full Code Here

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

    /**
     * Test the exists method.
     */
    public void testReadingEmptyRepository() throws Exception {

        TemporaryFileManager manager = new TemporaryFileManager(
                new ResourceTemporaryFileCreator(this.getClass(),
                        "repository_empty.zip"));
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {
                try {
                    new EclipseDeviceRepository(repository.getPath(),
                            transformerMetaFactory, jdomFactory, null);
                    fail("Expected Repository Exception (ZipExcepiton)");
View Full Code Here

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

    /**
     * Test the getProperties() method.
     */
    public void testGetProperties() 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, false, true, null);
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.