1 17 18 19 20 package org.apache.lenya.ac.impl; 21 22 import java.io.File ; 23 24 import org.apache.lenya.ac.AccessControlException; 25 import org.apache.lenya.ac.file.FileGroupManager; 26 import org.apache.lenya.cms.PublicationHelper; 27 28 public class GroupManagerTest extends AccessControlTest { 29 30 34 public GroupManagerTest(String arg0) { 35 super(arg0); 36 } 37 38 43 public static void main(String [] args) { 44 PublicationHelper.extractPublicationArguments(args); 45 junit.textui.TestRunner.run(GroupManagerTest.class); 46 } 47 48 53 public final void testInstance() throws AccessControlException { 54 FileGroupManager manager = null; 55 File configDir = getAccreditablesDirectory(); 56 manager = FileGroupManager.instance(configDir); 57 assertNotNull(manager); 58 59 FileGroupManager anotherManager = null; 60 anotherManager = FileGroupManager.instance(configDir); 61 assertNotNull(anotherManager); 62 assertEquals(manager, anotherManager); 63 } 64 } 65 | Popular Tags |