/** * Copyright (c) 2009 Juwi MacMillan Group GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package de.juwimm.cms.management.remote.test; import junit.framework.TestCase; /** * * @author <a href="mailto:carsten.schalm@juwimm.com">Carsten Schalm</a> * , Juwi|MacMillan Group Gmbh, Walsrode, Germany * @version $Id$ */ public class AdminServiceTest extends TestCase { @Override protected void setUp() throws Exception { super.setUp(); } public void testImportActiveDirectoryPersonData() { // AdminServiceSpring service = new AdminServiceSpringImpl(); // Hashtable env = new Hashtable(); // env.put(Context.SECURITY_AUTHENTICATION, "simple"); // env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); // env.put(Context.PROVIDER_URL, "ldap://bsnads.ADSTEST.bsn:389"); // env.put(Context.SECURITY_PRINCIPAL, "carsten schalm"); // User // env.put(Context.SECURITY_CREDENTIALS, "unw1cht!g"); // Password // String base = "OU=JuwiMM,DC=adstest,DC=bsn"; // env.put("baseDN", base); // env.put("importUnitId" , "78"); // // service.importActiveDirectoryPersonData(env); } }