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
10 changes: 6 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import java.time.LocalDate
import java.time.format.DateTimeFormatter

plugins {
// Core Gradle plugins
`java-library` // For creating reusable Java libraries
Expand All @@ -17,9 +20,6 @@ plugins {

// SonarQube configuration

import java.time.LocalDate
import java.time.format.DateTimeFormatter

val currentDate: String = LocalDate.now().format(DateTimeFormatter.ISO_DATE)

sonar {
Expand Down Expand Up @@ -125,7 +125,9 @@ dependencies {
implementation("com.typesafe:config:1.4.3") // Typesafe config

// === For tests ===
testImplementation("junit:junit:4.13.2") // Unit testing framework
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.0") // Use the latest stable version
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.12.0") // Use the latest stable version
testImplementation("org.junit.vintage:junit-vintage-engine:5.12.0") // Use the latest stable version

// === For viewing logs during development (DO NOT include in production) ===
runtimeOnly("org.slf4j:slf4j-simple:2.0.9") // Simple SLF4J implementation for logging
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package fr.inria.corese.core.compiler.eval;

import static org.junit.Assert.*;
import static org.junit.jupiter.api.Assertions.*;

public class HashTest {
@org.junit.Test
@org.junit.jupiter.api.Test
public void test1()
{
Hash hash = new Hash( "abc" );
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package fr.inria.corese.core.datatype;

import static org.junit.Assert.assertEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;

import javax.xml.datatype.DatatypeConfigurationException;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import fr.inria.corese.core.sparql.api.IDatatype;
import fr.inria.corese.core.sparql.datatype.CoreseDate;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package fr.inria.corese.core.datatype;

import static org.junit.Assert.assertEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;

import java.math.BigDecimal;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import fr.inria.corese.core.sparql.api.IDatatype;
import fr.inria.corese.core.sparql.datatype.CoreseDecimal;
Expand Down
Loading