You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by mi...@apache.org on 2025/08/27 15:33:24 UTC
(jackrabbit-oak) 07/09: OAK-11884 move the method
This is an automated email from the ASF dual-hosted git repository.
miroslav pushed a commit to branch issue/OAK-9212_2
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
commit 370fa7730536bbf9b5b06aa106e0595471c34c79
Author: Miroslav Smiljanic <mi...@apache.com>
AuthorDate: Wed Aug 27 17:10:31 2025 +0200
OAK-11884 move the method
---
.../oak/segment/azure/AzureArchiveManagerTest.java | 48 +++++++++++-----------
1 file changed, 24 insertions(+), 24 deletions(-)
diff --git a/oak-segment-azure/src/test/java/org/apache/jackrabbit/oak/segment/azure/AzureArchiveManagerTest.java b/oak-segment-azure/src/test/java/org/apache/jackrabbit/oak/segment/azure/AzureArchiveManagerTest.java
index 5d705b9f76..84f526455e 100644
--- a/oak-segment-azure/src/test/java/org/apache/jackrabbit/oak/segment/azure/AzureArchiveManagerTest.java
+++ b/oak-segment-azure/src/test/java/org/apache/jackrabbit/oak/segment/azure/AzureArchiveManagerTest.java
@@ -584,30 +584,6 @@ public class AzureArchiveManagerTest {
rwFileStore2.close();
}
- private PersistentCache createPersistenceCache() {
- return new AbstractPersistentCache() {
- @Override
- protected Buffer readSegmentInternal(long msb, long lsb) {
- return null;
- }
-
- @Override
- public boolean containsSegment(long msb, long lsb) {
- return false;
- }
-
- @Override
- public void writeSegment(long msb, long lsb, Buffer buffer) {
-
- }
-
- @Override
- public void cleanUp() {
-
- }
- };
- }
-
@Test
public void testListArchivesDoesNotReturnDeletedArchive() throws IOException, BlobStorageException {
// The archive manager should not return the archive which has "deleted" marker
@@ -632,6 +608,30 @@ public class AzureArchiveManagerTest {
assertFalse("Archive should not be listed after deleted marker is uploaded", archives.contains("data00000a.tar"));
}
+ private PersistentCache createPersistenceCache() {
+ return new AbstractPersistentCache() {
+ @Override
+ protected Buffer readSegmentInternal(long msb, long lsb) {
+ return null;
+ }
+
+ @Override
+ public boolean containsSegment(long msb, long lsb) {
+ return false;
+ }
+
+ @Override
+ public void writeSegment(long msb, long lsb, Buffer buffer) {
+
+ }
+
+ @Override
+ public void cleanUp() {
+
+ }
+ };
+ }
+
private static void assertDoesNotThrow(Executable executable) {
try {
executable.execute();