@Test public void testToString() { final SystemSchema schema = newSchema(); final Connector connector = createConnector( schema ); assertEquals( connector.toString(), "Connector[" + schema.getName() + "]" ); ReplicantTestUtil.disableNames(); assertEquals( connector.toString(), "replicant.Arez_Connector@" + Integer.toHexString( connector.hashCode() ) ); }
@Override public String toString() { return Replicant.areNamesEnabled() ? "Connector[" + getSchema().getName() + "]" : super.toString(); }
Connector extends ReplicantService { @Override public String toString() { return Replicant.areNamesEnabled() ? "Connector[" + getSchema().getName() + "]" : super.toString(); } }
Connector extends ReplicantService { @Override public String toString() { return Replicant.areNamesEnabled() ? "Connector[" + getSchema().getName() + "]" : super.toString(); } Connector( @Nullable final ReplicantContext context,
             @Nonnull final SystemSchema schema,
             @Nonnull final Transport transport ); }
Connector extends ReplicantService { @Override public String toString() { return Replicant.areNamesEnabled() ? "Connector[" + getSchema().getName() + "]" : super.toString(); } Connector( @Nullable final ReplicantContext context,
             @Nonnull final SystemSchema schema,
             @Nonnull final Transport transport ); @Override String toString(); }
Connector extends ReplicantService { @Override public String toString() { return Replicant.areNamesEnabled() ? "Connector[" + getSchema().getName() + "]" : super.toString(); } Connector( @Nullable final ReplicantContext context,
             @Nonnull final SystemSchema schema,
             @Nonnull final Transport transport ); @Override String toString();  }