java-common-test

Java 8 Common Utilities

License

License

Categories

Categories

Java Languages Protobuf Data Data Structures
GroupId

GroupId

com.github.protobufel
ArtifactId

ArtifactId

java-common-test
Last Version

Last Version

0.1.7
Release Date

Release Date

Type

Type

jar
Description

Description

java-common-test
Java 8 Common Utilities
Project URL

Project URL

https://github.com/protobufel/java-common-test
Source Code Management

Source Code Management

https://github.com/protobufel/java-common-test

Download java-common-test

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.protobufel/java-common-test/ -->
<dependency>
    <groupId>com.github.protobufel</groupId>
    <artifactId>java-common-test</artifactId>
    <version>0.1.7</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.protobufel/java-common-test/
implementation 'com.github.protobufel:java-common-test:0.1.7'
// https://jarcasting.com/artifacts/com.github.protobufel/java-common-test/
implementation ("com.github.protobufel:java-common-test:0.1.7")
'com.github.protobufel:java-common-test:jar:0.1.7'
<dependency org="com.github.protobufel" name="java-common-test" rev="0.1.7">
  <artifact name="java-common-test" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.protobufel', module='java-common-test', version='0.1.7')
)
libraryDependencies += "com.github.protobufel" % "java-common-test" % "0.1.7"
[com.github.protobufel/java-common-test "0.1.7"]

Dependencies

runtime (2)

Group / Artifact Type Version
org.assertj : assertj-core jar 3.8.0
junit : junit jar 4.12

test (3)

Group / Artifact Type Version
com.google.guava : guava jar 22.0
com.google.guava : guava-testlib jar 22.0
pl.pragmatists : JUnitParams jar 1.1.0

Project Modules

There are no modules declared in this project.

Travis branch codecov Maven Central

Common Java 8 Test Utilities

 // This package provides some common AssertJ assertions and other test utilities.

 import static com.github.protobufel.test.common.misc.CommonAssertions.assertThatType;
 import com.github.protobufel.test.common.misc.CommonJUnitSoftAssertions;

 class MyTest {
     
 //...
 
     @Test
     public void testUtilityClass() {
        assertThatType(MyUtilityClass.class).isUtilityClass();
     }
     
     @Test
     public void testSomethingElse() {
        assertThatType(MyNonUtilityClass.class).isNotUtilityClass();
     }
     
// or use soft assertions:
    @Rule
    public final CommonJunitSoftAssertions softly = new CommonJunitSoftAssertions();

     
     @Test
     public void testUtilityClassSoftly() {
        softly.assertThatType(MyUtilityClass.class).isUtilityClass();
        softly.assertThat(true).isTrue();
     }
          
 //...
 }
For more see the JavaDoc Documentation.

Happy coding,

David Tesler

Versions

Version
0.1.7
0.1.6
0.1.5
0.1.0