[ https://issues.apache.org/jira/browse/SOLR-8184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15089323#comment-15089323 ]
Kevin Risden edited comment on SOLR-8184 at 1/8/16 3:15 PM: ------------------------------------------------------------ What is this testing for exactly? It looks like the connection string will be valid? A SQLException will be thrown because it can't connect to the cluster though. {code} + @Test(expected = SQLException.class) + public void testConnectionStringJumbled() throws Exception { + final String sampleZkHost="zoo1:9983/foo"; + DriverManager.getConnection("solr:jdbc://" + sampleZkHost + "?collection=collection1", new Properties()); + } {code} was (Author: risdenk): What is this testing for exactly? It looks like the connection string will be valid? A SQLException will be thrown because it can't connect to the cluster though. {quote} + \@Test(expected = SQLException.class) + public void testConnectionStringJumbled() throws Exception \{ + final String sampleZkHost="zoo1:9983/foo"; + DriverManager.getConnection("solr:jdbc://" + sampleZkHost + "?collection=collection1", new Properties()); + } {quote} > Negative tests for JDBC Connection String > ----------------------------------------- > > Key: SOLR-8184 > URL: https://issues.apache.org/jira/browse/SOLR-8184 > Project: Solr > Issue Type: Test > Environment: Trunk > Reporter: Susheel Kumar > Priority: Minor > Attachments: SOLR-8184.patch, SOLR-8184.patch, SOLR-8184.patch > > > Ticket to track negative tests for JDBC connection string SOLR-7986 -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org