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
69fb441a
Kaydet (Commit)
69fb441a
authored
May 22, 2003
tarafından
Vladimir Glazounov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS uno4 (1.2.66); FILE MERGED
2003/05/07 12:37:11 sb 1.2.66.1: #108642# Cleaned up tests.
üst
6a3f7e54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
38 deletions
+32
-38
PipedConnection_Test.java
...t/com/sun/star/comp/connections/PipedConnection_Test.java
+32
-38
No files found.
jurt/test/com/sun/star/comp/connections/PipedConnection_Test.java
Dosyayı görüntüle @
69fb441a
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: PipedConnection_Test.java,v $
*
* $Revision: 1.
2
$
* $Revision: 1.
3
$
*
* last change: $Author:
kr $ $Date: 2001-01-17 09:35:10
$
* last change: $Author:
vg $ $Date: 2003-05-22 09:01:33
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -61,11 +61,39 @@
package
com
.
sun
.
star
.
comp
.
connections
;
import
complexlib.ComplexTestCase
;
import
java.util.Vector
;
public
final
class
PipedConnection_Test
extends
ComplexTestCase
{
public
String
getTestObjectName
()
{
return
getClass
().
getName
();
}
public
String
[]
getTestMethodNames
()
{
return
new
String
[]
{
"test"
};
}
public
void
test
()
throws
Exception
{
PipedConnection
rightSide
=
new
PipedConnection
(
new
Object
[
0
]);
PipedConnection
leftSide
=
new
PipedConnection
(
new
Object
[]{
rightSide
});
byte
theByte
[]
=
new
byte
[
1
];
Reader
reader
=
new
Reader
(
rightSide
,
theByte
);
Writer
writer
=
new
Writer
(
leftSide
,
theByte
,
reader
);
reader
.
start
();
writer
.
start
();
Thread
.
sleep
(
2000
);
writer
.
term
();
writer
.
join
();
reader
.
join
();
assure
(
""
,
writer
.
_state
&&
reader
.
_state
);
}
public
class
PipedConnection_Test
{
static
class
Reader
extends
Thread
{
PipedConnection
_pipedConnection
;
byte
_theByte
[];
...
...
@@ -150,38 +178,4 @@ public class PipedConnection_Test {
_quit
=
true
;
}
}
static
public
boolean
test
(
Vector
notpassed
)
throws
Exception
{
System
.
err
.
println
(
"Testing PipedConnection..."
);
PipedConnection
rightSide
=
new
PipedConnection
(
new
Object
[
0
]);
PipedConnection
leftSide
=
new
PipedConnection
(
new
Object
[]{
rightSide
});
byte
theByte
[]
=
new
byte
[
1
];
Reader
reader
=
new
Reader
(
rightSide
,
theByte
);
Writer
writer
=
new
Writer
(
leftSide
,
theByte
,
reader
);
reader
.
start
();
writer
.
start
();
Thread
.
sleep
(
2000
);
writer
.
term
();
writer
.
join
();
reader
.
join
();
boolean
passed
=
writer
.
_state
&&
reader
.
_state
;
System
.
err
.
println
(
"PipedConnection - passed? "
+
passed
+
" transmitted:"
+
theByte
[
0
]);
if
(!
passed
)
notpassed
.
addElement
(
"PipedConnection - passed? "
+
passed
+
" transmitted:"
+
theByte
[
0
]);
return
passed
;
}
static
public
void
main
(
String
argv
[])
throws
Exception
{
test
(
null
);
}
}
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