Skip to content

Commit 419f41b

Browse files
fix(ItemAuthorities): add unit tests for refactored methods and inheritance
ref: DSC-2848
1 parent 942d288 commit 419f41b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

dspace-api/src/test/java/org/dspace/content/authority/ItemAuthorityTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ public void testGetSourceWithDefaultValue() {
5656
@Test
5757
public void testAuthorityNameIsProtected() {
5858
itemAuthority.setPluginInstanceName("testProtectedAccess");
59-
assertEquals("Authority name should be accessible", "testProtectedAccess", itemAuthority.getPluginInstanceName());
59+
assertEquals("Authority name should be accessible", "testProtectedAccess",
60+
itemAuthority.getPluginInstanceName());
6061
// Verify the field is protected by checking subclass access
6162
OpenPolicyFinderAuthority subAuthority = new OpenPolicyFinderAuthority();
6263
subAuthority.setPluginInstanceName("subAuthority");
63-
assertEquals("Subclass should access protected authorityName", "subAuthority", subAuthority.getPluginInstanceName());
64+
assertEquals("Subclass should access protected authorityName", "subAuthority",
65+
subAuthority.getPluginInstanceName());
6466
}
6567
}

0 commit comments

Comments
 (0)