Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The toString() check now supports array fields #227

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
14eaa2a
The toString() check now supports array fields
ekoutanov Jul 12, 2018
9830f8d
Supports JDK11
ekoutanov Mar 12, 2019
86745a9
Dependency updates
ekoutanov Mar 12, 2019
1613b08
Removed ability to write to final fields (due to JDK12 constraints)
ekoutanov Mar 12, 2019
9ae9ff2
SLF4J nop
ekoutanov Mar 12, 2019
237ebd6
Replaced deprecated call
ekoutanov Mar 12, 2019
0d132c5
Release 0.8.0
ekoutanov Mar 12, 2019
4157fd9
Next snapshot
ekoutanov Mar 12, 2019
9198616
Using standard names
ekoutanov Mar 12, 2019
607b66e
Updated badge
ekoutanov Mar 12, 2019
f703f3c
Fixed group name
ekoutanov Mar 12, 2019
d959d21
Next snapshot
ekoutanov Mar 12, 2019
8747143
Compiled with JDK8 compatibility
ekoutanov Mar 12, 2019
5cd5c53
Next snapshot
ekoutanov Mar 12, 2019
f0320c8
Updated artifactId to pojotester
ekoutanov Mar 13, 2019
ca7b8d6
Next snapshot
ekoutanov Mar 13, 2019
5a32e6d
Compiling again
ekoutanov Jul 18, 2022
dbef9e0
Release 0.9.0
ekoutanov Jul 18, 2022
9e78bde
Next snapshot
ekoutanov Jul 18, 2022
171feb7
Upgraded Gradle -> 7.5 and fixed unit tests
ekoutanov Jul 25, 2022
579069d
Merged integration tests
ekoutanov Jul 25, 2022
e9d702e
Added GitHub Actions
ekoutanov Jul 25, 2022
605be32
Added LGTM support
ekoutanov Jul 25, 2022
2f27ca1
Updated test from upstream
ekoutanov Jul 25, 2022
32d26dd
Removed LGTM due to this being a fork
ekoutanov Jul 25, 2022
69e6783
Badges
ekoutanov Jul 25, 2022
3f7af87
Badges
ekoutanov Jul 25, 2022
f3ba389
Documentation link
ekoutanov Jul 25, 2022
4eebf63
Updated release notes
ekoutanov Jul 25, 2022
89e2ef5
Updated docs
ekoutanov Jul 26, 2022
4b16838
Fixed anchor
ekoutanov Jul 26, 2022
ba50640
Updated docs
ekoutanov Jul 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ docs/gitbook/gitbook-plugin-livereload/
src/book/javadoc

!.idea/codeStyleSettings.xml
out
out
.java-version
lombok.config
.DS_Store
19 changes: 0 additions & 19 deletions .idea/codeStyleSettings.xml

This file was deleted.

File renamed without changes.
18 changes: 0 additions & 18 deletions README.MD

This file was deleted.

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Java framework for testing POJOs
===
[![Download](https://api.bintray.com/packages/obsidiandynamics/pojo-tester/pojo-tester/images/download.svg) ](https://bintray.com/obsidiandynamics/pojo-tester/pojo-tester/_latestVersion)

`POJO-TESTER` is a Java testing library, which makes your `pojo-tests` much easier. You can test your `pojo` against `equals`, `hashCode`, `toString`, `getters`, `setters` and `constructors`.

Get more information at the [pojo-tester documentation site](http://pojo.pl)
82 changes: 40 additions & 42 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,26 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("org.junit.platform:junit-platform-gradle-plugin:1.0.2")
classpath("org.junit.platform:junit-platform-gradle-plugin:1.2.0")
}
}

plugins {
id 'com.gradle.build-scan' version '1.11'
id "com.jfrog.bintray" version "1.8.0"
id "org.sonarqube" version "2.6.1"
id 'org.unbroken-dome.test-sets' version '1.4.2'
id "info.solidsoft.pitest" version "1.2.4"
id 'com.gradle.build-scan' version '2.2.1'
id "com.jfrog.bintray" version "1.8.4"
id "org.sonarqube" version "2.7"
id 'org.unbroken-dome.test-sets' version '2.1.1'
id "info.solidsoft.pitest" version "1.4.0"
id "io.freefair.lombok" version "3.1.4"
}

ext {
JUNIT_JUPITER_VERSION = "5.0.2"
JUNIT_PLATFORM_VERSION = "1.0.2"
MOCKITO_VERSION = "2.12.0"
JUNIT_JUPITER_VERSION = "5.4.0"
JUNIT_PLATFORM_VERSION = "1.4.0"
MOCKITO_VERSION = "2.25.0"
POWER_MOCK_UTILS_VERSION = "1.6.6"
ASSERTJ_CORE_VERSION = "3.8.0"
JACOCO_VERSION = "0.7.9"
ASSERTJ_CORE_VERSION = "3.11.1"
JACOCO_VERSION = "0.8.3"
}

apply plugin: 'java'
Expand All @@ -34,10 +35,11 @@ apply plugin: 'jacoco'
apply plugin: 'org.junit.platform.gradle.plugin'
apply plugin: 'maven-publish'

sourceCompatibility = 1.8
targetCompatibility = 1.8

buildScan {
licenseAgreementUrl = 'https://gradle.com/terms-of-service'
licenseAgree = 'yes'
publishAlways()
//publishAlways()
}

repositories {
Expand Down Expand Up @@ -82,24 +84,23 @@ junitPlatform {
}

dependencies {
compile("org.slf4j:slf4j-api:1.7.25")
compile("org.apache.commons:commons-lang3:3.7")
compile("org.apache.commons:commons-collections4:4.1")
compile("org.slf4j:slf4j-api:1.7.26")
compile("org.apache.commons:commons-lang3:3.8.1")
compile("org.apache.commons:commons-collections4:4.3")
compile("com.googlecode.combinatoricslib:combinatoricslib:2.1")
compile("org.javassist:javassist:3.22.0-GA")
compile("org.javassist:javassist:3.24.1-GA")

testCompile("org.projectlombok:lombok:1.16.18")
testCompile("org.junit.jupiter:junit-jupiter-api:${JUNIT_JUPITER_VERSION}") { changing = true }
testRuntime("org.junit.jupiter:junit-jupiter-engine:${JUNIT_JUPITER_VERSION}") { changing = true }
testCompile("org.junit.platform:junit-platform-runner:${JUNIT_PLATFORM_VERSION}") { changing = true }
testCompile("org.assertj:assertj-core:${ASSERTJ_CORE_VERSION}")
testCompile("org.mockito:mockito-core:${MOCKITO_VERSION}")
testCompile("org.powermock.tests:powermock-tests-utils:${POWER_MOCK_UTILS_VERSION}")
testCompileOnly("org.apiguardian:apiguardian-api:1.0.0")
testRuntime("org.junit.jupiter:junit-jupiter-engine:${JUNIT_JUPITER_VERSION}") { changing = true }
testRuntime("org.slf4j:slf4j-nop:1.7.26")
}

afterEvaluate {

jacoco {
toolVersion JACOCO_VERSION
applyTo junitPlatformTest
Expand All @@ -125,10 +126,6 @@ pitest {
outputFormats = ['XML', 'HTML']
}

task wrapper(type: Wrapper) {
gradleVersion = '4.4'
}

def pomConfig = {
licenses {
license {
Expand All @@ -138,16 +135,16 @@ def pomConfig = {
}
developers {
developer {
id "sta-szek"
name "Piotr Joński"
email "[email protected]"
id "ekoutanov"
name "Emil Koutanov"
email "[email protected]"
}
}

scm {
url "https://github.com/sta-szek/pojo-tester"
connection "scm:git:git://github.com:sta-szek/pojo-tester.git"
developerConnection "scm:git:ssh://github.com:sta-szek/pojo-tester.git"
url "https://github.com/obsidiandynamics/pojo-tester"
connection "scm:git:git://github.com:obsidiandynamics/pojo-tester.git"
developerConnection "scm:git:ssh://github.com:obsidiandynamics/pojo-tester.git"
}
}

Expand All @@ -168,8 +165,8 @@ artifacts {
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'pl.pojo'
artifactId 'pojo-tester'
groupId 'com.obsidiandynamics.pojotester'
artifactId 'pojotester'
version rootProject.version
from components.java
artifact sourcesJar
Expand All @@ -196,22 +193,23 @@ publishing.publications.all {
}

bintray {
user = 'sta-szek'
key = System.getenv('BINTRAY_API_KEY')
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publish = true
pkg {
repo = 'maven'
repo = 'pojo-tester'
name = 'pojo-tester'
desc = 'Java pojo-methods testing library.'
websiteUrl = 'http://www.pojo.pl'
issueTrackerUrl = 'https://github.com/sta-szek/pojo-tester/issues'
vcsUrl = 'https://github.com/sta-szek/pojo-tester.git'
userOrg = "obsidiandynamics"
desc = 'POJO testing library'
websiteUrl = 'https://github.com/obsidiandynamics/pojo-tester'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert pls :)

issueTrackerUrl = 'https://github.com/obsidiandynamics/pojo-tester/issues'
vcsUrl = 'https://github.com/obsidiandynamics/pojo-tester.git'
licenses = ['LGPL-3.0']
publications = ['mavenJava']
version {
name = rootProject.version
desc = 'Java pojo-methods testing library.'
released = new Date();
desc = 'POJO testing library'
released = new Date()
vcsTag = rootProject.version
}
}
Expand Down
7 changes: 3 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
group=pl.pojo
artifact=pojo-tester
version=0.8.0-SNAPSHOT
sourceCompatibility=1.8
group=com.obsidiandynamics.pojotester
artifact=pojotester
version=0.10.0-SNAPSHOT
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Sun Dec 17 10:43:20 CET 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
8 changes: 4 additions & 4 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
DEFAULT_JVM_OPTS='"-Xmx64m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"

warn ( ) {
warn () {
echo "$*"
}

die ( ) {
die () {
echo
echo "$*"
echo
Expand Down Expand Up @@ -155,7 +155,7 @@ if $cygwin ; then
fi

# Escape application args
save ( ) {
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
Expand Down
Loading