From be4e694998219ee191d4ef09b5eb833f39f9d176 Mon Sep 17 00:00:00 2001 From: Pierre Romera Date: Tue, 8 Aug 2023 19:19:09 +0000 Subject: [PATCH] refactor: rename test functions --- .../java/org/icij/datashare/utils/DocumentVerifierTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datashare-app/src/test/java/org/icij/datashare/utils/DocumentVerifierTest.java b/datashare-app/src/test/java/org/icij/datashare/utils/DocumentVerifierTest.java index 260216ff6..68c3f44ba 100644 --- a/datashare-app/src/test/java/org/icij/datashare/utils/DocumentVerifierTest.java +++ b/datashare-app/src/test/java/org/icij/datashare/utils/DocumentVerifierTest.java @@ -29,13 +29,13 @@ public void setUp() { } @Test - public void testIsRootDocumentSizeAllowed_RootDocument() { + public void test_is_root_document_size_allowed_true_for_root_document() { Document doc = DocumentBuilder.createDoc("foo").withContentLength(2L * 1024 * 1024 * 1024).build(); assertTrue(documentVerifier.isRootDocumentSizeAllowed(doc)); } @Test - public void testIsRootDocumentSizeAllowed_SizeAllowed() { + public void test_is_root_document_size_allowed_true_for_small_root_document() { Project project = new Project("local-datashare"); Document rootDoc = DocumentBuilder.createDoc("bar").with(project).withContentLength(1024).build(); Document doc = DocumentBuilder.createDoc("foo").with(project).withParentId("bar").withRootId("bar").build(); @@ -47,7 +47,7 @@ public void testIsRootDocumentSizeAllowed_SizeAllowed() { } @Test - public void testIsRootDocumentSizeAllowed_SizeNotAllowed() { + public void test_is_root_document_size_allowed_false_for_big_root_document() { Project project = new Project("local-datashare"); Document rootDoc = DocumentBuilder.createDoc("bar").with(project).withContentLength(1024).build(); Document doc = DocumentBuilder.createDoc("foo").with(project).withParentId("bar").withRootId("bar").build();