Skip to content

EDSL ideas#1

Open
michaeldeluna wants to merge 2 commits into
3redronin:masterfrom
michaeldeluna:master
Open

EDSL ideas#1
michaeldeluna wants to merge 2 commits into
3redronin:masterfrom
michaeldeluna:master

Conversation

@michaeldeluna

Copy link
Copy Markdown
Contributor

Whacked the import list by mistake ... feel free to ignore that bit

@michaeldeluna

Copy link
Copy Markdown
Contributor Author

make-it-easy is probably has a definitive answer in it - suspect all things are builders and they get built just before the outer-most build() instance is required

@Test void hitTheSample() throws IOException, KeyManagementException, NoSuchAlgorithmException {
ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.PARANOID);

server = App.mu_server_builder.start();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discovered a port clash here when I left the main() one running - which led me to the builder rabbit hole

public class App {
public static final Logger log = LoggerFactory.getLogger(App.class);

public static final MuServerBuilder mu_server_builder = MuServerBuilder.muServer()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved out as a field so that the prototypical server was accessible from test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant