From 0ad01f70125260ad28915f99dd73a75c017a8eec Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Wed, 08 Jul 2026 16:14:25 +0000
Subject: [PATCH] Revive the quicksetup test suite (#694)
---
opendj-server-legacy/src/test/java/org/opends/quicksetup/util/FileManagerTest.java | 29 +++++++++++++++--------------
1 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/quicksetup/util/FileManagerTest.java b/opendj-server-legacy/src/test/java/org/opends/quicksetup/util/FileManagerTest.java
index 653d7ac..99e6d23 100644
--- a/opendj-server-legacy/src/test/java/org/opends/quicksetup/util/FileManagerTest.java
+++ b/opendj-server-legacy/src/test/java/org/opends/quicksetup/util/FileManagerTest.java
@@ -13,6 +13,7 @@
*
* Copyright 2006-2008 Sun Microsystems, Inc.
* Portions Copyright 2014-2015 ForgeRock AS.
+ * Portions Copyright 2026 3A Systems, LLC
*/
package org.opends.quicksetup.util;
@@ -42,7 +43,7 @@
* FileManager Tester.
*/
@SuppressWarnings("javadoc")
-@Test(groups = {"slow"}, sequential=true)
+@Test(sequential=true)
public class FileManagerTest extends QuickSetupTestCase {
private File fmWorkspace;
@@ -75,7 +76,7 @@
* Tests synchronized.
* @throws Exception if something unexpected
*/
- @Test(enabled = false)
+ @Test
public void testSynchronize() throws Exception {
File s = new File(fmWorkspace, "s");
File t = new File(fmWorkspace, "t");
@@ -149,7 +150,7 @@
*
* @throws Exception If the test failed unexpectedly.
*/
- @Test(enabled = false)
+ @Test
public void testRenameFileExistentTarget() throws Exception {
File src = File.createTempFile("src", null);
File target = File.createTempFile("target", null);
@@ -189,7 +190,7 @@
* Tests basic move.
* @throws Exception if something unexpected
*/
- @Test(enabled = false)
+ @Test
public void testMove() throws Exception {
File fromDir = new File(fmWorkspace, "from");
@@ -210,7 +211,7 @@
* Tests basic move with filtering.
* @throws Exception if something unexpected
*/
- @Test(enabled = false)
+ @Test
public void testMove2() throws Exception {
File fromDir = new File(fmWorkspace, "from");
fromDir.mkdir();
@@ -237,7 +238,7 @@
* Tests basic delete.
* @throws Exception if something unexpected
*/
- @Test(enabled = false)
+ @Test
public void testDelete() throws Exception {
File dir = new File(fmWorkspace, "dir");
dir.mkdir();
@@ -256,7 +257,7 @@
* Tests basic delete with filtering.
* @throws Exception if something unexpected
*/
- @Test(enabled = false)
+ @Test
public void testDelete2() throws Exception {
// Create a filter that should reject the operation
@@ -284,7 +285,7 @@
* Test recursive delete.
* @throws Exception if something unexpected
*/
- @Test(enabled = false)
+ @Test
public void testDeleteRecursively() throws Exception {
File dir = new File(fmWorkspace, "dir");
createSourceFiles(dir, "abc");
@@ -297,7 +298,7 @@
* Test recursive delete with filtering.
* @throws Exception if something unexpected
*/
- @Test(enabled = false)
+ @Test
public void testDeleteRecursively1() throws Exception {
File dir = new File(fmWorkspace, "dir");
createSourceFiles(dir, "abc");
@@ -340,7 +341,7 @@
* Test basic copy.
* @throws Exception if something unexpected
*/
- @Test(enabled = false)
+ @Test
public void testCopy() throws Exception {
File file = new File(fmWorkspace, "file");
writeContents(file, "abc");
@@ -369,7 +370,7 @@
* Make sure things fail if target is a file and not a directory.
* @throws Exception if something unexpected
*/
- @Test(enabled = false)
+ @Test
public void testCopy2() throws Exception {
File file = new File(fmWorkspace, "file");
String NEW_CHILD_CONTENT = "new";
@@ -393,7 +394,7 @@
* Test copy recursively.
* @throws Exception if something unexpected
*/
- @Test(enabled = false)
+ @Test
public void testCopyRecursively() throws Exception {
File source = new File(fmWorkspace, "source");
createSourceFiles(source, "abc");
@@ -411,7 +412,7 @@
* Tests copy recursively with filtering.
* @throws Exception if something unexpected
*/
- @Test(enabled = false)
+ @Test
public void testCopyRecursively1() throws Exception {
// Test that a filter can stop a delete altogether
FileFilter rejectOpFilter = new FileFilter() {
@@ -459,7 +460,7 @@
* Tests copy recursively with filtering and overwrite.
* @throws Exception if something unexpected
*/
- @Test(enabled = false)
+ @Test
public void testCopyRecursively2() throws Exception {
File source = new File(fmWorkspace, "source");
String FILES_TO_COPY = "to copy";
--
Gitblit v1.10.0