From 0da45da252f5ad9596feaeb27706f10a471fc7cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Kohlschu=CC=88tter?= Date: Fri, 6 Oct 2023 12:54:52 +0200 Subject: [PATCH] test: Rename Angular.java, JQuery.java Tests would fail because "angular.ts" and "jQuery.ts" would already be included with a differenent case. Rename Angular to AngularCandy, JQuery to JQueryCandy, which is also in line with "BackboneCandy". --- .../java/org/jsweet/test/transpiler/CandiesTests.java | 8 ++++---- .../source/candies/{Angular.java => AngularCandy.java} | 2 +- .../java/source/candies/{JQuery.java => JQueryCandy.java} | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename transpiler/src/test/java/source/candies/{Angular.java => AngularCandy.java} (95%) rename transpiler/src/test/java/source/candies/{JQuery.java => JQueryCandy.java} (94%) diff --git a/transpiler/src/test/java/org/jsweet/test/transpiler/CandiesTests.java b/transpiler/src/test/java/org/jsweet/test/transpiler/CandiesTests.java index 843968b00..4976ca092 100644 --- a/transpiler/src/test/java/org/jsweet/test/transpiler/CandiesTests.java +++ b/transpiler/src/test/java/org/jsweet/test/transpiler/CandiesTests.java @@ -22,10 +22,10 @@ import org.jsweet.transpiler.SourceFile; import org.junit.Test; -import source.candies.Angular; +import source.candies.AngularCandy; import source.candies.Babylonjs; import source.candies.BackboneCandy; -import source.candies.JQuery; +import source.candies.JQueryCandy; import source.candies.ReactLib; import source.require.b.GlobalsImport; import source.syntax.QualifiedNames; @@ -34,12 +34,12 @@ public class CandiesTests extends AbstractTest { @Test public void testAngular() { - transpile(TestTranspilationHandler::assertNoProblems, getSourceFile(Angular.class)); + transpile(TestTranspilationHandler::assertNoProblems, getSourceFile(AngularCandy.class)); } @Test public void testJQuery() { - transpile(TestTranspilationHandler::assertNoProblems, getSourceFile(JQuery.class)); + transpile(TestTranspilationHandler::assertNoProblems, getSourceFile(JQueryCandy.class)); } @Test diff --git a/transpiler/src/test/java/source/candies/Angular.java b/transpiler/src/test/java/source/candies/AngularCandy.java similarity index 95% rename from transpiler/src/test/java/source/candies/Angular.java rename to transpiler/src/test/java/source/candies/AngularCandy.java index e2f399363..19e4f5651 100644 --- a/transpiler/src/test/java/source/candies/Angular.java +++ b/transpiler/src/test/java/source/candies/AngularCandy.java @@ -26,7 +26,7 @@ import def.angularjs.ng.route.IRouteProvider; import def.js.Array; -public class Angular { +public class AngularCandy { public static void main(String[] args) { diff --git a/transpiler/src/test/java/source/candies/JQuery.java b/transpiler/src/test/java/source/candies/JQueryCandy.java similarity index 94% rename from transpiler/src/test/java/source/candies/JQuery.java rename to transpiler/src/test/java/source/candies/JQueryCandy.java index c4fe69393..6f0bf9840 100644 --- a/transpiler/src/test/java/source/candies/JQuery.java +++ b/transpiler/src/test/java/source/candies/JQueryCandy.java @@ -23,7 +23,7 @@ import static jsweet.util.Lang.function; @SuppressWarnings("all") -public class JQuery { +public class JQueryCandy { public static void main(String[] args) { $("p").append(" (end)");