@Test public void getConnector() { final SystemSchema schema1 = newSchema(); final SystemSchema schema2 = newSchema(); final SystemSchema schema3 = newSchema(); final ReplicantRuntime runtime = Replicant.context().getRuntime(); final Connector service1 = createConnector( schema1 ); final Connector service2 = createConnector( schema2 ); assertEquals( runtime.getConnector( service1.getSchema().getId() ), service1 ); assertEquals( runtime.getConnector( service2.getSchema().getId() ), service2 ); assertThrows( IllegalStateException.class, () -> runtime.getConnector( schema3.getId() ) ); }
@Nonnull Connector getConnector( final int schemaId ) { return getConnectorEntryBySchemaId( schemaId ).getConnector(); }
ReplicantRuntime { @Nonnull Connector getConnector( final int schemaId ) { return getConnectorEntryBySchemaId( schemaId ).getConnector(); } }
ReplicantRuntime { @Nonnull Connector getConnector( final int schemaId ) { return getConnectorEntryBySchemaId( schemaId ).getConnector(); }  }
ReplicantRuntime { @Nonnull Connector getConnector( final int schemaId ) { return getConnectorEntryBySchemaId( schemaId ).getConnector(); }  @Action( verifyRequired = false, reportParameters = false ) void setAuthToken( @Nullable final String authToken ); }
ReplicantRuntime { @Nonnull Connector getConnector( final int schemaId ) { return getConnectorEntryBySchemaId( schemaId ).getConnector(); }  @Action( verifyRequired = false, reportParameters = false ) void setAuthToken( @Nullable final String authToken );  }