name.jervyshi:nacos-embedded

Nacos-embedded provides easy way to run Nacos in integration tests. Inspired by embedded-consul.

License

License

Categories

Categories

Nacos Container Microservices
GroupId

GroupId

name.jervyshi
ArtifactId

ArtifactId

nacos-embedded
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

name.jervyshi:nacos-embedded
Nacos-embedded provides easy way to run Nacos in integration tests. Inspired by embedded-consul.
Project URL

Project URL

https://github.com/JervyShi/nacos-embedded
Source Code Management

Source Code Management

https://github.com/JervyShi/nacos-embedded

Download nacos-embedded

How to add to project

<!-- https://jarcasting.com/artifacts/name.jervyshi/nacos-embedded/ -->
<dependency>
    <groupId>name.jervyshi</groupId>
    <artifactId>nacos-embedded</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/name.jervyshi/nacos-embedded/
implementation 'name.jervyshi:nacos-embedded:0.2.0'
// https://jarcasting.com/artifacts/name.jervyshi/nacos-embedded/
implementation ("name.jervyshi:nacos-embedded:0.2.0")
'name.jervyshi:nacos-embedded:jar:0.2.0'
<dependency org="name.jervyshi" name="nacos-embedded" rev="0.2.0">
  <artifact name="nacos-embedded" type="jar" />
</dependency>
@Grapes(
@Grab(group='name.jervyshi', module='nacos-embedded', version='0.2.0')
)
libraryDependencies += "name.jervyshi" % "nacos-embedded" % "0.2.0"
[name.jervyshi/nacos-embedded "0.2.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.25
com.alibaba : fastjson jar 1.2.51

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
ch.qos.logback : logback-classic jar 1.2.3

Project Modules

There are no modules declared in this project.

Nacos Embedded

Build Status codecov

Nacos-embedded provides easy way to run Nacos in integration tests. Inspired by embedded-consul.

Compatible with jdk1.8+. Working on all operating systems: Mac, Linux, Windows.

How to get it?

<dependency>
    <groupId>name.jervyshi</groupId>
    <artifactId>nacos-embedded</artifactId>
    <version>0.2.0</version>
    <scope>test</scope>
</dependency>

Usage

Manual

public class IntegrationTest {

    private NacosProcess nacosProcess;

    @Before
    public void setup() {
        nacosProcess = NacosStarterBuilder.nacosStarter().build().start();
    }

    @After
    public void cleanup() throws Exception {
        nacosProcess.close();
    }

    /* tests with nacos client */
}

Versions

Version
0.2.0