update dev300-m58
[ooovba.git] / cppu / test / cascade_mapping / path.test.cxx
blob22f57dd13e52fb5e5a7c742cdc472136246a18eb
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: path.test.cxx,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #include "rtl/ustring.hxx"
33 #include "../mapping_tester/Mapping.tester.hxx"
36 D_CALLEE
38 rtl::OUString const method_name(pMethod_name);
40 if (g_check)
42 g_result += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\t\tmethod: "));
43 g_result += method_name;
44 g_result += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" - mapping purpose path test --> "));
46 if (g_ref.compareTo(g_custom) == 0)
48 g_result += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("OKAY\n"));
50 else
52 g_result += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FAILED\n"));
53 g_result += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\t\t\texpected: "));
54 g_result += g_ref;
55 g_result += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\n"));
57 g_result += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\t\t\t got: "));
58 g_result += g_custom;
59 g_result += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\n"));