@Test public void testConnectionExceptionConnector() { ConnectorType testConnType = new ConnectorType(); testConnType.setQualifiedName("Test.MockConnectionCheckedExceptionConnectorProvider.ConnectorType"); testConnType.setDisplayName("TestException"); testConnType.setConnectorProviderClassName(MockConnectionCheckedExceptionConnectorProvider.class.getName()); Connection testConnection = new Connection(); testConnection.setQualifiedName("Test.Connection"); testConnection.setDisplayName("Test"); testConnection.setConnectorType(testConnType); ConnectorBroker cb = new ConnectorBroker(); try { cb.getConnector(testConnection); } catch (Throwable exc) { assertTrue(exc.getMessage().contains("OCF-PROPERTIES-400-014")); } }
public Connector getConnector(Connection connection) throws ConnectionCheckedException, ConnectorCheckedException { if (connection == null) { return this.getConnector((ConnectionProperties)null); } else if (connection instanceof VirtualConnection) { return this.getConnector(new VirtualConnectionProperties((VirtualConnection)connection)); } else { return this.getConnector(new ConnectionProperties(connection)); } }
ConnectorBroker { public Connector getConnector(Connection connection) throws ConnectionCheckedException, ConnectorCheckedException { if (connection == null) { return this.getConnector((ConnectionProperties)null); } else if (connection instanceof VirtualConnection) { return this.getConnector(new VirtualConnectionProperties((VirtualConnection)connection)); } else { return this.getConnector(new ConnectionProperties(connection)); } } }
ConnectorBroker { public Connector getConnector(Connection connection) throws ConnectionCheckedException, ConnectorCheckedException { if (connection == null) { return this.getConnector((ConnectionProperties)null); } else if (connection instanceof VirtualConnection) { return this.getConnector(new VirtualConnectionProperties((VirtualConnection)connection)); } else { return this.getConnector(new ConnectionProperties(connection)); } } ConnectorBroker();  ConnectorBroker(AuditLog   auditLog); }
ConnectorBroker { public Connector getConnector(Connection connection) throws ConnectionCheckedException, ConnectorCheckedException { if (connection == null) { return this.getConnector((ConnectionProperties)null); } else if (connection instanceof VirtualConnection) { return this.getConnector(new VirtualConnectionProperties((VirtualConnection)connection)); } else { return this.getConnector(new ConnectionProperties(connection)); } } ConnectorBroker();  ConnectorBroker(AuditLog   auditLog); void validateConnection(Connection    connection); void validateConnection(ConnectionProperties    connection); Connector getConnector(Connection connection); Connector getConnector(ConnectionProperties connection); int hashCode(); @Override boolean equals(Object object); @Override String toString(); }
ConnectorBroker { public Connector getConnector(Connection connection) throws ConnectionCheckedException, ConnectorCheckedException { if (connection == null) { return this.getConnector((ConnectionProperties)null); } else if (connection instanceof VirtualConnection) { return this.getConnector(new VirtualConnectionProperties((VirtualConnection)connection)); } else { return this.getConnector(new ConnectionProperties(connection)); } } ConnectorBroker();  ConnectorBroker(AuditLog   auditLog); void validateConnection(Connection    connection); void validateConnection(ConnectionProperties    connection); Connector getConnector(Connection connection); Connector getConnector(ConnectionProperties connection); int hashCode(); @Override boolean equals(Object object); @Override String toString();  }