Fix mock tests

This commit is contained in:
Tour
2025-12-04 04:30:44 +01:00
parent e71d52be8a
commit 9857f053a1
41 changed files with 35 additions and 79 deletions

View File

@@ -4,8 +4,8 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.auction</groupId>
<artifactId>troostwijk-scraper</artifactId>
<groupId>auctiora</groupId>
<artifactId>auctiora</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

View File

@@ -15,6 +15,6 @@ set DATABASE_FILE=C:\mnt\okcomputer\output\cache.db
set NOTIFICATION_CONFIG=desktop
REM Check status
java -jar target\troostwijk-scraper-1.0-SNAPSHOT-jar-with-dependencies.jar status
java -jar target\auctiora-1.0-SNAPSHOT-jar-with-dependencies.jar status
pause

View File

@@ -22,6 +22,6 @@ REM Optional: Set for email notifications
REM set NOTIFICATION_CONFIG=smtp:your@gmail.com:app_password:your@gmail.com
REM Run the application
java -jar target\troostwijk-scraper-1.0-SNAPSHOT-jar-with-dependencies.jar workflow
java -jar target\auctiora-1.0-SNAPSHOT-jar-with-dependencies.jar workflow
pause

View File

@@ -11,12 +11,12 @@
#
# ============================================================================
Write-Host "=== Troostwijk Auction Monitor - Task Scheduler Setup ===" -ForegroundColor Cyan
Write-Host "=== Auctiora Monitor - Task Scheduler Setup ===" -ForegroundColor Cyan
Write-Host ""
# Configuration
$scriptPath = $PSScriptRoot
$jarPath = Join-Path $scriptPath "target\troostwijk-scraper-1.0-SNAPSHOT-jar-with-dependencies.jar"
$jarPath = Join-Path $scriptPath "target\auctiora-1.0-SNAPSHOT-jar-with-dependencies.jar"
$javaExe = "java"
# Check if JAR exists

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import java.time.LocalDateTime;

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.inject.Produces;

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import jakarta.inject.Inject;
import jakarta.ws.rs.*;
@@ -6,7 +6,6 @@ import jakarta.ws.rs.core.MediaType;
import jakarta.ws.rs.core.Response;
import org.jboss.logging.Logger;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
/**
* Simple console output utility (renamed from IO to avoid Java 25 conflict)

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import java.sql.DriverManager;
import java.sql.SQLException;

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import java.io.IOException;
import java.nio.file.Files;

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import java.time.Duration;
import java.time.LocalDateTime;

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import org.opencv.core.Core;

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import javax.mail.Authenticator;
import javax.mail.Message.RecipientType;

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import org.opencv.core.Mat;
import org.opencv.core.Scalar;

View File

@@ -1,14 +1,11 @@
package com.auction;
package auctiora;
import io.quarkus.scheduler.Scheduled;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import javax.xml.crypto.KeySelector.Purpose;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.jboss.logging.Logger;
import java.io.IOException;
import java.sql.SQLException;
import java.util.List;
/**

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import jakarta.enterprise.context.ApplicationScoped;
import org.eclipse.microprofile.config.inject.ConfigProperty;

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import java.sql.ResultSet;
import java.sql.SQLException;

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;

View File

@@ -1,8 +1,7 @@
package com.auction;
package auctiora;
import java.io.IOException;
import java.sql.SQLException;
import java.time.LocalDateTime;
import java.util.List;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

View File

@@ -1,5 +1,5 @@
# Application Configuration
quarkus.application.name=troostwijk-scraper
quarkus.application.name=auctiora
quarkus.application.version=1.0-SNAPSHOT
# HTTP Configuration

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import org.junit.jupiter.api.*;
import java.io.IOException;

View File

@@ -1,9 +1,8 @@
package com.auction;
package auctiora;
import org.junit.jupiter.api.*;
import org.mockito.ArgumentCaptor;
import java.io.ByteArrayInputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.sql.SQLException;

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import org.junit.jupiter.api.*;

View File

@@ -1,6 +1,5 @@
package com.auction;
package auctiora;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

View File

@@ -1,11 +1,10 @@
package com.auction;
package auctiora;
import org.junit.jupiter.api.*;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import com.vladsch.flexmark.html2md.converter.FlexmarkHtmlConverter;
import org.jsoup.Jsoup;

View File

@@ -1,8 +1,7 @@
package com.auction;
package auctiora;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.DisplayName;
import org.mockito.Mockito;
import java.sql.ResultSet;
import java.sql.SQLException;

View File

@@ -1,4 +1,4 @@
package com.auction;
package auctiora;
import org.junit.jupiter.api.*;

View File

@@ -23,39 +23,4 @@ Configure your devices to use the Pi-hole as their DNS server │
fdc5:59a6:9ac1:f11f:2c86:25d3:6282:37ef
fdc5:59a6:9ac1:f11f:bd8c:6e87:65f0:243c
fe80::a05b:bbc6:d47f:3002%enp9s0
2IXD-XJN9-C337-1K4Y-BBEO-HV1F-3BVI
https://ollama.lan:9443/#!/wizard - heel-goed-wachtwoord
[
{
"domain": "ollama.lan",
"answer": "192.168.1.159",
"enabled": true
},
{
"domain": "hephaestus.lan",
"answer": "192.168.1.159",
"enabled": true
},
{
"domain": "hermes.lan",
"answer": "192.168.137.239",
"enabled": true
},
{
"domain": "atlas.lan",
"answer": "192.168.1.100",
"enabled": true
},
{
"domain": "hub.lan",
"answer": "192.168.1.1",
"enabled": true
},
{
"domain": "ha.lan",
"answer": "192.168.1.193",
"enabled": true
}
]
2IXD-XJN9-C337-1K4Y-BBEO-HV1F-3BVI

View File

@@ -181,9 +181,9 @@ public class StartupCheck implements HealthCheck { /* ... */ }
# Build stage
FROM maven:3.9-eclipse-temurin-25-alpine AS build
WORKDIR /app
COPY pom.xml ./
COPY ../pom.xml ./
RUN mvn dependency:go-offline -B
COPY src/ ./src/
COPY ../src ./src/
RUN mvn package -DskipTests -Dquarkus.package.jar.type=fast-jar
# Runtime stage