Update ooo320-m1
[ooovba.git] / svtools / qa / complex / passwordcontainer / PasswordContainerUnitTest.java
blob0d8fafdf7a001e2081b0bf326cc63554a469157a
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: PasswordContainerUnitTest.java,v $
11 * $Revision: 1.2 $
13 * This file is part of OpenOffice.org.
15 * OpenOffice.org is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License version 3
17 * only, as published by the Free Software Foundation.
19 * OpenOffice.org is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Lesser General Public License version 3 for more details
23 * (a copy is included in the LICENSE file that accompanied this code).
25 * You should have received a copy of the GNU Lesser General Public License
26 * version 3 along with OpenOffice.org. If not, see
27 * <http://www.openoffice.org/license.html>
28 * for a copy of the LGPLv3 License.
30 ************************************************************************/
32 package complex.passwordcontainer;
34 import complexlib.ComplexTestCase;
35 import com.sun.star.lang.XMultiServiceFactory;
37 public class PasswordContainerUnitTest extends ComplexTestCase {
38 private XMultiServiceFactory m_xMSF = null;
40 public String[] getTestMethodNames() {
41 return new String[] {
42 "ExecuteTest01",
43 "ExecuteTest02",
44 "ExecuteTest03"};
46 public String getTestObjectName() {
47 return "PasswordContainerUnitTest";
50 public void before() {
51 try {
52 m_xMSF = (XMultiServiceFactory) param.getMSF();
53 } catch (Exception e) {
54 failed ("Cannot create service factory!");
56 if (m_xMSF == null) {
57 failed ("Cannot create service factory!");
61 public void after() {
62 m_xMSF = null;
65 public void ExecuteTest01() {
66 PasswordContainerTest aTest = new Test01(m_xMSF, log);
67 assure("Test01 failed!", aTest.test());
69 public void ExecuteTest02() {
70 PasswordContainerTest aTest = new Test02(m_xMSF, log);
71 assure("Test02 failed!", aTest.test());
73 public void ExecuteTest03() {
74 PasswordContainerTest aTest = new Test03(m_xMSF, log);
75 assure("Test03 failed!", aTest.test());