Skip to content

Commit

Permalink
Tests: move echosvg-test-swing stuff inside echosvg-test, for the…
Browse files Browse the repository at this point in the history
… convenience of IDEs

Follow-up to c28920c
  • Loading branch information
carlosame committed Jul 10, 2024
1 parent f2cbc45 commit 88e39cf
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 61 deletions.
20 changes: 0 additions & 20 deletions echosvg-test-swing/build.gradle

This file was deleted.

29 changes: 0 additions & 29 deletions echosvg-test-swing/src/main/java/module-info.java

This file was deleted.

3 changes: 2 additions & 1 deletion echosvg-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ dependencies {
implementation project(':echosvg-i18n')
implementation project(':echosvg-extension')
implementation project(':echosvg-transcoder')
api project(':echosvg-swing')
implementation "io.sf.jclf:jclf-text:${jclfTextVersion}"
testImplementation project(':echosvg-test-swing')
// Required by tests
testImplementation testFixtures(project(':echosvg-util'))
testImplementation "org.junit.jupiter:junit-jupiter:${junitVersion}"
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
limitations under the License.
*/
package io.sf.carte.echosvg.swing.test;
package io.sf.carte.echosvg.test.swing;

import java.awt.Dimension;
import java.awt.EventQueue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

package io.sf.carte.echosvg.swing.test;
package io.sf.carte.echosvg.test.swing;

import java.util.Locale;
import java.util.MissingResourceException;
Expand Down
7 changes: 7 additions & 0 deletions echosvg-test/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,16 @@
exports io.sf.carte.echosvg.test;
exports io.sf.carte.echosvg.test.image;
exports io.sf.carte.echosvg.test.svg;
exports io.sf.carte.echosvg.test.swing;

requires transitive io.sf.carte.echosvg.swing;
requires io.sf.carte.echosvg.transcoder;
requires io.sf.carte.echosvg.i18n;
requires io.sf.jclf.text;
requires transitive java.desktop;

/*
* Required by tests.
*/
requires io.sf.carte.echosvg.constants;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

import io.sf.carte.echosvg.swing.JSVGCanvas;
import io.sf.carte.echosvg.swing.svg.JSVGComponent;
import io.sf.carte.echosvg.swing.test.JSVGCanvasHandler;
import io.sf.carte.echosvg.test.svg.JSVGRenderingAccuracyTest;
import io.sf.carte.echosvg.test.swing.JSVGCanvasHandler;
import io.sf.carte.echosvg.transcoder.TranscoderException;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

import io.sf.carte.echosvg.swing.JSVGCanvas;
import io.sf.carte.echosvg.swing.gvt.Overlay;
import io.sf.carte.echosvg.swing.test.JSVGCanvasHandler;
import io.sf.carte.echosvg.test.swing.JSVGCanvasHandler;

/**
* One line Class Desc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
limitations under the License.
*/
package io.sf.carte.echosvg.swing.test;
package io.sf.carte.echosvg.test.swing;

import java.awt.EventQueue;
import java.awt.geom.AffineTransform;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
limitations under the License.
*/
package io.sf.carte.echosvg.swing.test;
package io.sf.carte.echosvg.test.swing;

import java.io.IOException;
import java.lang.ref.WeakReference;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
limitations under the License.
*/
package io.sf.carte.echosvg.swing.test;
package io.sf.carte.echosvg.test.swing;

import java.awt.EventQueue;
import java.io.PrintWriter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
limitations under the License.
*/
package io.sf.carte.echosvg.swing.test;
package io.sf.carte.echosvg.test.swing;

import io.sf.carte.echosvg.swing.JSVGCanvas;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
limitations under the License.
*/
package io.sf.carte.echosvg.swing.test;
package io.sf.carte.echosvg.test.swing;

import org.w3c.dom.DOMImplementation;
import org.w3c.dom.Document;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
limitations under the License.
*/
package io.sf.carte.echosvg.swing.test;
package io.sf.carte.echosvg.test.swing;

import java.net.MalformedURLException;
import java.net.URL;
Expand Down
1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ include(':echosvg-ttf2svg')
include(':echosvg-slideshow')
include(':echosvg-parser')
include(':echosvg-gvt')
include(':echosvg-test-swing')
include(':echosvg-test-scripts')
include(':echosvg-test')
include(':echosvg-all')

0 comments on commit 88e39cf

Please sign in to comment.