Skip to content

Commit

Permalink
Merge pull request #177 from mmnaseri/release-v2.1.1
Browse files Browse the repository at this point in the history
Release v2.1.1
  • Loading branch information
mmnaseri authored Oct 30, 2020
2 parents b463d3f + 7482973 commit a34e89a
Show file tree
Hide file tree
Showing 411 changed files with 13,639 additions and 12,129 deletions.
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug, help wanted, needs-verification
assignees: mmnaseri

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
Minimal example to reproduce. This is *very* helpful, as we can just use this as a regression
test and make sure we catch the error exactly as intended, and not as interpreted.

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement, help wanted, needs-verification
assignees: mmnaseri

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [email protected]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
29 changes: 29 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Contributing
------------

Contributors are more than welcome!

Since this project aims to help you in the testing phase of your code, it is paramount that it is
written with the best of qualities and that it maintains the highest standard.

Contributors are more than welcome. In fact, I flag most of the issues I receive as `help wanted` and
there are really generous people out there who do take care of some issues.

If you see a piece of code that you don't like for whatever reason -- so long as that reason can be backed
by pioneers and standards -- feel free to dig in and change the code to your heart's content and create a
pull request.

### Building the Code

To make the code builds universal and canonical, I have a Docker configuration attached to this project
which installs OpenJDK 8 on Ubuntu Xenial. This is the build environment I will be using to test and release
the code.

```bash
docker build -t spring-data-mock:jdk8 .
docker run -it --rm -v $(pwd):/src spring-data-mock:jdk8
```

See the project website at https://mmnaseri.github.io/spring-data-mock for details, explanation, and other stuff.

Contact me for more info, if needed.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

-----------


This is a fairly flexible, versatile framework for mocking Spring Data repositories. Spring Data provides a very good
foundation for separating the concerns of managing a database and its subsequently resulting queries from those of the
business layer.
Expand Down Expand Up @@ -105,8 +104,6 @@ your shiny applications.

- As well it should, it is now adopting all the new method signatures for the new Spring Data, meaning that those
are now automatic breaking changes.
- We have now dropped support for Querydsl repositories until further notice, due to compiler issues with the EJC
dependency used by Querydsl.
- The library now runs on Java 8+, meaning we do not support JDK 7 anymore.

## History
Expand Down
6 changes: 3 additions & 3 deletions spring-data-mock-build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
~ SOFTWARE.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.mmnaseri.utils</groupId>
<artifactId>spring-data-mock-build</artifactId>
<version>2.1.0</version>
<version>2.1.1</version>
<packaging>pom</packaging>

<name>Spring Data Mock: Build Aggregator</name>
Expand Down
11 changes: 6 additions & 5 deletions spring-data-mock-sample-jpa/pom.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.mmnaseri.utils.sample</groupId>
<artifactId>spring-data-mock-sample-jpa</artifactId>
<version>1.0</version>
<version>1.0.0</version>

<name>Spring Data Mock: Samples (JPA)</name>
<description>This module tries to demonstrate how Spring Data Mock could be used to test an application that
is using Spring Data JPA.</description>
is using Spring Data JPA.
</description>
<inceptionYear>2016</inceptionYear>
<licenses>
<license>
Expand All @@ -36,7 +37,7 @@
<spring-data-commons.version>2.2.6.RELEASE</spring-data-commons.version>
<spring-data-jpa.version>2.2.6.RELEASE</spring-data-jpa.version>
<persistence-api.version>1.0.2</persistence-api.version>
<spring-data-mock.version>2.1.0</spring-data-mock.version>
<spring-data-mock.version>2.1.1</spring-data-mock.version>
<testng.version>7.1.0</testng.version>
<hamcrest.version>1.3</hamcrest.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package com.mmnaseri.utils.samples.spring.data.jpa.model;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;

public class Card {

@Id @GeneratedValue private Integer id;

private String blabla;

public Integer getId() {
return id;
}

public Card setId(final Integer id) {
this.id = id;
return this;
}

public String getBlabla() {
return blabla;
}

public Card setBlabla(final String blabla) {
this.blabla = blabla;
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,43 +14,43 @@
@SuppressWarnings("unused")
public class Customer {

@Id
private Long id;
@Temporal(TemporalType.DATE)
private Date birthday;
private String firstName;
private String lastName;
@Id private Long id;

public Long getId() {
return id;
}
@Temporal(TemporalType.DATE)
private Date birthday;

public void setId(Long id) {
this.id = id;
}
private String firstName;
private String lastName;

public Date getBirthday() {
return birthday;
}
public Long getId() {
return id;
}

public void setBirthday(Date birthday) {
this.birthday = birthday;
}
public void setId(Long id) {
this.id = id;
}

public String getFirstName() {
return firstName;
}
public Date getBirthday() {
return birthday;
}

public void setFirstName(String firstName) {
this.firstName = firstName;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}

public String getLastName() {
return lastName;
}
public String getFirstName() {
return firstName;
}

public void setLastName(String lastName) {
this.lastName = lastName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}

public String getLastName() {
return lastName;
}

public void setLastName(String lastName) {
this.lastName = lastName;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,22 @@
@Entity
public class Group {

@Id
private String id;
private String name;
@Id private String id;
private String name;

public String getId() {
return id;
}
public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}
public void setId(String id) {
this.id = id;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}
}
Loading

0 comments on commit a34e89a

Please sign in to comment.