Skip to content

Commit 59a7e5e

Browse files
authored
Rename json-utils to gwt-beans-codegen-test-json (#13)
1 parent 9577a98 commit 59a7e5e

10 files changed

Lines changed: 17 additions & 16 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A Maven plugin for generating GWT bean parsers.
66

77
This project consists of the following modules:
88

9-
1. **json-utils**: A lightweight JSON handling library built on Jackson.
9+
1. **gwt-beans-codegen-test-json**: JVM-based test stubs for GWT JSON classes, enabling unit testing without GWT.
1010
2. **gwt-beans-codegen-core**: The core code generation engine for GWT bean parsers.
1111
3. **gwt-beans-codegen-maven-plugin**: The Maven plugin code.
1212

@@ -20,11 +20,11 @@ mvn clean install
2020

2121
## Modules
2222

23-
### json-utils
23+
### gwt-beans-codegen-test-json
2424

25-
A lightweight JSON handling library that provides utilities for working with JSON data.
25+
JVM-based test stubs for GWT JSON classes, backed by Jackson. Enables unit testing of generated parsers without a GWT runtime.
2626

27-
See [json-utils/README.md](json-utils/README.md) for usage instructions.
27+
See [gwt-beans-codegen-test-json/README.md](gwt-beans-codegen-test-json/README.md) for usage instructions.
2828

2929
### gwt-beans-codegen-core
3030

gwt-beans-codegen-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<!-- Test dependencies -->
5656
<dependency>
5757
<groupId>nl.aerius</groupId>
58-
<artifactId>json-utils</artifactId>
58+
<artifactId>gwt-beans-codegen-test-json</artifactId>
5959
<scope>test</scope>
6060
</dependency>
6161
<dependency>

gwt-beans-codegen-core/src/test/java/nl/aerius/codegen/test/AbstractRoundTripTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ protected Class<?> compileAndLoadParser(final String className) throws Exception
116116
Files.writeString(file.toPath(), updatedContent);
117117
}
118118

119-
// Get the classpath including the json-utils module
119+
// Get the classpath including the gwt-beans-codegen-test-json module
120120
final String classpath = System.getProperty("java.class.path");
121121

122122
// Compile all parsers together
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
# JSON Utilities
1+
# GWT Beans Codegen Test JSON Stubs
22

3-
A lightweight JSON handling library built on Jackson.
3+
JVM-based test stubs for GWT JSON classes (`nl.aerius.wui.service.json.JSONObjectHandle` etc.), backed by Jackson. This module enables unit testing of generated parsers without requiring a GWT runtime by swapping GWT JSON imports for these JVM-compatible implementations.
44

55
## Importing
66

7-
Add the following dependency to your Maven project:
7+
Add the following test dependency to your Maven project:
88

99
```xml
1010
<dependency>
1111
<groupId>nl.aerius</groupId>
12-
<artifactId>json-utils</artifactId>
13-
<version>1.0.0-SNAPSHOT</version>
12+
<artifactId>gwt-beans-codegen-test-json</artifactId>
13+
<version>1.1.0</version>
14+
<scope>test</scope>
1415
</dependency>
1516
```
1617

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
<version>1.1.0</version>
1111
</parent>
1212

13-
<artifactId>json-utils</artifactId>
14-
<name>GWT Bean Parser Generator JSON Utilities</name>
15-
<description>JSON handling utilities using Jackson</description>
13+
<artifactId>gwt-beans-codegen-test-json</artifactId>
14+
<name>GWT Bean Parser Generator Test JSON Stubs</name>
15+
<description>JVM-based test stubs for GWT JSON classes, enabling unit testing of generated parsers without GWT</description>
1616

1717
<dependencies>
1818
<dependency>

json-utils/src/main/java/nl/aerius/json/JSONArrayHandle.java renamed to gwt-beans-codegen-test-json/src/main/java/nl/aerius/json/JSONArrayHandle.java

File renamed without changes.

json-utils/src/main/java/nl/aerius/json/JSONObjectHandle.java renamed to gwt-beans-codegen-test-json/src/main/java/nl/aerius/json/JSONObjectHandle.java

File renamed without changes.

json-utils/src/main/java/nl/aerius/json/JSONValue.java renamed to gwt-beans-codegen-test-json/src/main/java/nl/aerius/json/JSONValue.java

File renamed without changes.

json-utils/src/main/java/nl/aerius/json/JSONValueHandle.java renamed to gwt-beans-codegen-test-json/src/main/java/nl/aerius/json/JSONValueHandle.java

File renamed without changes.

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
</properties>
5252

5353
<modules>
54-
<module>json-utils</module>
54+
<module>gwt-beans-codegen-test-json</module>
5555
<module>gwt-beans-codegen-core</module>
5656
<module>gwt-beans-codegen-maven-plugin</module>
5757
</modules>
@@ -71,7 +71,7 @@
7171
<!-- Internal module dependencies -->
7272
<dependency>
7373
<groupId>nl.aerius</groupId>
74-
<artifactId>json-utils</artifactId>
74+
<artifactId>gwt-beans-codegen-test-json</artifactId>
7575
<version>${project.version}</version>
7676
</dependency>
7777
</dependencies>

0 commit comments

Comments
 (0)