1 19 25 26 package org.netbeans.modules.j2ee.sun.ide.j2ee.incrdeploy; 27 28 import junit.framework.*; 29 30 import javax.enterprise.deploy.shared.ModuleType ; 31 import javax.enterprise.deploy.spi.exceptions.ConfigurationException ; 32 import org.netbeans.modules.j2ee.sun.bridge.DirectoryDeployment; 33 34 67 68 72 public class DirectoryDeploymentTest extends TestCase { 73 74 public void testCoverage() { 75 DirectoryDeployment foo = new DirectoryDeployment(); 76 try { 77 foo.setDeploymentManager(null); 78 fail("null is an IllegalArgument"); 79 } catch (IllegalArgumentException iae) { 80 } 81 try { 82 foo = new DirectoryDeployment(null); 83 fail("null is an IllegalArgument"); 84 } catch (IllegalArgumentException iae) { 85 } 86 boolean ret = foo.canFileDeploy(null,null); 87 assertTrue("the null target cannot file deploy a null module", !ret); 89 foo.getDeploymentPlanFileNames(ModuleType.EAR); 90 foo.getDeploymentPlanFileNames(ModuleType.WAR); 91 foo.getDeploymentPlanFileNames(ModuleType.EJB); 92 foo.getDeploymentPlanFileNames(ModuleType.CAR); 93 foo.getDeploymentPlanFileNames(ModuleType.RAR); 94 103 try { 104 foo.readDeploymentPlanFiles(null, null, null); 105 fail("I shouldn't get here: readDeploymentPlanFiles(null,null,null)"); 106 } catch (ConfigurationException ce) { 107 } 108 try { 109 foo.writeDeploymentPlanFiles(null, null, null); 110 fail("I shouldn't get here: readDeploymentPlanFiles(null,null,null)"); 111 } catch (ConfigurationException ce) { 112 113 } 114 } 115 116 public DirectoryDeploymentTest(java.lang.String testName) { 117 super(testName); 118 } 119 120 } 121 | Popular Tags |