toString verifier

A tool to let you write unit test for the toString method. This can be especially usefull if you use the lombok plugin.

Лицензия

Лицензия

Категории

Категории

Java Языки программирования
Группа

Группа

be.joengenduvel.java.verifiers
Идентификатор

Идентификатор

to-string
Последняя версия

Последняя версия

1.0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

toString verifier
A tool to let you write unit test for the toString method. This can be especially usefull if you use the lombok plugin.
Ссылка на сайт

Ссылка на сайт

https://github.com/Joengenduvel/toStringVerifier
Система контроля версий

Система контроля версий

https://github.com/Joengenduvel/toStringVerifier

Скачать to-string

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/be.joengenduvel.java.verifiers/to-string/ -->
<dependency>
    <groupId>be.joengenduvel.java.verifiers</groupId>
    <artifactId>to-string</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/be.joengenduvel.java.verifiers/to-string/
implementation 'be.joengenduvel.java.verifiers:to-string:1.0.2'
// https://jarcasting.com/artifacts/be.joengenduvel.java.verifiers/to-string/
implementation ("be.joengenduvel.java.verifiers:to-string:1.0.2")
'be.joengenduvel.java.verifiers:to-string:jar:1.0.2'
<dependency org="be.joengenduvel.java.verifiers" name="to-string" rev="1.0.2">
  <artifact name="to-string" type="jar" />
</dependency>
@Grapes(
@Grab(group='be.joengenduvel.java.verifiers', module='to-string', version='1.0.2')
)
libraryDependencies += "be.joengenduvel.java.verifiers" % "to-string" % "1.0.2"
[be.joengenduvel.java.verifiers/to-string "1.0.2"]

Зависимости

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11
org.hamcrest : hamcrest-all jar 1.3

Модули Проекта

Данный проект не имеет модулей.

Build Status

toStringVerifier

Verifies (unit tests) the toString method generated by Lombok.

    @Test
    public void shouldImplementToString(){
        SomeObject sut = SomeObject.builder().build();
        ToStringVerifier.forClass(SomeObject.class).containsAllPrivateFields(sut);
    }

Can be integrated via maven

<dependency>
    <groupId>be.joengenduvel.java.verifiers</groupId>
    <artifactId>to-string</artifactId>
    <version>1.0.2</version>
    <scope>test</scope>
</dependency>

Версии библиотеки

Версия
1.0.2