question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unit testing "Launcher" section needs update for JUnit 5

See original GitHub issue

The “Launcher” section in the README:

https://github.com/etcd-io/jetcd#launcher

seems to be out of date since now an EtcdClusterFactory is used to create an EtcdCluster.

I believe the example snippet should be the following and I would be glad to submit a PR if this all sounds right:

@Rule public final EtcdClusterResource etcd = EtcdClusterFactory.buildCluster("test-etcd", 1, false);
Client client = Client.builder().endpoints(etcd.getClientEndpoints()).build();

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lburgazzolicommented, Aug 24, 2020

Fixed #803

1reaction
dandragutcommented, Aug 24, 2020

@lburgazzoli Finally updated README.md for Junit 5, please see the PR and let me know if needs any other changes (Y)

Read more comments on GitHub >

github_iconTop Results From Across the Web

JUnit 5 User Guide
JUnit 5 requires Java 8 (or higher) at runtime. However, you can still test code that has been compiled with previous versions of...
Read more >
What needs to be updated to make the JUnit5 test successful?
For this assignment, you will be creating unit tests using code to uncover errors for a mobile application. You will develop the contact...
Read more >
A Guide to JUnit 5 - Baeldung
JUnit is one of the most popular unit-testing frameworks in the Java ecosystem. The JUnit 5 version contains a number of exciting ...
Read more >
JUnit 5 Tutorial: Running Unit Tests With Gradle
This blog post describes how we can create a Gradle project that can compile and run unit tests which use JUnit 5.
Read more >
Migrating from JUnit 4 to JUnit 5 | The IntelliJ IDEA Blog
Please note that JUnit 5 requires Java 8 (or higher) at runtime. ... A typical JUnit 4 test contains sections: code to run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found