Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
428f1a27
Kaydet (Commit)
428f1a27
authored
Kas 05, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CppunitTest_sw_mailmerge: move executeMailMergeTest() from header file
Change-Id: Ia1cfe9f65fe7c7be0c93ad03a6c34c57ffa4b45e
üst
0e6e2fda
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
29 deletions
+29
-29
swmodeltestbase.hxx
sw/qa/extras/inc/swmodeltestbase.hxx
+0
-29
mailmerge.cxx
sw/qa/extras/mailmerge/mailmerge.cxx
+29
-0
No files found.
sw/qa/extras/inc/swmodeltestbase.hxx
Dosyayı görüntüle @
428f1a27
...
@@ -295,35 +295,6 @@ protected:
...
@@ -295,35 +295,6 @@ protected:
maTempFile
.
EnableKillingFile
();
maTempFile
.
EnableKillingFile
();
}
}
/**
* Helper func used by each unit test to test the 'mail merge' code.
*
* Registers the data source, loads the original file as reference,
* initializes the mail merge job and its default argument sequence.
*
* The 'verify' method actually has to execute the mail merge by
* calling executeMailMerge() after modifying the job arguments.
*/
void
executeMailMergeTest
(
const
char
*
filename
,
const
char
*
datasource
,
const
char
*
tablename
=
0
)
{
header
();
preTest
(
filename
);
load
(
mpTestDocumentPath
,
filename
);
const
OUString
aPrefix
(
"LOMM_"
);
utl
::
TempFile
aTempDir
(
nullptr
,
true
);
const
OUString
aWorkDir
=
aTempDir
.
GetURL
();
const
OUString
aURI
(
getURLFromSrc
(
mpTestDocumentPath
)
+
OUString
::
createFromAscii
(
datasource
)
);
OUString
aDBName
=
registerDBsource
(
aURI
,
aPrefix
,
aWorkDir
);
initMailMergeJobAndArgs
(
filename
,
tablename
,
aDBName
,
aPrefix
,
aWorkDir
);
postTest
(
filename
);
verify
();
finish
();
::
utl
::
removeTree
(
aWorkDir
);
}
/**
/**
* Function overloaded by unit test. See DECLARE_SW_*_TEST macros
* Function overloaded by unit test. See DECLARE_SW_*_TEST macros
*/
*/
...
...
sw/qa/extras/mailmerge/mailmerge.cxx
Dosyayı görüntüle @
428f1a27
...
@@ -35,6 +35,35 @@ class MMTest : public SwModelTestBase
...
@@ -35,6 +35,35 @@ class MMTest : public SwModelTestBase
{
{
public
:
public
:
MMTest
()
:
SwModelTestBase
(
"/sw/qa/extras/mailmerge/data/"
,
"writer8"
)
{}
MMTest
()
:
SwModelTestBase
(
"/sw/qa/extras/mailmerge/data/"
,
"writer8"
)
{}
/**
* Helper func used by each unit test to test the 'mail merge' code.
*
* Registers the data source, loads the original file as reference,
* initializes the mail merge job and its default argument sequence.
*
* The 'verify' method actually has to execute the mail merge by
* calling executeMailMerge() after modifying the job arguments.
*/
void
executeMailMergeTest
(
const
char
*
filename
,
const
char
*
datasource
,
const
char
*
tablename
=
0
)
{
header
();
preTest
(
filename
);
load
(
mpTestDocumentPath
,
filename
);
const
OUString
aPrefix
(
"LOMM_"
);
utl
::
TempFile
aTempDir
(
nullptr
,
true
);
const
OUString
aWorkDir
=
aTempDir
.
GetURL
();
const
OUString
aURI
(
getURLFromSrc
(
mpTestDocumentPath
)
+
OUString
::
createFromAscii
(
datasource
)
);
OUString
aDBName
=
registerDBsource
(
aURI
,
aPrefix
,
aWorkDir
);
initMailMergeJobAndArgs
(
filename
,
tablename
,
aDBName
,
aPrefix
,
aWorkDir
);
postTest
(
filename
);
verify
();
finish
();
::
utl
::
removeTree
(
aWorkDir
);
}
};
};
#define DECLARE_MAILMERGE_TEST(TestName, filename, datasource, tablename, BaseClass) \
#define DECLARE_MAILMERGE_TEST(TestName, filename, datasource, tablename, BaseClass) \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment