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
;
26 #if !defined(MACOSX) && !defined(WNT)
28 class DBAccessTest
: public UnoApiTest
35 CPPUNIT_TEST_SUITE(DBAccessTest
);
37 CPPUNIT_TEST_SUITE_END();
42 DBAccessTest::DBAccessTest()
43 : UnoApiTest("/dbaccess/qa/extras/testdocuments")
47 void DBAccessTest::test()
49 const OUString
aFileNameBase("testdb.odb");
51 createFileURL(aFileNameBase
, aFileName
);
52 uno::Reference
< lang::XComponent
> xComponent
= loadFromDesktop(aFileName
);
53 CPPUNIT_ASSERT(xComponent
.is());
56 CPPUNIT_TEST_SUITE_REGISTRATION(DBAccessTest
);
60 CPPUNIT_PLUGIN_IMPLEMENT();
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */