1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #include <sal/config.h>
11 #include <test/unoapi_test.hxx>
12 #include <rtl/strbuf.hxx>
13 #include <osl/file.hxx>
15 #include <sfx2/app.hxx>
16 #include <sfx2/docfilt.hxx>
17 #include <sfx2/docfile.hxx>
18 #include <sfx2/sfxmodelfactory.hxx>
19 #include <svl/intitem.hxx>
21 #include <basic/sbxdef.hxx>
23 using namespace ::com::sun::star
;
24 using namespace ::com::sun::star::uno
;
27 class DBAccessTest
: public UnoApiTest
34 CPPUNIT_TEST_SUITE(DBAccessTest
);
35 #if !defined(MACOSX) && !defined(WNT)
38 CPPUNIT_TEST_SUITE_END();
43 DBAccessTest::DBAccessTest()
44 : UnoApiTest("/dbaccess/qa/extras/testdocuments")
48 void DBAccessTest::test()
50 const OUString
aFileNameBase("testdb.odb");
52 createFileURL(aFileNameBase
, aFileName
);
53 uno::Reference
< lang::XComponent
> xComponent
= loadFromDesktop(aFileName
);
54 CPPUNIT_ASSERT(xComponent
.is());
57 CPPUNIT_TEST_SUITE_REGISTRATION(DBAccessTest
);
59 CPPUNIT_PLUGIN_IMPLEMENT();
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */