Skip to content

Conversation

@yagudin10
Copy link
Member

No description provided.

HocKu7
HocKu7 previously approved these changes Nov 27, 2025
@Test
public void testGetObjectReturnsForDatabaseNode() {
WebSession session = Mockito.mock(WebSession.class);
Mockito.when(session.getLocale()).thenReturn("en");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 2 line can be moved in @Before or @BeforeEach setup

public DBPDataSourceRegistry getDataSourceRegistry() {
return registry;
}
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can move all the code above to setup method

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really, different mocks

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, ds is different, but I think registry and project can be extracted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants