Skip to content
Merged
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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Mock SQL tables
- Mock batch file I/O


## \[0.2.17\] 2025-04-02
- Made sure we are using the correct encoding

## \[0.2.16\] 2024-12-05
- Fixed a bug an extra space would be added to the list of mocks, which would create issues when looking for mocks.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
id 'jacoco'
}

def productVersion = '0.2.16'
def productVersion = '0.2.17'
def productName = 'cobol-check'
group = 'org.openmainframeproject'
description = 'Unit testing framework for Cobol'
Expand Down
Binary file added build/distributions/cobol-check-0.2.17.zip
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.openmainframeproject.cobolcheck.services.cobolLogic.replace;

import org.openmainframeproject.cobolcheck.services.filehelpers.EncodingIO;
import org.openmainframeproject.cobolcheck.services.log.Log;
import org.openmainframeproject.cobolcheck.services.log.LogLevel;

Expand Down Expand Up @@ -162,9 +163,9 @@ public static String replaceInProgram(File program) {
String newFileName = program+"_MOD";
Log.warn("Replace.replaceInProgram(): Writing the COBOL program file: " + newFileName);
try {
BufferedWriter writer = new BufferedWriter(new FileWriter(newFileName));
BufferedWriter writer = (BufferedWriter) EncodingIO.getWriterWithCorrectEncoding(newFileName);
// read the program one line at the time
BufferedReader reader = new BufferedReader(new FileReader(program));
BufferedReader reader = (BufferedReader) EncodingIO.getReaderWithCorrectEncoding(String.valueOf(program));
//for every line in the program, replace and write to output file
String line;
int lineCount = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class Initializer {
private StatusController statusController;

public Initializer(String[] args) {
Log.info(Messages.get("INF000", "0.2.14"));
Log.info(Messages.get("INF000", "0.2.17"));
argumentController = new ArgumentHandlerController(args);
environmentController = new EnvironmentSetupController();
statusController = new StatusController();
Expand Down
3 changes: 2 additions & 1 deletion vs-code-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

All notable changes to the "cobol-unit-test" extension will be documented in this file. Versioning according to SemVer: https://semver.org/


## [0.4.11] 02.04.2025
- Now using COBOL Check version 0.2.17

## [0.4.10] 26.02.2025
- Now using COBOL Check version 0.2.16
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion vs-code-extension/client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { getContentFromFilesystem, MarkdownTestData, TestCase, testData, TestFil
let externalVsCodeInstallationDir = vscode.extensions.getExtension("openmainframeproject.cobol-check-extension").extensionPath;
let configPath = appendPath(externalVsCodeInstallationDir, 'Cobol-check/config.properties');
let defaultConfigPath = appendPath(externalVsCodeInstallationDir, 'Cobol-check/default.properties');
let cobolCheckJarPath = appendPath(externalVsCodeInstallationDir, 'Cobol-check/bin/cobol-check-0.2.16.jar');
let cobolCheckJarPath = appendPath(externalVsCodeInstallationDir, 'Cobol-check/bin/cobol-check-0.2.17.jar');
let currentPlatform = getOS();


Expand Down
2 changes: 1 addition & 1 deletion vs-code-extension/client/src/services/TestTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { handleCobolCheckOut } from '../Helpers/ExtensionHelper';
const textDecoder = new TextDecoder('utf-8');
let externalVsCodeInstallationDir = vscode.extensions.getExtension("openmainframeproject.cobol-check-extension").extensionPath;
let configPath = appendPath(externalVsCodeInstallationDir, 'Cobol-check/config.properties');
let cobolCheckJarPath = appendPath(externalVsCodeInstallationDir, 'Cobol-check/bin/cobol-check-0.2.16.jar');
let cobolCheckJarPath = appendPath(externalVsCodeInstallationDir, 'Cobol-check/bin/cobol-check-0.2.17.jar');



Expand Down
4 changes: 2 additions & 2 deletions vs-code-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"Snippets"
],
"description": "Extension for running unit tests in Cobol",
"version": "0.4.10",
"version": "0.4.11",
"icon": "images/cobol-check-logo-small.png",
"repository": {
"type": "git",
Expand Down Expand Up @@ -40,7 +40,7 @@
}
],
"description": "Extension for running unit tests in Cobol",
"version": "0.4.10",
"version": "0.4.11",
"icon": "images/cobol-check-logo-small.png",
"repository": {
"type": "git",
Expand Down
Loading