Package com.volantis.devrep.repository.impl.testtools.device

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


     * This tests the {@link DeviceRepositoryAccessorManager#selectHierarchyDevices(String, com.volantis.synergetics.cornerstone.utilities.xml.jaxp.TransformerMetaFactory , JDOMFactory, RE)}
     * static method.
     */
    public void testStaticSeletecDevices() throws Exception {
        TemporaryFileManager tempFileMgr = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        tempFileMgr.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {

                JDOMFactory jdomFactory = new ODOMFactory();
                TransformerMetaFactory transformerMetaFactory =
View Full Code Here


     * @throws Throwable
     */
    public void testUpdatePolicyElement() throws Throwable {

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

                // Create the manager from the repository file, giving it an
                // ODOMFactory,
View Full Code Here

    /**
     * Test the retrieveRootDeviceName method.
     */
    public void testRetrieveRootDeviceName() throws Exception {
        TemporaryFileManager tempFileMgr = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        tempFileMgr.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {

                DeviceRepositoryAccessorManager manager =
                        new DeviceRepositoryAccessorManager(
View Full Code Here

    /**
     * Test the retrieveRootDeviceName method.
     */
    public void testRemoveDevice() throws Exception {
        TemporaryFileManager tempFileMgr = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        tempFileMgr.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {
                DeviceRepositoryAccessorManager manager =
                        new DeviceRepositoryAccessorManager(
                                repository.getPath(),
View Full Code Here

     * devices.
     */
    public void testDeviceExists() throws Exception {

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

                DeviceRepositoryAccessorManager manager =
                        new DeviceRepositoryAccessorManager(
View Full Code Here

     * Test that getDeviceRepositoryName() provide the right name.
     */
    public void testGetDeviceRepositoryName() throws Exception {

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

                DeviceRepositoryAccessorManager manager =
                        new DeviceRepositoryAccessorManager(
View Full Code Here

     * @throws Throwable
     */
    public void testHandleOverrideSelection() throws Throwable {

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

                DeviceRepositoryAccessorManager deviceRAM =
                        new DeviceRepositoryAccessorManager(
View Full Code Here

     * an IllegalArgumentException when the policyName is null
     */
    public void testGetLocalizedPolicyNameNullPolicy() throws Exception {

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

                DeviceRepositoryAccessorManager manager =
                        new DeviceRepositoryAccessorManager(
View Full Code Here

     * @throws Throwable
     */
    public void testHandleFallbackSelection() throws Throwable {

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

                DeviceRepositoryAccessorManager deviceRAM =
                        new DeviceRepositoryAccessorManager(
View Full Code Here

    /**
     * Tests the private PolicyController#handleRestoreSelection method.
     */
    public void testHandleRestoreSelection() throws Throwable {
        TemporaryFileManager tempFileMgr = new TemporaryFileManager(
                new TestDeviceRepositoryCreator());
        tempFileMgr.executeWith(new TemporaryFileExecutor() {
            public void execute(File repository) throws Exception {

                DeviceRepositoryAccessorManager deviceRAM =
                        new DeviceRepositoryAccessorManager(
View Full Code Here

TOP

Related Classes of com.volantis.devrep.repository.impl.testtools.device.TestDeviceRepositoryCreator

Copyright © 2018 www.massapicom. 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.