Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JBPM-8858 [Stunner] Lienzo - Unit Testing for the core migration to n… #77

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@
<artifactId>javassist</artifactId>
<version>${version.org.javassist}</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>2.8.2</version>
</dependency>

</dependencies>

Expand Down Expand Up @@ -135,8 +140,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<source>8</source>
<target>8</target>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to upgrade java version? @mdproctor @romartin

</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,27 +48,31 @@
},

stubs = {
com.ait.lienzo.test.stub.overlays.BoundingBoxJSO.class,
com.ait.lienzo.test.stub.overlays.DragBoundsJSO.class,
com.ait.lienzo.test.stub.overlays.TransformJSO.class,
com.ait.lienzo.test.stub.overlays.ShadowJSO.class,
com.ait.lienzo.test.stub.overlays.NObjectJSO.class,
com.ait.lienzo.test.stub.overlays.Point2DJSO.class,
com.ait.lienzo.test.stub.overlays.DragBoundsJSO.class,
com.ait.lienzo.test.stub.overlays.JsArray.class,
com.ait.lienzo.test.stub.overlays.JsArrayMixed.class,
com.ait.lienzo.test.stub.overlays.PathPartListJSO.class,
com.ait.lienzo.test.stub.overlays.PathPartEntryJSO.class,
com.ait.lienzo.test.stub.overlays.Point2DArrayJSO.class,
com.ait.lienzo.test.stub.overlays.NArrayBaseJSO.class,
com.ait.lienzo.test.stub.overlays.NFastPrimitiveArrayBaseJSO.class,
com.ait.lienzo.test.stub.overlays.NFastDoubleArrayJSO.class,
com.ait.lienzo.test.stub.overlays.OptionalNodeFields.class,
com.ait.lienzo.test.stub.overlays.OptionalShapeFields.class,
com.ait.lienzo.test.stub.overlays.OptionalGroupOfFields.class,
com.ait.lienzo.test.stub.Attributes.class,
com.ait.lienzo.test.stub.UIEvent.class,
com.ait.lienzo.test.stub.NFastArrayList.class,
com.ait.lienzo.test.stub.NFastStringMap.class,
com.ait.lienzo.test.stub.NFastDoubleArray.class,
com.ait.lienzo.test.stub.Uint8ClampedArray.class,
com.ait.lienzo.test.stub.LienzoCore.class,
com.ait.lienzo.test.stub.NFastStringMap.class,
com.ait.lienzo.test.stub.RootPanel.class,
com.ait.lienzo.test.stub.TextUtils.class,
com.ait.lienzo.test.stub.overlays.CanvasRenderingContext2D.class,
com.ait.lienzo.test.stub.overlays.Context2D.class,
com.ait.lienzo.test.stub.overlays.Global.class,
com.ait.lienzo.test.stub.overlays.JSONType.class,
com.ait.lienzo.test.stub.overlays.JsArray.class,
com.ait.lienzo.test.stub.overlays.JsMap.class,
com.ait.lienzo.test.stub.overlays.DomGlobal.class,
com.ait.lienzo.test.stub.overlays.HTMLDocument.class,
com.ait.lienzo.test.stub.overlays.HTMLCanvasElement.class,
com.ait.lienzo.test.stub.overlays.HTMLDivElement.class,
com.ait.lienzo.test.stub.overlays.HTMLElement.class,
com.ait.lienzo.test.stub.overlays.ImageData.class,
com.ait.lienzo.test.stub.overlays.PathPartListJSO.class,
com.ait.lienzo.test.stub.overlays.Point2DArray.class,
com.ait.lienzo.test.stub.overlays.ScratchPad.class,
com.ait.lienzo.test.stub.overlays.Timer.class,
},

jsoStubs = {
Expand Down Expand Up @@ -108,7 +112,7 @@
CanvasSupportTranslatorInterceptor.class,
StripFinalModifiersTranslatorInterceptor.class,
LienzoNodeTranslatorInterceptor.class,
GWTTranslatorInterceptor.class
GWTTranslatorInterceptor.class,
},

logEnabled = false
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/ait/lienzo/test/settings/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public final class Settings

Settings(final Collection<LienzoMockitoClassTranslator.TranslatorInterceptor> translators)
{
this.stubs = new LinkedHashMap<String, String>();
this.jsoStubs = new LinkedHashSet<String>();
this.jsoMocks = new LinkedHashSet<String>();
this.mocks = new LinkedHashSet<String>();
this.stubs = new LinkedHashMap<>();
this.jsoStubs = new LinkedHashSet<>();
this.jsoMocks = new LinkedHashSet<>();
this.mocks = new LinkedHashSet<>();
this.translators = translators;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static com.ait.lienzo.test.settings.Settings build(Settings settingsAnnot
// Additional interceptors.
final Class<? extends LienzoMockitoClassTranslator.TranslatorInterceptor>[] interceptorClasses = settingsAnnotation.translators();

final List<LienzoMockitoClassTranslator.TranslatorInterceptor> interceptors = new LinkedList<LienzoMockitoClassTranslator.TranslatorInterceptor>();
final List<LienzoMockitoClassTranslator.TranslatorInterceptor> interceptors = new LinkedList<>();

if ((null != interceptorClasses) && (interceptorClasses.length > 0))
{
Expand Down
Loading