Examples of TestDeviceRepositoryCreator


Examples of com.volantis.devrep.repository.impl.testtools.device.TestDeviceRepositoryCreator

            final InputStream inputHierarchy) throws Exception {

        final EclipseDeviceRepository[] accessor =
                new EclipseDeviceRepository[1];
        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File temporaryFile) throws Exception {

                accessor[0] = updateHierarchy(inputHierarchy,
                        temporaryFile.getPath());
View Full Code Here

Examples of com.volantis.devrep.repository.impl.testtools.device.TestDeviceRepositoryCreator

     * Test the reading of a repository from a zip file stored in a jar file.
     */
    public void testRepositoryRead() throws Exception {

        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File temporaryFile) throws Exception {
                EclipseDeviceRepository accessor =
                        new EclipseDeviceRepository(temporaryFile.getPath(),
                                transformerMetaFactory, jdomFactory, false, true, null);
View Full Code Here

Examples of com.volantis.devrep.repository.impl.testtools.device.TestDeviceRepositoryCreator

    /**
     * Test the reading and writing of a repository from a local file.
     */
    public void testRepositoryReadAndWrite() 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.devrep.repository.impl.testtools.device.TestDeviceRepositoryCreator

    /**
     * Test the writing of the repository.
     */
    public void testWriting() 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.devrep.repository.impl.testtools.device.TestDeviceRepositoryCreator

    /**
     * Test that hierarchy xml can be read, updated, written and reread.
     */
    public void testUpdateHierarchy() 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.devrep.repository.impl.testtools.device.TestDeviceRepositoryCreator

    /**
     * Test that the definitions xml can be successfully written
     */
    public void testWriteDefinitions() 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.devrep.repository.impl.testtools.device.TestDeviceRepositoryCreator

    /**
     * Test that the definitions xml can be successfully read in
     */
    public void testReadDefinitions() 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.devrep.repository.impl.testtools.device.TestDeviceRepositoryCreator

     * Test that a device can be successfully updated, written to the archive
     * and the changed device correctly read back again from the repository.
     */
    public void testUpdateDevice() 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.devrep.repository.impl.testtools.device.TestDeviceRepositoryCreator

     * handles a device that has no custom properties
     * @throws Exception if an error occurs
     */
    public void testWriteDeviceElementsNoCustomProperties() throws Exception {
        TemporaryFileManager manager = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {

                ZipFile beforeZip = new ZipFile(repository);
                try {
View Full Code Here

Examples of com.volantis.devrep.repository.impl.testtools.device.TestDeviceRepositoryCreator

     */
    public void testWriteDeviceElementsOnlyCustomProperties()
            throws Exception {

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

                ZipFile beforeZip = new ZipFile(repository);
                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.