Skip to content

Commit a697c42

Browse files
committed
Change package name
1 parent e7c3aaa commit a697c42

20 files changed

+124
-36
lines changed

.idea/compiler.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The assertion will work seamlessly whether you're testing Spring repositories or
3131

3232
If the actual count is different, an exception is thrown with the executed statements:
3333

34-
com.lemick.assertions.HibernateStatementCountException:
34+
com.mickaelb.assertions.HibernateStatementCountException:
3535
Expected 5 INSERT but got 6:
3636
=> '/* insert com.lemick.demo.entity.BlogPost */ insert into blog_post (id, title) values (default, ?)'
3737
=> '/* insert com.lemick.demo.entity.PostComment */ insert into post_comment (id, blog_post_id, content) values (default, ?, ?)'
@@ -46,7 +46,7 @@ The assertion will work seamlessly whether you're testing Spring repositories or
4646
spring:
4747
jpa:
4848
properties:
49-
hibernate.session_factory.statement_inspector: com.lemick.integration.hibernate.HibernateStatementCountInspector
49+
hibernate.session_factory.statement_inspector: com.mickaelb.integration.hibernate.HibernateStatementCountInspector
5050

5151
2. Register the Spring TestListener that will launch the SQL inspection if the annotation is present:
5252

@@ -63,4 +63,5 @@ The assertion will work seamlessly whether you're testing Spring repositories or
6363

6464
* **OR** by adding a **META-INF/spring.factories** file that contains the definition, that will register the listener for all your tests:
6565

66-
org.springframework.test.context.TestExecutionListener=com.lemick.integration.spring.HibernateStatementCountTestListener
66+
org.springframework.test.context.TestExecutionListener=com.mickaelb.integration.spring.HibernateStatementCountTestListener
67+

pom.xml

Lines changed: 90 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,45 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>com.lemick</groupId>
8-
<artifactId>hibernate-spring-test-sql-count</artifactId>
9-
<version>1.0.0</version>
7+
<groupId>com.mickaelb</groupId>
8+
<artifactId>hibernate-query-asserts</artifactId>
9+
<version>1.0.0-SNAPSHOT</version>
10+
11+
<name>${project.groupId}:${project.artifactId}</name>
12+
<description>A library that can assert SQL statement count generated by Hibernate in Spring tests</description>
13+
<url>https://github.com/Lemick/hibernate-query-asserts</url>
14+
15+
<licenses>
16+
<license>
17+
<name>The Apache License, Version 2.0</name>
18+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
19+
</license>
20+
</licenses>
21+
22+
<developers>
23+
<developer>
24+
<name>Mickaël Beguin</name>
25+
<email>[email protected]</email>
26+
<organizationUrl>https://mickaelb.com</organizationUrl>
27+
</developer>
28+
</developers>
29+
30+
<scm>
31+
<connection>scm:git:git://github.com/lemick/hibernate-query-asserts.git</connection>
32+
<developerConnection>scm:git:ssh://github.com:lemick/hibernate-query-asserts.git</developerConnection>
33+
<url>https://github.com/lemick/hibernate-query-asserts/tree/master</url>
34+
</scm>
35+
36+
<distributionManagement>
37+
<snapshotRepository>
38+
<id>ossrh</id>
39+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
40+
</snapshotRepository>
41+
<repository>
42+
<id>ossrh</id>
43+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
44+
</repository>
45+
</distributionManagement>
1046

1147
<properties>
1248
<maven.compiler.source>11</maven.compiler.source>
@@ -52,11 +88,62 @@
5288

5389
<build>
5490
<plugins>
91+
<plugin>
92+
<groupId>org.apache.maven.plugins</groupId>
93+
<artifactId>maven-source-plugin</artifactId>
94+
<version>3.2.1</version>
95+
<executions>
96+
<execution>
97+
<id>attach-sources</id>
98+
<goals>
99+
<goal>jar-no-fork</goal>
100+
</goals>
101+
</execution>
102+
</executions>
103+
</plugin>
104+
<plugin>
105+
<groupId>org.apache.maven.plugins</groupId>
106+
<artifactId>maven-javadoc-plugin</artifactId>
107+
<version>3.3.2</version>
108+
<executions>
109+
<execution>
110+
<id>attach-javadocs</id>
111+
<goals>
112+
<goal>jar</goal>
113+
</goals>
114+
</execution>
115+
</executions>
116+
</plugin>
55117
<plugin>
56118
<groupId>org.apache.maven.plugins</groupId>
57119
<artifactId>maven-surefire-plugin</artifactId>
58120
<version>3.0.0-M6</version>
59121
</plugin>
122+
<plugin>
123+
<groupId>org.apache.maven.plugins</groupId>
124+
<artifactId>maven-gpg-plugin</artifactId>
125+
<version>3.0.1</version>
126+
<executions>
127+
<execution>
128+
<id>sign-artifacts</id>
129+
<phase>verify</phase>
130+
<goals>
131+
<goal>sign</goal>
132+
</goals>
133+
</execution>
134+
</executions>
135+
</plugin>
136+
<plugin>
137+
<groupId>org.sonatype.plugins</groupId>
138+
<artifactId>nexus-staging-maven-plugin</artifactId>
139+
<version>1.6.7</version>
140+
<extensions>true</extensions>
141+
<configuration>
142+
<serverId>ossrh</serverId>
143+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
144+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
145+
</configuration>
146+
</plugin>
60147
</plugins>
61148
</build>
62149
</project>

src/main/java/com/lemick/api/AssertHibernateSQLCount.java renamed to src/main/java/com/mickaelb/api/AssertHibernateSQLCount.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.lemick.api;
1+
package com.mickaelb.api;
22

33
import java.lang.annotation.ElementType;
44
import java.lang.annotation.Retention;

src/main/java/com/lemick/assertions/HibernateStatementAssertionResult.java renamed to src/main/java/com/mickaelb/assertions/HibernateStatementAssertionResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.lemick.assertions;
1+
package com.mickaelb.assertions;
22

33
import java.util.List;
44
import java.util.stream.Collectors;

src/main/java/com/lemick/assertions/HibernateStatementAssertionResults.java renamed to src/main/java/com/mickaelb/assertions/HibernateStatementAssertionResults.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.lemick.assertions;
1+
package com.mickaelb.assertions;
22

33
import java.util.List;
44
import java.util.stream.Collectors;

src/main/java/com/lemick/assertions/HibernateStatementAssertionValidator.java renamed to src/main/java/com/mickaelb/assertions/HibernateStatementAssertionValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.lemick.assertions;
1+
package com.mickaelb.assertions;
22

33
public interface HibernateStatementAssertionValidator {
44
void validate();

src/main/java/com/lemick/assertions/HibernateStatementCountException.java renamed to src/main/java/com/mickaelb/assertions/HibernateStatementCountException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.lemick.assertions;
1+
package com.mickaelb.assertions;
22

33
public class HibernateStatementCountException extends RuntimeException {
44

src/main/java/com/lemick/integration/hibernate/HibernateStatementCountInspector.java renamed to src/main/java/com/mickaelb/integration/hibernate/HibernateStatementCountInspector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.lemick.integration.hibernate;
1+
package com.mickaelb.integration.hibernate;
22

33
import org.hibernate.resource.jdbc.spi.StatementInspector;
44

src/main/java/com/lemick/integration/hibernate/HibernateStatementCountListener.java renamed to src/main/java/com/mickaelb/integration/hibernate/HibernateStatementCountListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.lemick.integration.hibernate;
1+
package com.mickaelb.integration.hibernate;
22

33
public interface HibernateStatementCountListener {
44

0 commit comments

Comments
 (0)