[DEV] remove dependency with scenarium

This commit is contained in:
Edouard DUPIN 2022-10-03 23:44:48 +02:00
parent e13d2dcd7f
commit b2a4488117
7 changed files with 275 additions and 264 deletions

View File

@ -12,7 +12,7 @@ open module org.atriasoft.ejson {
exports org.atriasoft.ejson.parser; exports org.atriasoft.ejson.parser;
requires transitive org.atriasoft.etk; requires transitive org.atriasoft.etk;
requires transitive io.scenarium.logger; requires transitive org.atriasoft.reggol;
requires java.base; requires java.base;
requires org.atriasoft.aknot; requires org.atriasoft.aknot;

View File

@ -5,8 +5,8 @@
*/ */
package org.atriasoft.ejson.internal; package org.atriasoft.ejson.internal;
import io.scenarium.logger.LogLevel; import org.atriasoft.reggol.LogLevel;
import io.scenarium.logger.Logger; import org.atriasoft.reggol.Logger;
public class Log { public class Log {
private static final boolean FORCE_ALL = false; private static final boolean FORCE_ALL = false;

View File

@ -9,7 +9,7 @@ import org.atriasoft.ejson.Ejson;
import org.atriasoft.ejson.model.JsonNode; import org.atriasoft.ejson.model.JsonNode;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import sample.atriasoft.ewol.validationWidget.Log; import test.atriasoft.ejson.internal.Log;
class EjsonLocal { class EjsonLocal {
// errorPos : -1 : no error , 1 : parsing error, 2 generation error, 3 comparaison error ???? // errorPos : -1 : no error , 1 : parsing error, 2 generation error, 3 comparaison error ????

View File

@ -8,24 +8,25 @@ package test.atriasoft.ejson.generic;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import sample.atriasoft.ewol.validationWidget.Log; import test.atriasoft.ejson.internal.Log;
public class EjsonTestAll { public class EjsonTestAll {
//@formatter:off //@formatter:off
private static String refOutputAll = "{\n" private static String refOutputAll = """
+ " \"menu\": {\n" {
+ " \"id\": \"file\",\n" "menu": {
+ " \"value\": \"File\",\n" "id": "file",
+ " \"popup\": {\n" "value": "File",
+ " \"menuitem\": [\n" "popup": {
+ " { \"value\": \"Close\", \"onclick\": \"CloseDoc()\" },\n" "menuitem": [
+ " { \"value\": \"New\", \"onclick\": \"CreateNewDoc()\" },\n" { "value": "Close", "onclick": "CloseDoc()" },
+ " { \"value\": \"Open\", \"onclick\": \"OpenDoc()\" },\n" { "value": "New", "onclick": "CreateNewDoc()" },
+ " { \"value\": \"Close\", \"onclick\": \"CloseDoc()\" }\n" { "value": "Open", "onclick": "OpenDoc()" },
+ " ]\n" { "value": "Close", "onclick": "CloseDoc()" }
+ " }\n" ]
+ " }\n" }
+ "}"; }
}""";
//@formatter:on //@formatter:on
@BeforeAll @BeforeAll
@ -36,15 +37,16 @@ public class EjsonTestAll {
@Test @Test
public void testBaseObject() { public void testBaseObject() {
//@formatter:off //@formatter:off
final String base = "{\n" final String base = """
+ " \"menu\": {\n" {
+ " \"id\": \"file\",\n" "menu": {
+ " \"value\": \"File\",\n" "id": "file",
+ " \"popup\": {\n" "value": "File",
+ " \"menuitem\": { \"value\": \"Close\", \"onclick\": \"CloseDoc()\" }\n" "popup": {
+ " }\n" "menuitem": { "value": "Close", "onclick": "CloseDoc()" }
+ " }\n" }
+ "}"; }
}""";
//@formatter:on //@formatter:on
EjsonLocal.test(base, base, -1); EjsonLocal.test(base, base, -1);
} }
@ -52,28 +54,29 @@ public class EjsonTestAll {
@Test @Test
public void testGeneric1() { public void testGeneric1() {
//@formatter:off //@formatter:off
final String base = "{\n" final String base = """
+ " \"glossary\": {\n" {
+ " \"title\": \"example glossary\",\n" "glossary": {
+ " \"GlossDiv\": {\n" "title": "example glossary",
+ " \"title\": \"S\",\n" "GlossDiv": {
+ " \"GlossList\": {\n" "title": "S",
+ " \"GlossEntry\": {\n" "GlossList": {
+ " \"ID\": \"SGML\",\n" "GlossEntry": {
+ " \"SortAs\": \"SGML\",\n" "ID": "SGML",
+ " \"GlossTerm\": \"Standard Generalized Markup Language\",\n" "SortAs": "SGML",
+ " \"Acronym\": \"SGML\",\n" "GlossTerm": "Standard Generalized Markup Language",
+ " \"Abbrev\": \"ISO 8879:1986\",\n" "Acronym": "SGML",
+ " \"GlossDef\": {\n" "Abbrev": "ISO 8879:1986",
+ " \"para\": \"A meta-markup language, used to create markup languages such as DocBook.\",\n" "GlossDef": {
+ " \"GlossSeeAlso\": [ \"GML\", \"XML\" ]\n" "para": "A meta-markup language, used to create markup languages such as DocBook.",
+ " },\n" "GlossSeeAlso": [ "GML", "XML" ]
+ " \"GlossSee\": \"markup\"\n" },
+ " }\n" "GlossSee": "markup"
+ " }\n" }
+ " }\n" }
+ " }\n" }
+ "}"; }
}""";
//@formatter:on //@formatter:on
EjsonLocal.test(base, base, -1); EjsonLocal.test(base, base, -1);
} }
@ -81,19 +84,20 @@ public class EjsonTestAll {
@Test @Test
public void testGeneric2() { public void testGeneric2() {
//@formatter:off //@formatter:off
final String base = "{\n" final String base = """
+ " \"menu\": {\n" {
+ " \"id\": \"file\",\n" "menu": {
+ " \"value\": \"File\",\n" "id": "file",
+ " \"popup\": {\n" "value": "File",
+ " \"menuitem\": [\n" "popup": {
+ " { \"value\": \"New\", \"onclick\": \"CreateNewDoc()\" },\n" "menuitem": [
+ " { \"value\": \"Open\", \"onclick\": \"OpenDoc()\" },\n" { "value": "New", "onclick": "CreateNewDoc()" },
+ " { \"value\": \"Close\", \"onclick\": \"CloseDoc()\" }\n" { "value": "Open", "onclick": "OpenDoc()" },
+ " ]\n" { "value": "Close", "onclick": "CloseDoc()" }
+ " }\n" ]
+ " }\n" }
+ "}"; }
}""";
//@formatter:on //@formatter:on
EjsonLocal.test(base, base, -1); EjsonLocal.test(base, base, -1);
} }
@ -101,34 +105,35 @@ public class EjsonTestAll {
@Test @Test
public void testGeneric3() { public void testGeneric3() {
//@formatter:off //@formatter:off
final String base = "{\n" final String base = """
+ " \"widget\": {\n" {
+ " \"debug\": \"on\",\n" "widget": {
+ " \"window\": {\n" "debug": "on",
+ " \"title\": \"Sample Konfabulator Widget\",\n" "window": {
+ " \"name\": \"main_window\",\n" "title": "Sample Konfabulator Widget",
+ " \"width\": 500,\n" "name": "main_window",
+ " \"height\": 500\n" "width": 500,
+ " },\n" "height": 500
+ " \"image\": {\n" },
+ " \"src\": \"Images/Sun.png\",\n" "image": {
+ " \"name\": \"sun1\",\n" "src": "Images/Sun.png",
+ " \"hOffset\": 250,\n" "name": "sun1",
+ " \"vOffset\": 250,\n" "hOffset": 250,
+ " \"alignment\": \"center\"\n" "vOffset": 250,
+ " },\n" "alignment": "center"
+ " \"text\": {\n" },
+ " \"data\": \"Click Here\",\n" "text": {
+ " \"size\": 36,\n" "data": "Click Here",
+ " \"style\": \"bold\",\n" "size": 36,
+ " \"name\": \"text1\",\n" "style": "bold",
+ " \"hOffset\": 250,\n" "name": "text1",
+ " \"vOffset\": 100,\n" "hOffset": 250,
+ " \"alignment\": \"center\",\n" "vOffset": 100,
+ " \"onMouseUp\": \"sun1.opacity = (sun1.opacity / 100) * 90;\"\n" "alignment": "center",
+ " }\n" "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
+ " }\n" }
+ "}"; }
}""";
//@formatter:on //@formatter:on
EjsonLocal.test(base, base, -1); EjsonLocal.test(base, base, -1);
} }
@ -136,97 +141,98 @@ public class EjsonTestAll {
@Test @Test
public void testGeneric4() { public void testGeneric4() {
//@formatter:off //@formatter:off
final String base = "{\n" final String base = """
+ " \"web-app\": {\n" {
+ " \"servlet\": [\n" "web-app": {
+ " {\n" "servlet": [
+ " \"servlet-name\": \"cofaxCDS\",\n" {
+ " \"servlet-class\": \"org.cofax.cds.CDSServlet\",\n" "servlet-name": "cofaxCDS",
+ " \"init-param\": {\n" "servlet-class": "org.cofax.cds.CDSServlet",
+ " \"configGlossary:installationAt\": \"Philadelphia, PA\",\n" "init-param": {
+ " \"configGlossary:adminEmail\": \"ksm@pobox.com\",\n" "configGlossary:installationAt": "Philadelphia, PA",
+ " \"configGlossary:poweredBy\": \"Cofax\",\n" "configGlossary:adminEmail": "ksm@pobox.com",
+ " \"configGlossary:poweredByIcon\": \"/images/cofax.gif\",\n" "configGlossary:poweredBy": "Cofax",
+ " \"configGlossary:staticPath\": \"/content/static\",\n" "configGlossary:poweredByIcon": "/images/cofax.gif",
+ " \"templateProcessorClass\": \"org.cofax.WysiwygTemplate\",\n" "configGlossary:staticPath": "/content/static",
+ " \"templateLoaderClass\": \"org.cofax.FilesTemplateLoader\",\n" "templateProcessorClass": "org.cofax.WysiwygTemplate",
+ " \"templatePath\": \"templates\",\n" "templateLoaderClass": "org.cofax.FilesTemplateLoader",
+ " \"templateOverridePath\": \"\",\n" "templatePath": "templates",
+ " \"defaultListTemplate\": \"listTemplate.htm\",\n" "templateOverridePath": "",
+ " \"defaultFileTemplate\": \"articleTemplate.htm\",\n" "defaultListTemplate": "listTemplate.htm",
+ " \"useJSP\": false,\n" "defaultFileTemplate": "articleTemplate.htm",
+ " \"jspListTemplate\": \"listTemplate.jsp\",\n" "useJSP": false,
+ " \"jspFileTemplate\": \"articleTemplate.jsp\",\n" "jspListTemplate": "listTemplate.jsp",
+ " \"cachePackageTagsTrack\": 200,\n" "jspFileTemplate": "articleTemplate.jsp",
+ " \"cachePackageTagsStore\": 200,\n" "cachePackageTagsTrack": 200,
+ " \"cachePackageTagsRefresh\": 60,\n" "cachePackageTagsStore": 200,
+ " \"cacheTemplatesTrack\": 100,\n" "cachePackageTagsRefresh": 60,
+ " \"cacheTemplatesStore\": 50,\n" "cacheTemplatesTrack": 100,
+ " \"cacheTemplatesRefresh\": 15,\n" "cacheTemplatesStore": 50,
+ " \"cachePagesTrack\": 200,\n" "cacheTemplatesRefresh": 15,
+ " \"cachePagesStore\": 100,\n" "cachePagesTrack": 200,
+ " \"cachePagesRefresh\": 10,\n" "cachePagesStore": 100,
+ " \"cachePagesDirtyRead\": 10,\n" "cachePagesRefresh": 10,
+ " \"searchEngineListTemplate\": \"forSearchEnginesList.htm\",\n" "cachePagesDirtyRead": 10,
+ " \"searchEngineFileTemplate\": \"forSearchEngines.htm\",\n" "searchEngineListTemplate": "forSearchEnginesList.htm",
+ " \"searchEngineRobotsDb\": \"WEB-INF/robots.db\",\n" "searchEngineFileTemplate": "forSearchEngines.htm",
+ " \"useDataStore\": true,\n" "searchEngineRobotsDb": "WEB-INF/robots.db",
+ " \"dataStoreClass\": \"org.cofax.SqlDataStore\",\n" "useDataStore": true,
+ " \"redirectionClass\": \"org.cofax.SqlRedirection\",\n" "dataStoreClass": "org.cofax.SqlDataStore",
+ " \"dataStoreName\": \"cofax\",\n" "redirectionClass": "org.cofax.SqlRedirection",
+ " \"dataStoreDriver\": \"com.microsoft.jdbc.sqlserver.SQLServerDriver\",\n" "dataStoreName": "cofax",
+ " \"dataStoreUrl\": \"jdbc:microsoft:sqlserver://LOCALHOST:1433;DatabaseName=goon\",\n" "dataStoreDriver": "com.microsoft.jdbc.sqlserver.SQLServerDriver",
+ " \"dataStoreUser\": \"sa\",\n" "dataStoreUrl": "jdbc:microsoft:sqlserver://LOCALHOST:1433;DatabaseName=goon",
+ " \"dataStorePassword\": \"dataStoreTestQuery\",\n" "dataStoreUser": "sa",
+ " \"dataStoreTestQuery\": \"SET NOCOUNT ON;select test='test';\",\n" "dataStorePassword": "dataStoreTestQuery",
+ " \"dataStoreLogFile\": \"/usr/local/tomcat/logs/datastore.log\",\n" "dataStoreTestQuery": "SET NOCOUNT ON;select test='test';",
+ " \"dataStoreInitConns\": 10,\n" "dataStoreLogFile": "/usr/local/tomcat/logs/datastore.log",
+ " \"dataStoreMaxConns\": 100,\n" "dataStoreInitConns": 10,
+ " \"dataStoreConnUsageLimit\": 100,\n" "dataStoreMaxConns": 100,
+ " \"dataStoreLogLevel\": \"debug\",\n" "dataStoreConnUsageLimit": 100,
+ " \"maxUrlLength\": 500\n" "dataStoreLogLevel": "debug",
+ " }\n" "maxUrlLength": 500
+ " },\n" }
+ " {\n" },
+ " \"servlet-name\": \"cofaxEmail\",\n" {
+ " \"servlet-class\": \"org.cofax.cds.EmailServlet\",\n" "servlet-name": "cofaxEmail",
+ " \"init-param\": { \"mailHost\": \"mail1\", \"mailHostOverride\": \"mail2\" }\n" "servlet-class": "org.cofax.cds.EmailServlet",
+ " },\n" "init-param": { "mailHost": "mail1", "mailHostOverride": "mail2" }
+ " {\n" },
+ " \"servlet-name\": \"cofaxAdmin\",\n" {
+ " \"servlet-class\": \"org.cofax.cds.AdminServlet\"\n" "servlet-name": "cofaxAdmin",
+ " },\n" "servlet-class": "org.cofax.cds.AdminServlet"
+ " { \"servlet-name\": \"fileServlet\", \"servlet-class\": \"org.cofax.cds.FileServlet\" },\n" },
+ " {\n" { "servlet-name": "fileServlet", "servlet-class": "org.cofax.cds.FileServlet" },
+ " \"servlet-name\": \"cofaxTools\",\n" {
+ " \"servlet-class\": \"org.cofax.cms.CofaxToolsServlet\",\n" "servlet-name": "cofaxTools",
+ " \"init-param\": {\n" "servlet-class": "org.cofax.cms.CofaxToolsServlet",
+ " \"templatePath\": \"toolstemplates/\",\n" "init-param": {
+ " \"log\": 1,\n" "templatePath": "toolstemplates/",
+ " \"logLocation\": \"/usr/local/tomcat/logs/CofaxTools.log\",\n" "log": 1,
+ " \"logMaxSize\": \"\",\n" "logLocation": "/usr/local/tomcat/logs/CofaxTools.log",
+ " \"dataLog\": 1,\n" "logMaxSize": "",
+ " \"dataLogLocation\": \"/usr/local/tomcat/logs/dataLog.log\",\n" "dataLog": 1,
+ " \"dataLogMaxSize\": \"\",\n" "dataLogLocation": "/usr/local/tomcat/logs/dataLog.log",
+ " \"removePageCache\": \"/content/admin/remove?cache=pages&id=\",\n" "dataLogMaxSize": "",
+ " \"removeTemplateCache\": \"/content/admin/remove?cache=templates&id=\",\n" "removePageCache": "/content/admin/remove?cache=pages&id=",
+ " \"fileTransferFolder\": \"/usr/local/tomcat/webapps/content/fileTransferFolder\",\n" "removeTemplateCache": "/content/admin/remove?cache=templates&id=",
+ " \"lookInContext\": 1,\n" "fileTransferFolder": "/usr/local/tomcat/webapps/content/fileTransferFolder",
+ " \"adminGroupID\": 4,\n" "lookInContext": 1,
+ " \"betaServer\": true\n" "adminGroupID": 4,
+ " }\n" "betaServer": true
+ " }\n" }
+ " ],\n" }
+ " \"servlet-mapping\": {\n" ],
+ " \"cofaxCDS\": \"/\",\n" "servlet-mapping": {
+ " \"cofaxEmail\": \"/cofaxutil/aemail/*\",\n" "cofaxCDS": "/",
+ " \"cofaxAdmin\": \"/admin/*\",\n" "cofaxEmail": "/cofaxutil/aemail/*",
+ " \"fileServlet\": \"/static/*\",\n" "cofaxAdmin": "/admin/*",
+ " \"cofaxTools\": \"/tools/*\"\n" "fileServlet": "/static/*",
+ " },\n" "cofaxTools": "/tools/*"
+ " \"taglib\": { \"taglib-uri\": \"cofax.tld\", \"taglib-location\": \"/WEB-INF/tlds/cofax.tld\" }\n" },
+ " }\n" "taglib": { "taglib-uri": "cofax.tld", "taglib-location": "/WEB-INF/tlds/cofax.tld" }
+ "}"; }
}""";
//@formatter:on //@formatter:on
EjsonLocal.test(base, base, -1); EjsonLocal.test(base, base, -1);
} }
@ -234,35 +240,36 @@ public class EjsonTestAll {
@Test @Test
public void testGeneric5() { public void testGeneric5() {
//@formatter:off //@formatter:off
final String base = "{\n" final String base = """
+ " \"menu\": {\n" {
+ " \"header\": \"SVG Viewer\",\n" "menu": {
+ " \"items\": [\n" "header": "SVG Viewer",
+ " { \"id\": \"Open\" },\n" "items": [
+ " { \"id\": \"OpenNew\", \"label\": \"Open New\" },\n" { "id": "Open" },
+ " null,\n" { "id": "OpenNew", "label": "Open New" },
+ " { \"id\": \"ZoomIn\", \"label\": \"Zoom In\" },\n" null,
+ " { \"id\": \"ZoomOut\", \"label\": \"Zoom Out\" },\n" { "id": "ZoomIn", "label": "Zoom In" },
+ " { \"id\": \"OriginalView\", \"label\": \"Original View\" },\n" { "id": "ZoomOut", "label": "Zoom Out" },
+ " null,\n" { "id": "OriginalView", "label": "Original View" },
+ " { \"id\": \"Quality\" },\n" null,
+ " { \"id\": \"Pause\" },\n" { "id": "Quality" },
+ " { \"id\": \"Mute\" },\n" { "id": "Pause" },
+ " null,\n" { "id": "Mute" },
+ " { \"id\": \"Find\", \"label\": \"Find...\" },\n" null,
+ " { \"id\": \"FindAgain\", \"label\": \"Find Again\" },\n" { "id": "Find", "label": "Find..." },
+ " { \"id\": \"Copy\" },\n" { "id": "FindAgain", "label": "Find Again" },
+ " { \"id\": \"CopyAgain\", \"label\": \"Copy Again\" },\n" { "id": "Copy" },
+ " { \"id\": \"CopySVG\", \"label\": \"Copy SVG\" },\n" { "id": "CopyAgain", "label": "Copy Again" },
+ " { \"id\": \"ViewSVG\", \"label\": \"View SVG\" },\n" { "id": "CopySVG", "label": "Copy SVG" },
+ " { \"id\": \"ViewSource\", \"label\": \"View Source\" },\n" { "id": "ViewSVG", "label": "View SVG" },
+ " { \"id\": \"SaveAs\", \"label\": \"Save As\" },\n" { "id": "ViewSource", "label": "View Source" },
+ " null,\n" { "id": "SaveAs", "label": "Save As" },
+ " { \"id\": \"Help\" },\n" null,
+ " { \"id\": \"About\", \"label\": \"About Adobe CVG Viewer...\" }\n" { "id": "Help" },
+ " ]\n" { "id": "About", "label": "About Adobe CVG Viewer..." }
+ " }\n" ]
+ "}"; }
}""";
//@formatter:on //@formatter:on
EjsonLocal.test(base, base, -1); EjsonLocal.test(base, base, -1);
} }
@ -271,32 +278,34 @@ public class EjsonTestAll {
public void testIndentedList() { public void testIndentedList() {
//@formatter:off //@formatter:off
EjsonLocal.test(refOutputAll, EjsonLocal.test(refOutputAll,
"{\n" """
+ " menu: {\n" {
+ " id: \"file\",\n" menu: {
+ " value: \"File\",\n" id: "file",
+ " popup: {\n" value: "File",
+ " menuitem: [\n" popup: {
+ " {\n" menuitem: [
+ " value: \"Close\",\n" {
+ " onclick: \"CloseDoc()\"\n" value: "Close",
+ " },\n" onclick: "CloseDoc()"
+ " {\n" },
+ " value: \"New\",\n" {
+ " onclick: \"CreateNewDoc()\"\n" value: "New",
+ " },\n" onclick: "CreateNewDoc()"
+ " {\n" },
+ " value: \"Open\",\n" {
+ " onclick: \"OpenDoc()\"\n" value: "Open",
+ " },\n" onclick: "OpenDoc()"
+ " {\n" },
+ " value: \"Close\",\n" {
+ " onclick: \"CloseDoc()\"\n" value: "Close",
+ " }\n" onclick: "CloseDoc()"
+ " ]\n" }
+ " }\n" ]
+ " }\n" }
+ "}\n", }
}
""",
-1); -1);
//@formatter:on //@formatter:on
} }
@ -305,30 +314,32 @@ public class EjsonTestAll {
public void testIndentedListWithNoBasicObject() { public void testIndentedListWithNoBasicObject() {
//@formatter:off //@formatter:off
EjsonLocal.test(refOutputAll, EjsonLocal.test(refOutputAll,
"menu: {\n" """
+ " id: \"file\",\n" menu: {
+ " value: \"File\",\n" id: "file",
+ " popup: {\n" value: "File",
+ " menuitem: [\n" popup: {
+ " {\n" menuitem: [
+ " value: \"Close\",\n" {
+ " onclick: \"CloseDoc()\"\n" value: "Close",
+ " },\n" onclick: "CloseDoc()"
+ " {\n" },
+ " value: \"New\",\n" {
+ " onclick: \"CreateNewDoc()\"\n" value: "New",
+ " },\n" onclick: "CreateNewDoc()"
+ " {\n" },
+ " value: \"Open\",\n" {
+ " onclick: \"OpenDoc()\"\n" value: "Open",
+ " },\n" onclick: "OpenDoc()"
+ " {\n" },
+ " value: \"Close\",\n" {
+ " onclick: \"CloseDoc()\"\n" value: "Close",
+ " }\n" onclick: "CloseDoc()"
+ " ]\n" }
+ " }\n" ]
+ "}\n", }
}
""",
-1); -1);
//@formatter:on //@formatter:on
} }

View File

@ -9,7 +9,7 @@ import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Order; import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import sample.atriasoft.ewol.validationWidget.Log; import test.atriasoft.ejson.internal.Log;
public class EjsonTestBoolean { public class EjsonTestBoolean {
private static String refOutputBoolean1 = "{\n\t\"tmpElement\": true\n}"; private static String refOutputBoolean1 = "{\n\t\"tmpElement\": true\n}";

View File

@ -9,7 +9,7 @@ import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Order; import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import sample.atriasoft.ewol.validationWidget.Log; import test.atriasoft.ejson.internal.Log;
public class EjsonTestNull { public class EjsonTestNull {
private static final String REF_OUTPUT_NULL = "{\n\t\"tmpElement\": null\n}"; private static final String REF_OUTPUT_NULL = "{\n\t\"tmpElement\": null\n}";

View File

@ -9,7 +9,7 @@ import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Order; import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import sample.atriasoft.ewol.validationWidget.Log; import test.atriasoft.ejson.internal.Log;
public class EjsonTestNumber { public class EjsonTestNumber {
private static final String REF_OUTPUT_NUMBER = "{\n\t\"tmpElement\": 956256\n}"; private static final String REF_OUTPUT_NUMBER = "{\n\t\"tmpElement\": 956256\n}";