Package com.volantis.synergetics.testtools.io

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


    /**
     * Test that getLocalizedPolicyName retrieves a localized policy name.
     */
    public void testSetLocalizedPolicyName() 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


    /**
     * Test that getLocalizedPolicyName retrieves a localized policy name.
     */
    public void testGetLocalizedCategory() 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

    /**
     * Test that getPolicyDescription retrieves a policy description.
     */
    public void testGetPolicyDescription() 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

    /**
     * Test that getPolicyCategory retrieves a correct category.
     */
    public void testGetPolicyCategory() 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

     * Tests the private PolicyController#handleOverrideSelection method.
     * @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(
                                repository.getPath(),
View Full Code Here

     * Tests the private PolicyController#handleFallbackSelection method.
     * @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(
                                repository.getPath(),
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(
                                repository.getPath(),
View Full Code Here

    /**
     * Test the resolvePolicy() method.
     */
    public void testResolvePolicy() 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

    /**
     * Test the resolvePolicy() method when an inherit element is present.
     */
    public void testResolvePolicyWithInherit() 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

    /**
     * Test the retrieveDeviceElement() method.
     */
    public void testRetrieveDeviceElement() 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

TOP

Related Classes of com.volantis.synergetics.testtools.io.TemporaryFileManager

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.