Examples of TemporaryFileExecutor


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

     * Test the writing of the repository.
     */
    public void testWritingReadonlyRepository() throws Exception {
        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {
                // Create a temporary repository which will be deleted later.
                EclipseDeviceRepository accessor = updateHierarchy(
                        getHierarchy(), repository.getPath());

View Full Code Here

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

        properties.setProperty(customNameKey, customNameValue);
        properties.setProperty(customDescKey, customDescValue);

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

                MDPRArchiveAccessor archiveAccessor = new MDPRArchiveAccessor(
                        repository.getPath(), transformerMetaFactory);
                final EclipseDeviceRepository writeRepository =
View Full Code Here

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

     */
    public void testGetFallbackDeviceName() 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.TemporaryFileExecutor

     */
    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.TemporaryFileExecutor

     */
    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.TemporaryFileExecutor

     */
    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.TemporaryFileExecutor

     * 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.TemporaryFileExecutor

     */
    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.TemporaryFileExecutor

     */
    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.TemporaryFileExecutor

      * @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
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.