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
bcd5004c
Kaydet (Commit)
bcd5004c
authored
Eki 20, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1327109 UrF: Unread field
Change-Id: Iee847f2c82c35e5f92e8be29e1f2062085977dbc
üst
4c7c5fe3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
28 deletions
+11
-28
ConnectionLineAccessibility.java
...tests/java/mod/_dbaccess/ConnectionLineAccessibility.java
+6
-16
JoinViewAccessibility.java
qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java
+3
-7
TableWindowAccessibility.java
...Oo/tests/java/mod/_dbaccess/TableWindowAccessibility.java
+2
-5
No files found.
qadevOOo/tests/java/mod/_dbaccess/ConnectionLineAccessibility.java
Dosyayı görüntüle @
bcd5004c
...
...
@@ -70,9 +70,7 @@ import util.utils;
public
class
ConnectionLineAccessibility
extends
TestCase
{
XWindow
xWindow
=
null
;
Object
oDBSource
=
null
;
String
aFile
=
""
;
XConnection
connection
=
null
;
XIsolatedConnection
isolConnection
=
null
;
XComponent
QueryComponent
=
null
;
String
user
=
""
;
...
...
@@ -98,13 +96,9 @@ public class ConnectionLineAccessibility extends TestCase
{
XInterface
oObj
=
null
;
Object
oDBSource
=
null
;
Object
newQuery
=
null
;
XStorable
store
=
null
;
Param
.
getMSF
().
createInstance
(
"com.sun.star.sdb.DatabaseContext"
);
oDBSource
=
Param
.
getMSF
().
createInstance
(
"com.sun.star.sdb.DataSource"
);
newQuery
=
Param
.
getMSF
().
createInstance
(
"com.sun.star.sdb.QueryDefinition"
);
Object
oDBSource
=
Param
.
getMSF
().
createInstance
(
"com.sun.star.sdb.DataSource"
);
Object
newQuery
=
Param
.
getMSF
().
createInstance
(
"com.sun.star.sdb.QueryDefinition"
);
Param
.
getMSF
().
createInstance
(
"com.sun.star.awt.Toolkit"
);
String
mysqlURL
=
(
String
)
Param
.
get
(
"mysql.url"
);
...
...
@@ -140,22 +134,18 @@ public class ConnectionLineAccessibility extends TestCase
log
.
println
(
"writing database file ..."
);
XDocumentDataSource
xDDS
=
UnoRuntime
.
queryInterface
(
XDocumentDataSource
.
class
,
oDBSource
);
store
=
UnoRuntime
.
queryInterface
(
XStorable
.
class
,
XStorable
store
=
UnoRuntime
.
queryInterface
(
XStorable
.
class
,
xDDS
.
getDatabaseDocument
());
aFile
=
utils
.
getOfficeTemp
(
Param
.
getMSF
())+
"ConnectionLine.odb"
;
log
.
println
(
"... filename will be "
+
aFile
);
store
.
storeAsURL
(
aFile
,
new
PropertyValue
[]
{});
store
.
storeAsURL
(
aFile
,
new
PropertyValue
[]{});
log
.
println
(
"... done"
);
isolConnection
=
UnoRuntime
.
queryInterface
(
XIsolatedConnection
.
class
,
oDBSource
);
XConnection
connection
=
null
;
XStatement
statement
=
null
;
final
String
tbl_name1
=
"tst_table1"
;
final
String
tbl_name2
=
"tst_table2"
;
final
String
col_name1
=
"id1"
;
...
...
@@ -163,8 +153,8 @@ public class ConnectionLineAccessibility extends TestCase
util
.
utils
.
waitForEventIdle
(
Param
.
getMSF
());
connection
=
isolConnection
.
getIsolatedConnection
(
user
,
password
);
statement
=
connection
.
createStatement
();
XConnection
connection
=
isolConnection
.
getIsolatedConnection
(
user
,
password
);
XStatement
statement
=
connection
.
createStatement
();
statement
.
executeUpdate
(
"drop table if exists "
+
tbl_name1
);
statement
.
executeUpdate
(
"drop table if exists "
+
tbl_name2
);
statement
.
executeUpdate
(
"create table "
+
tbl_name1
+
" ("
+
...
...
qadevOOo/tests/java/mod/_dbaccess/JoinViewAccessibility.java
Dosyayı görüntüle @
bcd5004c
...
...
@@ -95,13 +95,10 @@ public class JoinViewAccessibility extends TestCase {
{
XInterface
oObj
=
null
;
Object
newQuery
=
null
;
XStorable
store
=
null
;
Param
.
getMSF
().
createInstance
(
"com.sun.star.sdb.DatabaseContext"
);
Object
oDBSource
=
Param
.
getMSF
()
.
createInstance
(
"com.sun.star.sdb.DataSource"
);
newQuery
=
Param
.
getMSF
().
createInstance
(
Object
newQuery
=
Param
.
getMSF
().
createInstance
(
"com.sun.star.sdb.QueryDefinition"
);
Param
.
getMSF
().
createInstance
(
"com.sun.star.awt.Toolkit"
);
...
...
@@ -138,12 +135,11 @@ public class JoinViewAccessibility extends TestCase {
log
.
println
(
"writing database file ..."
);
XDocumentDataSource
xDDS
=
UnoRuntime
.
queryInterface
(
XDocumentDataSource
.
class
,
oDBSource
);
store
=
UnoRuntime
.
queryInterface
(
XStorable
.
class
,
XStorable
store
=
UnoRuntime
.
queryInterface
(
XStorable
.
class
,
xDDS
.
getDatabaseDocument
());
aFile
=
utils
.
getOfficeTemp
(
Param
.
getMSF
())+
"JoinView.odb"
;
log
.
println
(
"... filename will be "
+
aFile
);
store
.
storeAsURL
(
aFile
,
new
PropertyValue
[]
{});
store
.
storeAsURL
(
aFile
,
new
PropertyValue
[]{});
log
.
println
(
"... done"
);
isolConnection
=
UnoRuntime
.
queryInterface
(
...
...
qadevOOo/tests/java/mod/_dbaccess/TableWindowAccessibility.java
Dosyayı görüntüle @
bcd5004c
...
...
@@ -98,13 +98,10 @@ public class TableWindowAccessibility extends TestCase {
PrintWriter
log
)
throws
Exception
{
XInterface
oObj
=
null
;
Object
newQuery
=
null
;
XStorable
store
=
null
;
Param
.
getMSF
().
createInstance
(
"com.sun.star.sdb.DatabaseContext"
);
Object
oDBSource
=
Param
.
getMSF
()
.
createInstance
(
"com.sun.star.sdb.DataSource"
);
newQuery
=
Param
.
getMSF
().
createInstance
(
Object
newQuery
=
Param
.
getMSF
().
createInstance
(
"com.sun.star.sdb.QueryDefinition"
);
Param
.
getMSF
().
createInstance
(
"com.sun.star.awt.Toolkit"
);
...
...
@@ -140,7 +137,7 @@ public class TableWindowAccessibility extends TestCase {
log
.
println
(
"writing database file ..."
);
XDocumentDataSource
xDDS
=
UnoRuntime
.
queryInterface
(
XDocumentDataSource
.
class
,
oDBSource
);
store
=
UnoRuntime
.
queryInterface
(
XStorable
.
class
,
XStorable
store
=
UnoRuntime
.
queryInterface
(
XStorable
.
class
,
xDDS
.
getDatabaseDocument
());
aFile
=
utils
.
getOfficeTemp
(
Param
.
getMSF
())
+
"TableWindow.odb"
;
log
.
println
(
"... filename will be "
+
aFile
);
...
...
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