Skip to content

Commit

Permalink
refactor: rename test functions
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo authored and caro3801 committed Aug 10, 2023
1 parent 8721a28 commit be4e694
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit be4e694

Please sign in to comment.