File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change
1
+ user =OKafka
2
+ password =Welcome_123#
Original file line number Diff line number Diff line change @@ -13,14 +13,12 @@ public static Properties setup(){
13
13
final Properties BaseProperties = new Properties ();
14
14
InputStream input ;
15
15
try {
16
- input = new FileInputStream ("config.properties " );
16
+ input = new FileInputStream ("src/test/java/test.config " );
17
17
BaseProperties .load (input );
18
18
} catch (Exception e ) {
19
19
System .out .println ("Exception whlie loading config.properties file. " + e );
20
20
e .printStackTrace ();
21
21
}
22
22
return BaseProperties ;
23
23
}
24
-
25
-
26
24
}
Original file line number Diff line number Diff line change 1
1
package org .oracle .okafka .tests ;
2
- import java .util .Scanner ;
3
2
4
3
import org .junit .runner .JUnitCore ;
5
4
import org .junit .runner .Result ;
@@ -20,7 +19,6 @@ public static void main(String[] args) {
20
19
System .out .println ("Test failure : " + failure .toString ());
21
20
}
22
21
System .out .println ("Tests ran succesfully: " + result .wasSuccessful ());
23
-
24
22
}
25
23
}
26
24
Original file line number Diff line number Diff line change
1
+ #OKafka common properties for common examples
2
+
3
+ #Properties to connect to Oracle Database
4
+ #Option 1: Connect to Oracle database using plaintext
5
+
6
+ security.protocol=PLAINTEXT
7
+ bootstrap.servers=localhost:1521
8
+ oracle.service.name=FREEPDB1
9
+ oracle.net.tns_admin=./src/test/java
10
+
11
+ #Option 2: Connect to Oracle Database deployed in Oracle Autonomous Cloud using Wallet
12
+ #security.protocol=SSL
13
+ #oracle.net.tns_admin=<location of Oracle Wallet, tnanames.ora and ojdbc.properties file>
14
+ #tns.alias=<tns alias>
You can’t perform that action at this time.
0 commit comments