Modified: james/server/sandbox/mailbox-namespaces/src/test/org/apache/james/mailboxmanager/torque/TorqueMailboxManagerSelfTestCase.java URL: http://svn.apache.org/viewvc/james/server/sandbox/mailbox-namespaces/src/test/org/apache/james/mailboxmanager/torque/TorqueMailboxManagerSelfTestCase.java?view=diff&rev=472179&r1=472178&r2=472179 ============================================================================== --- james/server/sandbox/mailbox-namespaces/src/test/org/apache/james/mailboxmanager/torque/TorqueMailboxManagerSelfTestCase.java (original) +++ james/server/sandbox/mailbox-namespaces/src/test/org/apache/james/mailboxmanager/torque/TorqueMailboxManagerSelfTestCase.java Tue Nov 7 09:51:49 2006 @@ -1,9 +1,27 @@ +/**************************************************************** + * Licensed to the Apache Software Foundation (ASF) under one * + * or more contributor license agreements. See the NOTICE file * + * distributed with this work for additional information * + * regarding copyright ownership. The ASF licenses this file * + * to you 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 org.apache.james.mailboxmanager.torque; import org.apache.james.mailboxmanager.AbstractMailboxManagerSelfTestCase; import org.apache.james.mailboxmanager.mock.MockUser; import org.apache.james.mailboxmanager.mock.TorqueMailboxManagerProviderSingleton; -import org.apache.torque.Torque; import org.apache.torque.TorqueException; public class TorqueMailboxManagerSelfTestCase extends @@ -15,7 +33,7 @@ public void setUp() throws Exception { TorqueMailboxManagerProviderSingleton.getTorqueMailboxManagerProviderInstance().deleteEverything(); - mailboxManager = TorqueMailboxManagerProviderSingleton.getTorqueMailboxManagerProviderInstance().getGeneralManagerInstance(new MockUser()); + mailboxManager = TorqueMailboxManagerProviderSingleton.getTorqueMailboxManagerProviderInstance().getMailboxManagerInstance(new MockUser()); } }
Modified: james/server/sandbox/mailbox-namespaces/src/test/org/apache/james/mailboxmanager/torque/repository/TorqueMailboxManagerMailRepositoryNativeTestCase.java URL: http://svn.apache.org/viewvc/james/server/sandbox/mailbox-namespaces/src/test/org/apache/james/mailboxmanager/torque/repository/TorqueMailboxManagerMailRepositoryNativeTestCase.java?view=diff&rev=472179&r1=472178&r2=472179 ============================================================================== --- james/server/sandbox/mailbox-namespaces/src/test/org/apache/james/mailboxmanager/torque/repository/TorqueMailboxManagerMailRepositoryNativeTestCase.java (original) +++ james/server/sandbox/mailbox-namespaces/src/test/org/apache/james/mailboxmanager/torque/repository/TorqueMailboxManagerMailRepositoryNativeTestCase.java Tue Nov 7 09:51:49 2006 @@ -1,3 +1,22 @@ +/**************************************************************** + * Licensed to the Apache Software Foundation (ASF) under one * + * or more contributor license agreements. See the NOTICE file * + * distributed with this work for additional information * + * regarding copyright ownership. The ASF licenses this file * + * to you 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 org.apache.james.mailboxmanager.torque.repository; import java.io.ByteArrayInputStream; @@ -116,10 +135,10 @@ protected GeneralMailboxSession getShadowMailbox() { if (shadowMailbox == null) { try { - shadowMailbox = (GeneralMailboxSession) TorqueMailboxManagerProviderSingleton + shadowMailbox = TorqueMailboxManagerProviderSingleton .getTorqueMailboxManagerProviderInstance() - .getGeneralManagerInstance(new MockUser()) - .getGenericGeneralMailboxSession("#mail.tuser.INBOX"); + .getMailboxManagerInstance(new MockUser()) + .getGeneralMailboxSession("#mail.tuser.INBOX"); } catch (Exception e) { throw new RuntimeException(e); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
