File tree Expand file tree Collapse file tree
main/java/org/postgresql/util
test/java/org/postgresql/test/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7373 java-version : ${{ matrix.jdk }}
7474 - name : Prepare ssltest.local.properties
7575 run : echo enable_ssl_tests=true > ssltest.local.properties
76+ - name : Get Docker logs
77+ working-directory : docker
78+ run : docker-compose logs
7679 - uses : burrunan/gradle-cache-action@v1
7780 name : Test
7881 env :
Original file line number Diff line number Diff line change @@ -77,6 +77,6 @@ host all postgres 127.0.0.1/32 trust
7777host test all 127.0.0.1/32 md5
7878host hostdb all 127.0.0.1/32 md5
7979hostnossl hostnossldb all 127.0.0.1/32 md5
80- hostssl hostssldb all 127.0.0.1/32 md5 clientcert=0
81- hostssl hostsslcertdb all 127.0.0.1/32 md5 clientcert=1
80+ hostssl hostssldb all 127.0.0.1/32 md5
81+ hostssl hostsslcertdb all 127.0.0.1/32 md5 clientcert=verify-full
8282hostssl certdb all 127.0.0.1/32 cert
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ services:
33 pgdb :
44 image : postgres:${PGV:-latest}
55 ports :
6- - 5432:5432
6+ - 127.0.0.1: 5432:5432
77 security_opt :
88 - seccomp:unconfined
99 volumes :
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ public class ObjectFactory {
2323 * single String argument is searched if it fails, or tryString is true a no argument constructor
2424 * is tried.
2525 *
26+ * @param <T> type of expected class
27+ * @param expectedClass expected class of type T, if the classname instantiated doesn't match
28+ * the expected type of this class this method will fail
2629 * @param classname name of the class to instantiate
2730 * @param info parameter to pass as Properties
2831 * @param tryString whether to look for a single String argument constructor
Original file line number Diff line number Diff line change 55
66package org .postgresql .test .util ;
77
8- import static org .junit .jupiter .api .Assertions .assertThrows ;
98import static org .junit .jupiter .api .Assertions .assertEquals ;
109import static org .junit .jupiter .api .Assertions .assertFalse ;
10+ import static org .junit .jupiter .api .Assertions .assertThrows ;
1111
1212import org .postgresql .PGProperty ;
1313import org .postgresql .jdbc .SslMode ;
1414import org .postgresql .test .TestUtil ;
1515import org .postgresql .util .ObjectFactory ;
1616import org .postgresql .util .PSQLState ;
1717
18- import org .junit .jupiter .api .Test ;
1918import org .junit .jupiter .api .Assertions ;
19+ import org .junit .jupiter .api .Test ;
2020import org .opentest4j .MultipleFailuresError ;
2121
2222import java .sql .SQLException ;
You can’t perform that action at this time.
0 commit comments