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/.
11 #include <cppunit/TestFixture.h>
12 #include <cppunit/extensions/HelperMacros.h>
13 #include <cppunit/plugin/TestPlugIn.h>
15 #include <tools/urlobj.hxx>
21 /// Test suite for unit tests covering uibase code.
22 class Test
: public CppUnit::TestFixture
27 CPPUNIT_TEST_SUITE(Test
);
28 CPPUNIT_TEST(testTdf98168
);
29 CPPUNIT_TEST_SUITE_END();
32 void Test::testTdf98168()
34 INetURLObject
aURL("file:///tmp/test.xlsx");
35 // This was sw::DBConnURIType::UNKNOWN, xlsx was not recognized.
36 CPPUNIT_ASSERT_EQUAL(sw::DBConnURIType::CALC
, sw::GetDBunoType(aURL
));
39 CPPUNIT_TEST_SUITE_REGISTRATION(Test
);
42 CPPUNIT_PLUGIN_IMPLEMENT();
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */