-
Notifications
You must be signed in to change notification settings - Fork 26
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
ekoutanov
wants to merge
32
commits into
sta-szek:master
Choose a base branch
from
obsidiandynamics:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
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 9830f8d
Supports JDK11
ekoutanov 86745a9
Dependency updates
ekoutanov 1613b08
Removed ability to write to final fields (due to JDK12 constraints)
ekoutanov 9ae9ff2
SLF4J nop
ekoutanov 237ebd6
Replaced deprecated call
ekoutanov 0d132c5
Release 0.8.0
ekoutanov 4157fd9
Next snapshot
ekoutanov 9198616
Using standard names
ekoutanov 607b66e
Updated badge
ekoutanov f703f3c
Fixed group name
ekoutanov d959d21
Next snapshot
ekoutanov 8747143
Compiled with JDK8 compatibility
ekoutanov 5cd5c53
Next snapshot
ekoutanov f0320c8
Updated artifactId to pojotester
ekoutanov ca7b8d6
Next snapshot
ekoutanov 5a32e6d
Compiling again
ekoutanov dbef9e0
Release 0.9.0
ekoutanov 9e78bde
Next snapshot
ekoutanov 171feb7
Upgraded Gradle -> 7.5 and fixed unit tests
ekoutanov 579069d
Merged integration tests
ekoutanov e9d702e
Added GitHub Actions
ekoutanov 605be32
Added LGTM support
ekoutanov 2f27ca1
Updated test from upstream
ekoutanov 32d26dd
Removed LGTM due to this being a fork
ekoutanov 69e6783
Badges
ekoutanov 3f7af87
Badges
ekoutanov f3ba389
Documentation link
ekoutanov 4eebf63
Updated release notes
ekoutanov 89e2ef5
Updated docs
ekoutanov 4b16838
Fixed anchor
ekoutanov ba50640
Updated docs
ekoutanov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
|
@@ -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 { | ||
|
@@ -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 | ||
|
@@ -125,10 +126,6 @@ pitest { | |
outputFormats = ['XML', 'HTML'] | ||
} | ||
|
||
task wrapper(type: Wrapper) { | ||
gradleVersion = '4.4' | ||
} | ||
|
||
def pomConfig = { | ||
licenses { | ||
license { | ||
|
@@ -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" | ||
} | ||
} | ||
|
||
|
@@ -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 | ||
|
@@ -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' | ||
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 | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert pls :)