Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
56a77f9
Initial migration from TestNG to JUnit 5
Knud-Aage Dec 11, 2025
d41038e
Initial
Knud-Aage Dec 15, 2025
f50949f
Merge remote-tracking branch 'origin/master' into BITMAG-1244-replace…
Knud-Aage Dec 16, 2025
7ec116c
Changes due to PR
Knud-Aage Dec 16, 2025
305d6fa
Working but with errors in a few tests.
Knud-Aage Dec 17, 2025
c58d749
Merge remote-tracking branch 'origin/BITMAG-1244-replace-testng-with-…
Knud-Aage Dec 17, 2025
155ad25
Put a @Disabled at testManyTimes() and commented it out, so people ca…
Knud-Aage Dec 17, 2025
8d421a4
The branch has now the same test methods that are wrong, but mvn clea…
Knud-Aage Dec 18, 2025
6d94dcf
Able to test in junit
Knud-Aage Dec 18, 2025
330c1ef
Merge branch 'BITMAG-1244-junit-bitrepository-core' into BITMAG-1244-…
Knud-Aage Dec 18, 2025
56f5133
Many tests migrated to junit but a log missing
Knud-Aage Dec 19, 2025
5888407
All tests succeeds after having been migrated from TestNG to JUnit 5
Knud-Aage Dec 26, 2025
f96a705
Removed the TestNG dependency
Knud-Aage Jan 1, 2026
7553d82
The suite classes looks for tags instead of classes
Knud-Aage Jan 5, 2026
c565330
Modified setupPillarIntegrationTest method so it reflects junit 5 ins…
Knud-Aage Jan 5, 2026
bbeace6
Now closer to without testng
Knud-Aage Jan 6, 2026
f38d907
All the tests has been migrated to use allure instead of jaccept beca…
Knud-Aage Jan 12, 2026
86ee150
The disableness annotations have been commented out to enable stress …
Knud-Aage Jan 13, 2026
dc838ff
Minor adjustments
Knud-Aage Jan 13, 2026
6ddc6fa
Merge branch 'BITMAG-1244-testng-junit-all' into BITMAG-1244-remove-j…
Knud-Aage Jan 14, 2026
b8e8b1e
Removed allure errors and updated test
Knud-Aage Jan 16, 2026
c3ffb66
Changes to pom.xml to ensure allure tests folders are correctly confi…
Knud-Aage Jan 20, 2026
c99b44c
Changes due to PR review
Knud-Aage Jan 21, 2026
af01ae1
Changes due to PR review
Knud-Aage Jan 21, 2026
c5a6865
Changes due to PR review
Knud-Aage Jan 21, 2026
66b0dfb
Changes due to PR review
Knud-Aage Jan 21, 2026
3ed247d
Changes due to PR review
Knud-Aage Jan 21, 2026
ffb86f3
Changes due to PR review
Knud-Aage Jan 21, 2026
321294c
Changes due to PR review
Knud-Aage Jan 25, 2026
139bd5f
Changes due to PR review
Knud-Aage Jan 25, 2026
f9b322f
Changes due to PR review
Knud-Aage Jan 26, 2026
a695e1e
In the middle of refactoring
Knud-Aage Jan 27, 2026
6c0f819
In the middle of refactoring
Knud-Aage Jan 29, 2026
bea4ac8
In the middle of refactoring
Knud-Aage Jan 29, 2026
77c8b58
In the middle of refactoring
Knud-Aage Jan 29, 2026
f215c86
In the middle of refactoring
Knud-Aage Feb 4, 2026
9a7f463
Mostly works
Asger-KB Feb 4, 2026
0c83df0
Suite config
Asger-KB Feb 4, 2026
3f96515
No response tests
Asger-KB Feb 4, 2026
6134673
Ready for PR
Knud-Aage Feb 5, 2026
0caaece
Merge branch 'BITMAG-1244-testng-junit-all-asga' into BITMAG-1244-rem…
Knud-Aage Feb 5, 2026
6274dd6
Merged in the source branch
Knud-Aage Feb 6, 2026
f2dddfc
Ready for PR
Knud-Aage Feb 7, 2026
05f60e0
All unit tests passes
Knud-Aage Feb 7, 2026
3c4b9ef
Merge branch 'BITMAG-1244-testng-junit-all-asga' into BITMAG-1244-rem…
Knud-Aage Feb 8, 2026
75c0133
All unit tests passes
Knud-Aage Feb 9, 2026
e052d65
In pom.xml: Removed the commented out dependency of TestNG
Knud-Aage Feb 9, 2026
2847c77
Refactored due to PR
Knud-Aage Feb 10, 2026
b8051ce
Removed forbidden reflection
Asger-KB Feb 10, 2026
8e51496
Removed many static import
Knud-Aage Feb 11, 2026
7f37791
Refactored due to PR review
Knud-Aage Feb 12, 2026
f148f8d
Refactored due to PR review
Knud-Aage Feb 14, 2026
5e25f94
Merge branch 'BITMAG-1244-testng-junit-all-asga' into BITMAG-1244-rem…
Knud-Aage Feb 15, 2026
967e702
Merged and refactored with migration from TestNG to JUnit version
Knud-Aage Feb 16, 2026
c0ed598
Reduced most of the places that the line exceeds 120 characters.
Knud-Aage Feb 16, 2026
8184ea4
Reduced most of the places that the line exceeds 120 characters.
Knud-Aage Feb 16, 2026
b5ce23e
Refactoring due to PR
Knud-Aage Feb 17, 2026
07dbeac
Refactoring due to PR
Knud-Aage Feb 17, 2026
b2f357b
Refactoring due to PR
Knud-Aage Feb 17, 2026
f105470
Merge branch 'BITMAG-1244-testng-junit-all-asga' into BITMAG-1244-rem…
Knud-Aage Feb 18, 2026
afdf49f
Merged with testng junit all asga
Knud-Aage Feb 19, 2026
74c7282
Merge remote-tracking branch 'origin/master' into BITMAG-1244-remove-…
Knud-Aage Feb 19, 2026
3f7627b
Fixing merge errors
Knud-Aage Feb 20, 2026
6eb1890
Fixing merge errors
Knud-Aage Feb 20, 2026
1d5e68a
Fixing merge errors
Knud-Aage Feb 20, 2026
decf0e7
All the Allure reports are put in one folder in the bitrepository/tar…
Knud-Aage Mar 4, 2026
cb41730
The stress tests that gave a lot of files in the reference pillars re…
Knud-Aage Mar 4, 2026
02b9971
Merged in AllureTestUtils improvements and added code for handling Al…
Knud-Aage Mar 5, 2026
b45b028
Handles AllureLifecycle logging aas noise which isn't really errors a…
Knud-Aage Mar 5, 2026
053a783
Placed AllureTestUtils and AllureEventLogger in common/utils
Knud-Aage Mar 6, 2026
8d9f6d6
Refactore of AllureTestUtils and removed jaccept.properties file sinc…
Knud-Aage Mar 6, 2026
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
9 changes: 9 additions & 0 deletions bitrepository-alarm-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@

