Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
histream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Raphael
histream
Commits
b94854d2
Commit
b94854d2
authored
Jul 29, 2017
by
R.W.Majeed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow external servers for test main methods
parent
f9677059
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
histream-i2b2/src/test/java/de/sekmi/histream/i2b2/TestPostgresPatientStore.java
...java/de/sekmi/histream/i2b2/TestPostgresPatientStore.java
+5
-4
No files found.
histream-i2b2/src/test/java/de/sekmi/histream/i2b2/TestPostgresPatientStore.java
View file @
b94854d2
...
...
@@ -30,9 +30,9 @@ import de.sekmi.histream.i2b2.PostgresPatientStore;
public
class
TestPostgresPatientStore
implements
Closeable
{
PostgresPatientStore
store
;
public
void
open
(
String
host
,
int
port
)
throws
ClassNotFoundException
,
SQLException
{
public
void
open
(
String
host
,
int
port
,
String
user
,
String
password
,
String
projectId
)
throws
ClassNotFoundException
,
SQLException
{
store
=
new
PostgresPatientStore
();
store
.
open
(
DriverManager
.
getConnection
(
"jdbc:postgresql://"
+
host
+
":"
+
port
+
"/i2b2"
,
"i2b2demodata"
,
"demodata"
),
"demo"
);
store
.
open
(
DriverManager
.
getConnection
(
"jdbc:postgresql://"
+
host
+
":"
+
port
+
"/i2b2"
,
user
,
password
),
projectId
);
}
public
PostgresPatientStore
getStore
(){
return
store
;}
...
...
@@ -43,11 +43,12 @@ public class TestPostgresPatientStore implements Closeable {
}
private
void
open
()
throws
Exception
{
open
(
"localhost"
,
15432
);
open
(
"localhost"
,
15432
,
"i2b2demodata"
,
"demodata"
,
"demo"
);
}
public
static
void
main
(
String
args
[])
throws
Exception
{
TestPostgresPatientStore
test
=
new
TestPostgresPatientStore
();
test
.
open
();
// test.open();
test
.
open
(
"134.106.36.86"
,
15437
,
"i2b2crcdata"
,
""
,
"AKTIN"
);
System
.
out
.
println
(
"Current patient cache size: "
+
test
.
store
.
size
());
test
.
close
();
}
...
...
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