Skip to content

Commit

Permalink
Add missing fullstops in comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaura committed Nov 22, 2024
1 parent 22415d3 commit b71a3cc
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ public class OrgResourceResolverServiceTest {
@BeforeClass
public void init() {

// Open mock objects for the current test instance
// Open mock objects for the current test instance.
openMocks(this);

// Set the OrganizationManager and ApplicationManagementService to the data holder for use in tests
OrgResourceHierarchyTraverseServiceDataHolder.getInstance().setOrganizationManager(organizationManager);
OrgResourceHierarchyTraverseServiceDataHolder.getInstance()
.setApplicationManagementService(applicationManagementService);

// Initialize the aggregation strategies with the appropriate strategy types
// Initialize the aggregation strategies with the appropriate strategy types.
firstFoundAggregationStrategy = new FirstFoundAggregationStrategy<>();
mergeAllAggregationStrategy = new MergeAllAggregationStrategy<>(this::resourceMerger);
}
Expand All @@ -107,23 +107,23 @@ public void init() {
@BeforeMethod
public void setUp() throws Exception {

// Mock responses for the organization manager with different ancestor organization chains
// Mock responses for the organization manager with different ancestor organization chains.
mockAncestorOrganizationRetrieval(Arrays.asList(L2_ORG_ID, L1_ORG_ID, ROOT_ORG_ID));
mockAncestorOrganizationRetrieval(Arrays.asList(L1_ORG_ID, ROOT_ORG_ID));
mockAncestorOrganizationRetrieval(Collections.singletonList(ROOT_ORG_ID));

// Mock responses for the application management service with corresponding application ancestor data
// Mock responses for the application management service with corresponding application ancestor data.
mockAncestorApplicationRetrieval(Arrays.asList(L2_ORG_ID, L1_ORG_ID, ROOT_ORG_ID),
Arrays.asList(L2_APP_ID, L1_APP_ID, ROOT_APP_ID));
mockAncestorApplicationRetrieval(Arrays.asList(L1_ORG_ID, ROOT_ORG_ID),
Arrays.asList(L1_APP_ID, ROOT_APP_ID));
mockAncestorApplicationRetrieval(Collections.singletonList(ROOT_ORG_ID),
Collections.singletonList(ROOT_APP_ID));

// Initialize the mock resource management service used in tests
// Initialize the mock resource management service used in tests.
mockResourceManagementService = new MockResourceManagementService();

// Instantiate the OrgResourceResolverService for testing
// Instantiate the OrgResourceResolverService for testing.
orgResourceResolverService = new OrgResourceResolverServiceImpl();
}

Expand All @@ -133,7 +133,7 @@ public void setUp() throws Exception {
@AfterMethod
public void tearDown() {

// Reset the mock services to their default state after each test
// Reset the mock services to their default state after each test.
reset(organizationManager);
reset(applicationManagementService);
}
Expand Down

0 comments on commit b71a3cc

Please sign in to comment.