[jboss-svn-commits] JBoss Common SVN: r3622 - tmpdpl/trunk/impl-vdf/src/test/java/org/jboss/tmpdpl/impl/vdf.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Oct 22 12:16:35 EDT 2009
Author: ALRubinger
Date: 2009-10-22 12:16:33 -0400 (Thu, 22 Oct 2009)
New Revision: 3622
Removed:
tmpdpl/trunk/impl-vdf/src/test/java/org/jboss/tmpdpl/impl/vdf/VfsVdfDeployableFactoryTestCase.java
Log:
[TMPDPL-8] Move a class due to decoupling of ShrinkWrap from TMPDPL proper
Deleted: tmpdpl/trunk/impl-vdf/src/test/java/org/jboss/tmpdpl/impl/vdf/VfsVdfDeployableFactoryTestCase.java
===================================================================
--- tmpdpl/trunk/impl-vdf/src/test/java/org/jboss/tmpdpl/impl/vdf/VfsVdfDeployableFactoryTestCase.java 2009-10-22 15:56:48 UTC (rev 3621)
+++ tmpdpl/trunk/impl-vdf/src/test/java/org/jboss/tmpdpl/impl/vdf/VfsVdfDeployableFactoryTestCase.java 2009-10-22 16:16:33 UTC (rev 3622)
@@ -1,91 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2009, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.tmpdpl.impl.vdf;
-
-import java.util.logging.Logger;
-
-import junit.framework.Assert;
-
-import org.jboss.shrinkwrap.api.spec.JavaArchive;
-import org.jboss.shrinkwrap.api.spec.JavaArchiveFactory;
-import org.jboss.tmpdpl.api.deployable.Deployable;
-import org.jboss.tmpdpl.api.deployable.VfsVdfDeployableFactory;
-import org.jboss.virtual.VFS;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-/**
- * VfsVdfDeployableFactoryTestCase
- *
- * Test Cases to assert that the {@link VfsVdfDeployableFactory} is
- * working correctly
- *
- * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
- * @version $Revision: $
- */
-public class VfsVdfDeployableFactoryTestCase
-{
-
- //-------------------------------------------------------------------------------------||
- // Class Members ----------------------------------------------------------------------||
- //-------------------------------------------------------------------------------------||
-
- /**
- * Logger
- */
- private static final Logger log = Logger.getLogger(VfsVdfDeployableFactoryTestCase.class.getName());
-
- //-------------------------------------------------------------------------------------||
- // Lifecycle --------------------------------------------------------------------------||
- //-------------------------------------------------------------------------------------||
-
- /**
- * Initializes the virtual file system
- */
- @BeforeClass
- public static void initVfs() throws Exception
- {
- // Init VFS
- VFS.init();
- }
-
- //-------------------------------------------------------------------------------------||
- // Tests ------------------------------------------------------------------------------||
- //-------------------------------------------------------------------------------------||
-
- /**
- * Tests that using a {@link VfsVdfDeployableFactory} to create a deployable
- * type results in a new instance backed by VFS/VDF
- */
- @Test
- public void testDeployableFactory() throws Exception
- {
- // Log
- log.info("testDeployableFactory");
-
- // Make an archive
- final JavaArchive archive = JavaArchiveFactory.create("test.jar");
- archive.addClass(this.getClass());
-
- // Make a Deployable
- final Deployable deployable = VfsVdfDeployableFactory.createDeployable(archive);
-
- // Ensure exists
- Assert.assertNotNull("Deployable was not created/null", deployable);
- Assert.assertTrue("Created deployable was not of expected type", deployable instanceof VfsVdfDeployableImpl);
- }
-}
More information about the jboss-svn-commits
mailing list