1 16 17 package org.apache.cocoon.acting; 18 19 import java.util.Map ; 20 21 import org.apache.avalon.framework.parameters.Parameters; 22 import org.apache.cocoon.SitemapComponentTestCase; 23 24 30 public class ResourceExistsActionTestCase extends SitemapComponentTestCase { 31 32 public void testExistAction() throws Exception { 33 34 String src = "resource://org/apache/cocoon/acting/ResourceExistsActionTestCase.xtest"; 35 Parameters parameters = new Parameters(); 36 37 Map result = act("exist", src, parameters); 38 assertNotNull("Test if resource exists", result); 39 40 src = "resource://org/apache/cocoon/acting/ResourceExistsActionTestCase.abc"; 41 42 result = act("exist", src, parameters); 43 assertNull("Test if resource not exists", result); 44 } 45 } 46 | Popular Tags |