/* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package fedora.server.security.servletfilters.xmluserfile;
import java.io.File;
import org.junit.Test;
import static org.junit.Assert.assertNotNull;
public class TestFedoraUsers {
@Test
public void testGetInstance() throws Exception {
FedoraUsers fu = FedoraUsers.getInstance();
assertNotNull(fu);
//Writer outputWriter = new BufferedWriter(new OutputStreamWriter(System.out));
//fu.write(outputWriter);
//outputWriter.close();
}
@Test
public void testGetInstanceString() throws Exception {
String fedoraUsersXML = "src/main/resources/fcfg/server/fedora-users.xml";
File f = new File(fedoraUsersXML);
FedoraUsers fu = FedoraUsers.getInstance(f.toURI());
assertNotNull(fu);
//Writer outputWriter = new BufferedWriter(new OutputStreamWriter(System.out));
//fu.write(outputWriter);
//outputWriter.close();
}
/*
* @Test public void testGetInstanceString() { fail("Not yet implemented"); }
* @Test public void testGetRoles() { fail("Not yet implemented"); } @Test
* public void testGetUsers() { fail("Not yet implemented"); } @Test public
* void testAddRole() { fail("Not yet implemented"); } @Test public void
* testAddUser() { fail("Not yet implemented"); } @Test public void
* testWrite() { fail("Not yet implemented"); }
*/
}