From dc143fd5aa2d27d1708d2385ad346e55ad6942b4 Mon Sep 17 00:00:00 2001 From: ThuF Date: Wed, 11 Sep 2024 09:47:35 +0300 Subject: [PATCH] [Core] Update unit tests to use ES6 import for the test/assert module --- .../test/kronos/db/api/callable-statement.xsjs | 5 +++-- .../test/kronos/db/api/connection.xsjs | 5 +++-- .../dirigible/test/kronos/db/api/db.xsjs | 5 +++-- .../test/kronos/db/api/parameter-metadata.xsjs | 5 +++-- .../test/kronos/db/api/prepared-statement.xsjs | 5 +++-- .../test/kronos/db/api/result-set.xsjs | 5 +++-- .../test/kronos/db/api/resultset-metadata.xsjs | 5 +++-- .../test/kronos/exports/utils/utils.mjs | 5 ++--- .../test/kronos/hdb/column-metadata.xsjs | 5 +++-- .../kronos/hdb/connection-execute-query.xsjs | 5 +++-- .../kronos/hdb/connection-execute-update.xsjs | 5 +++-- .../dirigible/test/kronos/hdb/result-set.xsjs | 5 +++-- .../test/kronos/hdb/resultset-metadata.xsjs | 5 +++-- .../dirigible/test/kronos/http/http.xsjs | 5 +++-- .../dirigible/test/kronos/import/import.xsjs | 5 +++-- .../dirigible/test/kronos/net/net.xsjs | 5 +++-- .../dirigible/test/kronos/session/session.xsjs | 5 +++-- .../dirigible/test/kronos/trace/trace.xsjs | 5 +++-- .../test/kronos/util/codec/codec.xsjs | 9 +++------ .../dirigible/test/kronos/util/util.xsjs | 5 +++-- .../xsodata/transformers/ODataParserTest.java | 18 +++++++++--------- pom.xml | 2 +- 22 files changed, 69 insertions(+), 55 deletions(-) diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/callable-statement.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/callable-statement.xsjs index a446fb695..8535b8634 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/callable-statement.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/callable-statement.xsjs @@ -1,5 +1,6 @@ +import { Assert } from 'test/assert'; + var db = $.db; -var assertTrue = require('test/assert').assertTrue; var connection = db.getConnection(); @@ -63,4 +64,4 @@ call.setTimestamp(15, timestampInput); call.setTinyInt(16, 1); -assertTrue(true); \ No newline at end of file +Assert.assertTrue(true); \ No newline at end of file diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/connection.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/connection.xsjs index ca80120df..a076d93e2 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/connection.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/connection.xsjs @@ -1,5 +1,6 @@ +import { Assert } from 'test/assert'; + var db = $.db; -var assertTrue = require('test/assert').assertTrue; // tests isClosed() too function close(){ var connection = db.getConnection(); @@ -26,4 +27,4 @@ function prepareStatement(){ return statement.constructor.name == "XscPreparedStatement" } -assertTrue(close() && prepareCall() && prepareStatement()); \ No newline at end of file +Assert.assertTrue(close() && prepareCall() && prepareStatement()); \ No newline at end of file diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/db.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/db.xsjs index 0065c9d21..c54a6066a 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/db.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/db.xsjs @@ -1,5 +1,6 @@ +import { Assert } from 'test/assert'; + var db = $.db; -var assertTrue = require('test/assert').assertTrue; var connection = db.getConnection(); -assertTrue(connection != null && connection != undefined); \ No newline at end of file +Assert.assertTrue(connection != null && connection != undefined); \ No newline at end of file diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/parameter-metadata.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/parameter-metadata.xsjs index 75860b9f5..3750fb30d 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/parameter-metadata.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/parameter-metadata.xsjs @@ -1,3 +1,5 @@ +import { Assert } from 'test/assert'; + var db = $.db; var createTable = "CREATE TABLE TEST_USERS (NAME varchar(255), STEPS integer, SALARY decimal, RATING decimal, IS_ADMIN boolean, BIO varchar(255), AVG_GRADE decimal, LUCKY_NUMBER integer)"; @@ -15,7 +17,6 @@ connection.prepareCall(createTable).execute(); var statement = connection.prepareStatement(insert); var parameterMetaData = statement.getParameterMetaData(); var count = parameterMetaData.getParameterCount(); -var assertTrue = require('test/assert').assertTrue; var assertions = []; for (var i = 1; i <= count; i++) { @@ -32,4 +33,4 @@ for (var i = 1; i <= count; i++) { statement.close(); connection.close(); -assertTrue(assertions.every((assertion) => assertion)); \ No newline at end of file +Assert.assertTrue(assertions.every((assertion) => assertion)); \ No newline at end of file diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/prepared-statement.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/prepared-statement.xsjs index 1e07d144c..a9528f9ea 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/prepared-statement.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/prepared-statement.xsjs @@ -1,5 +1,6 @@ +import { Assert } from 'test/assert'; + var db = $.db; -var assertTrue = require('test/assert').assertTrue; var connection; try{ connection = db.getConnection(); @@ -45,7 +46,7 @@ try{ closeAssertion = false; } catch {} - assertTrue(batchExecutes == 2 && !executeResult && closeAssertion && updatedRows == 3 && metadataAssertion && moreResultsAssertion && parameterMetaDataAssertion && isClosedAssertion && closeAssertion); + Assert.assertTrue(batchExecutes == 2 && !executeResult && closeAssertion && updatedRows == 3 && metadataAssertion && moreResultsAssertion && parameterMetaDataAssertion && isClosedAssertion && closeAssertion); } finally { if(connection){ connection.commit(); diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/result-set.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/result-set.xsjs index 607fe19da..1f35759b9 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/result-set.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/result-set.xsjs @@ -1,5 +1,6 @@ +import { Assert } from 'test/assert'; + var db = $.db; -var assertTrue = require('test/assert').assertTrue; var connection; try{ @@ -44,7 +45,7 @@ try{ closeAssertion = false; } catch {} - assertTrue(bigIntAssertion && dateAssertion && decAssertion && doubleAssertion && intAssertion && stringAssertion && timeAssertion && timestampAssertion && closeAssertion && isClosedAssertion); + Assert.assertTrue(bigIntAssertion && dateAssertion && decAssertion && doubleAssertion && intAssertion && stringAssertion && timeAssertion && timestampAssertion && closeAssertion && isClosedAssertion); } finally { if(connection){ connection.commit(); diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/resultset-metadata.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/resultset-metadata.xsjs index 5c5632172..fc0fa9b11 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/resultset-metadata.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/db/api/resultset-metadata.xsjs @@ -1,5 +1,6 @@ +import { Assert } from 'test/assert'; + var db = $.db; -var assertTrue = require('test/assert').assertTrue; var connection; try { @@ -35,7 +36,7 @@ try { var tableNameAssertion = metadata.getTableName(1) == "TEST_USERS"; - assertTrue(columnCountAssertion && labelAssertion && nameAssertion && typeAssertion && typeNameAssertion && precisionAssertion && scaleAssertion && tableNameAssertion); + Assert.assertTrue(columnCountAssertion && labelAssertion && nameAssertion && typeAssertion && typeNameAssertion && precisionAssertion && scaleAssertion && tableNameAssertion); } finally { if(connection){ connection.commit(); diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/exports/utils/utils.mjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/exports/utils/utils.mjs index 4422bbb29..20dd9a74d 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/exports/utils/utils.mjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/exports/utils/utils.mjs @@ -1,9 +1,8 @@ import { query } from 'sdk/db' - -var assert = require('test/assert'); +import { Assert } from 'test/assert'; export function assertEquals(expected, actual, message) { - assert.assertEquals(expected, actual, message + Assert.assertEquals(expected, actual, message + "\nExpected: " + expected + "\nActual: " + actual); } diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/column-metadata.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/column-metadata.xsjs index ac0310016..29965be47 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/column-metadata.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/column-metadata.xsjs @@ -1,6 +1,7 @@ +import { Assert } from 'test/assert'; + var hdb = $.hdb; var response = require('http/response'); -var assertTrue = require('test/assert').assertTrue; var conn = hdb.getConnection(); conn.executeUpdate('CREATE SCHEMA EXAMPLE'); @@ -38,4 +39,4 @@ for (var i = 0; i < columnCount; i++) { response.contentType = "text/plain"; response.println(body); -assertTrue(conn != null&& resultSet != null && columnCount !=null && body != null && lastColumnName ==="WEIGHT"&& lastColumnTypeName==="DOUBLE PRECISION"); +Assert.assertTrue(conn != null&& resultSet != null && columnCount !=null && body != null && lastColumnName ==="WEIGHT"&& lastColumnTypeName==="DOUBLE PRECISION"); diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/connection-execute-query.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/connection-execute-query.xsjs index 6e473fcc3..ab49d0c10 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/connection-execute-query.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/connection-execute-query.xsjs @@ -1,6 +1,7 @@ +import { Assert } from 'test/assert'; + var database = $.hdb; var response = require('http/response'); -var assertTrue = require('test/assert').assertTrue; try { var connection = database.getConnection(); @@ -30,4 +31,4 @@ try { response.flush(); response.close(); -assertTrue(resultSet[0]["FIRSTNAME"] == "IVAN" && resultSet2.length.toString() == 2); +Assert.assertTrue(resultSet[0]["FIRSTNAME"] == "IVAN" && resultSet2.length.toString() == 2); diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/connection-execute-update.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/connection-execute-update.xsjs index cd40d6322..47da999d0 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/connection-execute-update.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/connection-execute-update.xsjs @@ -1,4 +1,5 @@ - let assertTrue = require('test/assert').assertTrue; +import { Assert } from 'test/assert'; + let connection; try{ connection = $.hdb.getConnection(); @@ -8,7 +9,7 @@ let updateStatement = "UPDATE EXAMPLE.TEST_USERS SET WEIGHT=? WHERE ID = 4"; let updateResult = connection.executeUpdate(updateStatement, 75); - assertTrue(insertResult ===1 && updateResult > 0); + Assert.assertTrue(insertResult ===1 && updateResult > 0); } finally { if(connection){ connection.close(); diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/result-set.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/result-set.xsjs index 7af55dbcb..3593fc0c9 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/result-set.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/result-set.xsjs @@ -1,6 +1,7 @@ +import { Assert } from 'test/assert'; + var hdb = $.hdb; var response = require('http/response'); -var assertTrue = require('test/assert').assertTrue; try { var connection = hdb.getConnection(); @@ -28,4 +29,4 @@ try { connection.close(); } -assertTrue(row0['FIRSTNAME'] === "IVAN" && row0['LASTNAME']==="VOLKOV" && row0['AGE']===29); +Assert.assertTrue(row0['FIRSTNAME'] === "IVAN" && row0['LASTNAME']==="VOLKOV" && row0['AGE']===29); diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/resultset-metadata.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/resultset-metadata.xsjs index 297f63f6f..1c5483e1c 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/resultset-metadata.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/hdb/resultset-metadata.xsjs @@ -1,6 +1,7 @@ +import { Assert } from 'test/assert'; + var db = $.hdb; var response = require('http/response'); -var assertTrue = require('test/assert').assertTrue; var connection = db.getConnection(); var result = connection.executeQuery('SELECT * FROM EXAMPLE.TEST_USERS'); @@ -10,4 +11,4 @@ var metadata = result.metadata; // conn.executeUpdate('DROP SCHEMA EXAMPLE'); response.println(JSON.stringify(metadata)); -assertTrue(metadata != null); \ No newline at end of file +Assert.assertTrue(metadata != null); diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/http/http.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/http/http.xsjs index 006cf7b56..2dbec995e 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/http/http.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/http/http.xsjs @@ -1,5 +1,6 @@ +import { Assert } from 'test/assert'; + let http = $.net.http; -var assertTrue = require('test/assert').assertTrue; let client = new http.Client(); let request = new http.Request(http.GET, "/"); let destination = http.readDestination("test", "test-destination"); @@ -9,4 +10,4 @@ client.setTimeout(10); client.request(request, destination); let response = client.getResponse(); -assertTrue(response.status === http.OK && response.cookies != null && response.headers != null && response.body != null); \ No newline at end of file +Assert.assertTrue(response.status === http.OK && response.cookies != null && response.headers != null && response.body != null); diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/import/import.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/import/import.xsjs index 4b21c6b85..12322f70b 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/import/import.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/import/import.xsjs @@ -1,6 +1,7 @@ +import { Assert } from 'test/assert'; + // Importing xsjs lib and adding the module to the $ object. $.import("test.kronos.import.sap.test.lib", "basic"); -var assertTrue = require('test/assert').assertTrue; // Assigning the module to a variable from the $ object. var mathbasic = $.test.kronos.import.sap.test.lib.basic; @@ -17,5 +18,5 @@ var multiply = mathlib.multiply(4, 9); var division = mathlib.division(9, 3); // Verifying the results. -assertTrue(square === 36 && multiply === 36 && division === 3 && sum === 10 && sub === 5); +Assert.assertTrue(square === 36 && multiply === 36 && division === 3 && sum === 10 && sub === 5); diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/net/net.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/net/net.xsjs index b232b6889..3a5bfe34b 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/net/net.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/net/net.xsjs @@ -1,5 +1,6 @@ +import { Assert } from 'test/assert'; + let net = $.net; -var assertTrue = require('test/assert').assertTrue; let mail = new net.Mail({ sender: {address: "sender@sap.com"}, to: [{name: "John Doe", address: "john.doe@sap.com", nameEncoding: "US-ASCII"}, {name: "Jane Doe", address: "jane.doe@sap.com"}], @@ -21,4 +22,4 @@ let to = mail.to.map(e => e.address) let cc = mail.cc.map(e => e.address) let bcc = mail.bcc.map(e => e.address) -assertTrue(to !== "" && to !== undefined && cc !== "" && cc !== undefined && bcc !== "" && bcc !== undefined && smtp.isClosed()); +Assert.assertTrue(to !== "" && to !== undefined && cc !== "" && cc !== undefined && bcc !== "" && bcc !== undefined && smtp.isClosed()); diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/session/session.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/session/session.xsjs index 49214fd7d..0cadd6c99 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/session/session.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/session/session.xsjs @@ -1,4 +1,5 @@ -var assertTrue = require('test/assert').assertTrue; +import { Assert } from 'test/assert'; + let username = $.session.getUsername() let appPrivileges = $.session.hasAppPrivilege("Developer") if (appPrivileges) { @@ -26,4 +27,4 @@ $.response.setBody("Timeout: " +timeout); $.response.setBody("Token: " +token); $.response.setBody("Auth Type: " +authType); -assertTrue(username === "TestUser" && appPrivileges !== null && sysPrivileges != null && timeout !== null && authType !== null && token != null); \ No newline at end of file +Assert.assertTrue(username === "TestUser" && appPrivileges !== null && sysPrivileges != null && timeout !== null && authType !== null && token != null); \ No newline at end of file diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/trace/trace.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/trace/trace.xsjs index f4b90d525..513dc5f1c 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/trace/trace.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/trace/trace.xsjs @@ -1,4 +1,5 @@ -var assertTrue = require('test/assert').assertTrue; +import { Assert } from 'test/assert'; + let trace = $.trace; let debugBool = trace.isDebugEnabled(); @@ -23,4 +24,4 @@ if (warnBool) { trace.warning("Warning message!"); } -assertTrue(debugBool && errorBool && fatalBool && infoBool && warnBool); \ No newline at end of file +Assert.assertTrue(debugBool && errorBool && fatalBool && infoBool && warnBool); diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/util/codec/codec.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/util/codec/codec.xsjs index 07f314110..cdd9a4d24 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/util/codec/codec.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/util/codec/codec.xsjs @@ -1,4 +1,5 @@ -var assertTrue = require('test/assert').assertTrue; +import { Assert } from 'test/assert'; + var codec = $.util.codec; var util = $.util; @@ -6,12 +7,8 @@ var encodedHex = codec.encodeHex("dirigible as hex"); var decodedHex = codec.decodeHex(encodedHex); var valueFromHex = util.stringify(decodedHex); - - var encodedToBase64 = codec.encodeBase64("dirigible as base64"); var decodedBase64 = codec.decodeBase64(encodedToBase64); var valueFromBase64 = util.stringify(decodedBase64); - - -assertTrue(valueFromHex === "dirigible as hex" && valueFromBase64 ==="dirigible as base64"); \ No newline at end of file +Assert.assertTrue(valueFromHex === "dirigible as hex" && valueFromBase64 ==="dirigible as base64"); diff --git a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/util/util.xsjs b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/util/util.xsjs index ad4c44522..c061d41b4 100644 --- a/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/util/util.xsjs +++ b/components/engine-xsjs/src/test/resources/META-INF/dirigible/test/kronos/util/util.xsjs @@ -1,4 +1,5 @@ -var assertTrue = require('test/assert').assertTrue; +import { Assert } from 'test/assert'; + var util = $.util; var response = require('http/response'); var random1 = util.createUuid(); @@ -17,7 +18,7 @@ var zip1ArrayBuffer = zip1.asArrayBuffer(); var zip2 = new util.Zip({source: zipSource}); -assertTrue(random1 != random2 && +Assert.assertTrue(random1 != random2 && convertedBuff === "This is a Uint8Array converted to a string" && JSON.stringify(zip1ArrayBuffer) === JSON.stringify(zipSource) && zip2['kronos.txt'] === 'This is Kronos' diff --git a/components/engine-xsodata/src/test/java/com/codbex/kronos/engine/xsodata/transformers/ODataParserTest.java b/components/engine-xsodata/src/test/java/com/codbex/kronos/engine/xsodata/transformers/ODataParserTest.java index bb3b15223..ad8c1f5e1 100644 --- a/components/engine-xsodata/src/test/java/com/codbex/kronos/engine/xsodata/transformers/ODataParserTest.java +++ b/components/engine-xsodata/src/test/java/com/codbex/kronos/engine/xsodata/transformers/ODataParserTest.java @@ -452,15 +452,15 @@ private void mockGetTablesFailWhenSynonym() throws Exception { } /** - * Mock get table. - * - * @throws Exception the exception - */ - private void mockGetTable() throws Exception { - //when(mockDataSource.getConnection()).thenReturn(mockConnection); - when(mockConnection.prepareStatement(anyString())).thenReturn(mockPreparedStatement); - //when(mockPreparedStatement.executeQuery()).thenReturn(mockResultSet); - } + * Mock get table. + * + * @throws Exception the exception + */ + private void mockGetTable() throws Exception { + // when(mockDataSource.getConnection()).thenReturn(mockConnection); + when(mockConnection.prepareStatement(anyString())).thenReturn(mockPreparedStatement); + // when(mockPreparedStatement.executeQuery()).thenReturn(mockResultSet); + } /** * Mock DB artifacts by name missing. diff --git a/pom.xml b/pom.xml index 6dcc4b9fe..45ba9028a 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.codbex.platform codbex-platform-parent - 1.0.35 + 1.0.36