<build>
<plugins>
<plugin>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-maven</artifactId>
<version>2.12.0</version>
<configuration>
<resultsDirectory>${project.build.directory}/allure-results</resultsDirectory>
<reportDirectory>${project.build.directory}/allure-report</reportDirectory>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,29 @@
* Copyright (C) 2010 - 2012 The State and University Library, The Royal Library and The State Archives, Denmark
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 2.1 of the
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 2.1 of the
* License, or (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-2.1.html>.
* #L%
*/
package org.bitrepository.alarm;

import org.jaccept.structure.ExtendedTestCase;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

public class AlarmExceptionTest extends ExtendedTestCase {
import static org.bitrepository.common.utils.AllureTestUtils.addDescription;

public class AlarmExceptionTest {

@Test
@Tag("regressiontest")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,21 @@
*/
package org.bitrepository.alarm.handler;

import org.bitrepository.SuiteInfoParameterResolver;
import org.bitrepository.alarm.handling.AlarmHandler;
import org.bitrepository.alarm.handling.AlarmMediator;
import org.bitrepository.bitrepositorymessages.AlarmMessage;
import org.bitrepository.bitrepositorymessages.Message;
import org.bitrepository.protocol.IntegrationTest;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

import static org.bitrepository.common.utils.AllureTestUtils.addDescription;
import static org.bitrepository.common.utils.AllureTestUtils.addStep;
import static org.junit.jupiter.api.Assertions.assertEquals;

@ExtendWith(SuiteInfoParameterResolver.class)
public class AlarmHandlerTest extends IntegrationTest {
@Test
@Tag("regressiontest")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,20 @@
package org.bitrepository.alarm.store;

import org.bitrepository.bitrepositoryelements.AlarmCode;
import org.jaccept.structure.ExtendedTestCase;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;

import java.util.Date;

import static org.bitrepository.common.utils.AllureTestUtils.addDescription;
import static org.bitrepository.common.utils.AllureTestUtils.addStep;

/**
* Runs ExtendedTestCase with a regression test.
*/

public class AlarmDatabaseExtractionModelTest extends ExtendedTestCase {
public class AlarmDatabaseExtractionModelTest {
@Test
@Tag("regressiontest")
public void alarmExceptionTest() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@
import org.bitrepository.service.database.DBConnector;
import org.bitrepository.service.database.DatabaseUtils;
import org.bitrepository.service.database.DerbyDatabaseDestroyer;
import org.jaccept.structure.ExtendedTestCase;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.*;

import java.io.File;
import java.text.ParseException;
Expand All @@ -47,11 +40,14 @@
import java.util.List;
import java.util.Locale;

import static org.bitrepository.common.utils.AllureTestUtils.addDescription;
import static org.bitrepository.common.utils.AllureTestUtils.addStep;

/**
* Sees if alarms are correctly stored in the database.
*/
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class AlarmDatabaseTest extends ExtendedTestCase {
public class AlarmDatabaseTest {
/**
* The settings for the tests. Should be instantiated in the setup.
*/
Expand Down
9 changes: 9 additions & 0 deletions bitrepository-audit-trail-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@

<build>
<plugins>
<plugin>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-maven</artifactId>
<version>2.12.0</version>
<configuration>
<resultsDirectory>${project.basedir}/allure-results</resultsDirectory>
<reportDirectory>${project.basedir}/allure-report</reportDirectory>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import org.bitrepository.service.AlarmDispatcher;
import org.bitrepository.service.contributor.ContributorMediator;
import org.bitrepository.settings.repositorysettings.Collection;
import org.jaccept.structure.ExtendedTestCase;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
Expand All @@ -49,14 +48,19 @@
import java.math.BigInteger;
import java.util.concurrent.ThreadFactory;

import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
import static org.bitrepository.common.utils.AllureTestUtils.addDescription;
import static org.bitrepository.common.utils.AllureTestUtils.addStep;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.ArgumentMatchers.isNull;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.timeout;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;

@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class AuditTrailServiceTest extends ExtendedTestCase {
/**
* The settings for the tests. Should be instantiated in the setup.
*/
public class AuditTrailServiceTest {
/** The settings for the tests. Should be instantiated in the setup. */
Settings settings;

public static final String TEST_COLLECTION = "dummy-collection";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,26 @@
import org.bitrepository.common.utils.SettingsUtils;
import org.bitrepository.service.AlarmDispatcher;
import org.bitrepository.settings.repositorysettings.Collection;
import org.jaccept.structure.ExtendedTestCase;
import org.junit.jupiter.api.*;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.mockito.ArgumentCaptor;

import javax.xml.datatype.DatatypeFactory;

import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
import static org.bitrepository.common.utils.AllureTestUtils.addDescription;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.ArgumentMatchers.isNull;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.timeout;
import static org.mockito.Mockito.verify;

@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class AuditCollectorTest extends ExtendedTestCase {
/**
* The settings for the tests. Should be instantiated in the setup.
*/
public class AuditCollectorTest {
/** The settings for the tests. Should be instantiated in the setup.*/
Settings settings;

public static final String TEST_COLLECTION = "dummy-collection";
Expand Down Expand Up @@ -81,8 +87,8 @@ public void auditCollectorIntervalTest() throws Exception {
ArgumentCaptor<EventHandler> eventHandlerCaptor = ArgumentCaptor.forClass(EventHandler.class);
verify(client, timeout(3000).times(1)).getAuditTrails(eq(TEST_COLLECTION),
any(AuditTrailQuery[].class), isNull(), isNull(), eventHandlerCaptor.capture(), any(String.class));
EventHandler eventHandler = eventHandlerCaptor.getValue();

EventHandler eventHandler = eventHandlerCaptor.getValue();
Assertions.assertNotNull(eventHandler, "Should have an event handler");
eventHandler.handleEvent(new AuditTrailResult(DEFAULT_CONTRIBUTOR, TEST_COLLECTION,
new ResultingAuditTrails(), false));
Expand All @@ -95,7 +101,7 @@ public void auditCollectorIntervalTest() throws Exception {
eventHandler.handleEvent(new AuditTrailResult(DEFAULT_CONTRIBUTOR, TEST_COLLECTION,
new ResultingAuditTrails(), false));
eventHandler.handleEvent(new CompleteEvent(TEST_COLLECTION, null));

collector.close();
}
}
Loading