Skip to content

Enhance interface LocalServiceExposer and simplify usage #53

@ckunki

Description

@ckunki

Add convenience method to interface LocalServiceExposer

  public static LocalServiceExposer withoutPortMapping(final String host) {
    return port ->  new InetSocketAddress(host, port);
  }

Method forRemoteHost() can then be used in the following classes in project udf-debugging-java:

  • TestSetup
  • Constructors of UdfTestSetup

Change constructor of UdfTestSetup

Furthermore the constructor of UdfTestSetup can be simplified into

public UdfTestSetup(final ExasolTestSetup testSetup, final Connection exasolConnection) {
    return new UdfTestSetup(testSetup::makeLocalTcpServiceAccessibleFromDatabase,
        testSetup.getDefaultBucket(), exasolConnection);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactoringCode improvement without behavior change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions