Author: rob.stryker(a)jboss.com
Date: 2011-05-19 09:45:44 -0400 (Thu, 19 May 2011)
New Revision: 31378
Modified:
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/v2/SingleFileDeployableMockDeploymentTester.java
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/v2/SingleFileDeploymentTester.java
Log:
JBIDE-8960 - removal of deprecated code
Modified:
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/v2/SingleFileDeployableMockDeploymentTester.java
===================================================================
---
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/v2/SingleFileDeployableMockDeploymentTester.java 2011-05-19
13:34:14 UTC (rev 31377)
+++
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/v2/SingleFileDeployableMockDeploymentTester.java 2011-05-19
13:45:44 UTC (rev 31378)
@@ -12,10 +12,7 @@
import org.eclipse.core.runtime.Path;
import org.eclipse.wst.server.core.IModule;
import org.eclipse.wst.server.core.internal.ServerPreferences;
-import org.jboss.ide.eclipse.as.core.ExtensionManager;
import org.jboss.ide.eclipse.as.core.modules.SingleDeployableFactory;
-import org.jboss.ide.eclipse.as.core.publishers.SingleFilePublisher;
-import org.jboss.ide.eclipse.as.core.server.IJBossServerPublisher;
import org.jboss.ide.eclipse.as.core.server.internal.ServerAttributeHelper;
import org.jboss.ide.eclipse.as.core.util.DeploymentPreferenceLoader;
import
org.jboss.ide.eclipse.as.core.util.DeploymentPreferenceLoader.DeploymentModulePrefs;
@@ -43,7 +40,6 @@
SingleDeployableFactory.makeDeployable(file);
mods = SingleDeployableFactory.getFactory().getModules();
assertEquals(mods.length, 1);
- verifyPublisher(mods[0], SingleFilePublisher.class);
server = ServerRuntimeUtils.addModule(server, mods[0]);
IPath deployRoot = new Path(ServerRuntimeUtils.getDeployRoot(server));
deployRoot.toFile().mkdirs();
@@ -133,7 +129,6 @@
SingleDeployableFactory.makeDeployable(folder);
mods = SingleDeployableFactory.getFactory().getModules();
assertEquals(mods.length, 1);
- verifyPublisher(mods[0], SingleFilePublisher.class);
return mods;
}
Modified:
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/v2/SingleFileDeploymentTester.java
===================================================================
---
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/v2/SingleFileDeploymentTester.java 2011-05-19
13:34:14 UTC (rev 31377)
+++
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/publishing/v2/SingleFileDeploymentTester.java 2011-05-19
13:45:44 UTC (rev 31378)
@@ -12,10 +12,7 @@
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.wst.server.core.IModule;
-import org.jboss.ide.eclipse.as.core.ExtensionManager;
import org.jboss.ide.eclipse.as.core.modules.SingleDeployableFactory;
-import org.jboss.ide.eclipse.as.core.publishers.SingleFilePublisher;
-import org.jboss.ide.eclipse.as.core.server.IJBossServerPublisher;
import org.jboss.ide.eclipse.as.core.server.internal.ServerAttributeHelper;
import org.jboss.ide.eclipse.as.core.util.DeploymentPreferenceLoader;
import
org.jboss.ide.eclipse.as.core.util.DeploymentPreferenceLoader.DeploymentModulePrefs;
@@ -36,7 +33,6 @@
SingleDeployableFactory.makeDeployable(file);
mods = SingleDeployableFactory.getFactory().getModules();
assertEquals(mods.length, 1);
- verifyPublisher(mods[0], SingleFilePublisher.class);
server = ServerRuntimeUtils.addModule(server, mods[0]);
IPath deployRoot = new Path(ServerRuntimeUtils.getDeployRoot(server));
deployRoot.toFile().mkdirs();
@@ -118,7 +114,6 @@
SingleDeployableFactory.makeDeployable(folder);
mods = SingleDeployableFactory.getFactory().getModules();
assertEquals(mods.length, 1);
- verifyPublisher(mods[0], SingleFilePublisher.class);
return mods;
}
@@ -170,7 +165,6 @@
SingleDeployableFactory.makeDeployable(file);
mods = SingleDeployableFactory.getFactory().getModules();
assertEquals(mods.length, 1);
- verifyPublisher(mods[0], SingleFilePublisher.class);
server = ServerRuntimeUtils.addModule(server, mods[0]);
ArrayList<IPath> changed2 = MockPublishMethod.changed;
ArrayList<IPath> removed2 = MockPublishMethod.removed;
@@ -250,13 +244,6 @@
}
- protected void verifyPublisher(IModule module, Class c) {
-// IModule[] mod = new IModule[] { module };
-// IJBossServerPublisher publisher = ExtensionManager
-// .getDefault().getPublisher(server, mod, "local");
-// assertTrue(publisher.getClass().equals(c));
- }
-
protected IFile createFile(String filename, String contents) throws CoreException,
IOException {
IFile resource = project.getFile(filename);
IOUtil.setContents(resource, contents);
Show replies by date