-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for verifying equals and hashCode method + add threadsafe a…
…nnotations
- Loading branch information
1 parent
93af58b
commit 8c21719
Showing
23 changed files
with
149 additions
and
21 deletions.
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 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
4 changes: 3 additions & 1 deletion
4
src/main/java/io/github/aplotnikov/batch/processing/reactor/EventProcessor.java
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 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 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 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
4 changes: 3 additions & 1 deletion
4
src/main/java/io/github/aplotnikov/batch/processing/reactor/entities/Response.java
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 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 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 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 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 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 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
2 changes: 2 additions & 0 deletions
2
...in/java/io/github/aplotnikov/batch/processing/reactor/readers/XmlFileReaderDecorator.java
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 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 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
13 changes: 13 additions & 0 deletions
13
src/test/groovy/io/github/aplotnikov/batch/processing/reactor/entities/ClientSpec.groovy
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,13 @@ | ||
package io.github.aplotnikov.batch.processing.reactor.entities | ||
|
||
import nl.jqno.equalsverifier.EqualsVerifier | ||
import spock.lang.Specification | ||
|
||
class ClientSpec extends Specification { | ||
void 'equals and hashcode contract should be followed'() { | ||
expect: | ||
EqualsVerifier.forClass(Client) | ||
.usingGetClass() | ||
.verify() | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/test/groovy/io/github/aplotnikov/batch/processing/reactor/entities/ResponseSpec.groovy
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,13 @@ | ||
package io.github.aplotnikov.batch.processing.reactor.entities | ||
|
||
import nl.jqno.equalsverifier.EqualsVerifier | ||
import spock.lang.Specification | ||
|
||
class ResponseSpec extends Specification { | ||
void 'equals and hashcode contract should be followed'() { | ||
expect: | ||
EqualsVerifier.forClass(Response) | ||
.usingGetClass() | ||
.verify() | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/test/groovy/io/github/aplotnikov/batch/processing/reactor/events/ClientParsedSpec.groovy
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,14 @@ | ||
package io.github.aplotnikov.batch.processing.reactor.events | ||
|
||
import nl.jqno.equalsverifier.EqualsVerifier | ||
import spock.lang.Specification | ||
|
||
class ClientParsedSpec extends Specification { | ||
void 'equals and hashcode contract should be followed'() { | ||
expect: | ||
EqualsVerifier.forClass(ClientParsed) | ||
.usingGetClass() | ||
.withRedefinedSuperclass() | ||
.verify() | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...st/groovy/io/github/aplotnikov/batch/processing/reactor/events/ClientProcessedSpec.groovy
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,14 @@ | ||
package io.github.aplotnikov.batch.processing.reactor.events | ||
|
||
import nl.jqno.equalsverifier.EqualsVerifier | ||
import spock.lang.Specification | ||
|
||
class ClientProcessedSpec extends Specification { | ||
void 'equals and hashcode contract should be followed'() { | ||
expect: | ||
EqualsVerifier.forClass(ClientProcessed) | ||
.usingGetClass() | ||
.withRedefinedSuperclass() | ||
.verify() | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...test/groovy/io/github/aplotnikov/batch/processing/reactor/events/FileProcessedSpec.groovy
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,14 @@ | ||
package io.github.aplotnikov.batch.processing.reactor.events | ||
|
||
import nl.jqno.equalsverifier.EqualsVerifier | ||
import spock.lang.Specification | ||
|
||
class FileProcessedSpec extends Specification { | ||
void 'equals and hashcode contract should be followed'() { | ||
expect: | ||
EqualsVerifier.forClass(FileProcessed) | ||
.usingGetClass() | ||
.withRedefinedSuperclass() | ||
.verify() | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ovy/io/github/aplotnikov/batch/processing/reactor/events/FileProcessingStartedSpec.groovy
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,14 @@ | ||
package io.github.aplotnikov.batch.processing.reactor.events | ||
|
||
import nl.jqno.equalsverifier.EqualsVerifier | ||
import spock.lang.Specification | ||
|
||
class FileProcessingStartedSpec extends Specification { | ||
void 'equals and hashcode contract should be followed'() { | ||
expect: | ||
EqualsVerifier.forClass(FileProcessingStarted) | ||
.usingGetClass() | ||
.withRedefinedSuperclass() | ||
.verify() | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/test/groovy/io/github/aplotnikov/batch/processing/reactor/events/FileReceivedSpec.groovy
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,14 @@ | ||
package io.github.aplotnikov.batch.processing.reactor.events | ||
|
||
import nl.jqno.equalsverifier.EqualsVerifier | ||
import spock.lang.Specification | ||
|
||
class FileReceivedSpec extends Specification { | ||
void 'equals and hashcode contract should be followed'() { | ||
expect: | ||
EqualsVerifier.forClass(FileReceived) | ||
.usingGetClass() | ||
.withRedefinedSuperclass() | ||
.verify() | ||
} | ||
} |