Package com.volantis.synergetics.testtools.io

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


public class DeviceRepositoryAccessorManagerTestCase extends TestCaseAbstract {
    /**
     * 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(
                                repository.getPath(),
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(),
                                new TestTransformerMetaFactory(),
View Full Code Here

     * Test that deviceExists() works for both existing and non-existing
     * 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(
                                repository.getPath(),
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(
                                repository.getPath(),
View Full Code Here

     * {@link DeviceRepositoryAccessorManager#getLocalizedPolicyName} throws
     * 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(
                                repository.getPath(),
View Full Code Here

     * {@link DeviceRepositoryAccessorManager#getLocalizedPolicyName} throws
     * an IllegalArgumentException when the policyName is an empty string
     */
    public void testGetLocalizedPolicyNameEmptyPolicy() 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 testGetLocalizedPolicyName() 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

     * {@link DeviceRepositoryAccessorManager#setLocalizedPolicyName} throws
     * an IllegalArgumentException when the policyName is null
     */
    public void testSetLocalizedPolicyNameNullPolicy() 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

     * {@link DeviceRepositoryAccessorManager#setLocalizedPolicyName} throws
     * an IllegalArgumentException when the policyName is an empty string
     */
    public void testSetLocalizedPolicyNameEmptyPolicy() 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

     * {@link DeviceRepositoryAccessorManager#setLocalizedPolicyName} throws
     * an IllegalArgumentException when the localizedName is null
     */
    public void testSetLocalizedPolicyNameNullLocalName() 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.