File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
main/java/org/postgresql/util
test/java/org/postgresql/test/util Expand file tree Collapse file tree 2 files changed +5
-2
lines changed 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