On Thu, 19 Nov 2020, Onyeka Nwamba wrote:
> I'm using the experimental @UtilityClass annotation
Oh, cool, this is new but highly appreciated.
>, how do you test the auto-generated code?
──────────────────────────────────────────────────────────────────
<project xmlns="
http://maven.apache.org/POM/4.0.0" …
[…]
<properties>
<trajano.version>2.1.0</trajano.version>
</properties>
[…]
<dependencies>
<dependency>
<groupId>net.trajano.commons</groupId>
<artifactId>commons-testing</artifactId>
<version>${trajano.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
[…]
──────────────────────────────────────────────────────────────────
package foo;
import org.junit.jupiter.api.Test;
import static net.trajano.commons.testing.UtilityClassTestUtil.assertUtilityClassWellDefined;
class FooTest {
@Test
public void testUtilityClass() throws ReflectiveOperationException {
assertUtilityClassWellDefined(Foo.class);
}
}
──────────────────────────────────────────────────────────────────
You’re welcome,
//mirabilos
--
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn •
http://www.tarent.de/
Tel:
+49 228 54881-393 • Fax:
+49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
*************************************************
Mit unserem Consulting bieten wir Unternehmen maßgeschneiderte Angebote in
Form von Beratung, Trainings sowie Workshops in den Bereichen
Softwaretechnologie, IT Strategie und Architektur, Innovation und Umsetzung
sowie Agile Organisation.
Besuchen Sie uns auf
https://www.tarent.de/consulting .
Wir freuen uns auf Ihren Kontakt.
*************************************************