Skip to content

dbeaver/pro#7636 add and fix tests#3940

Merged
serge-rider merged 6 commits intodevelfrom
7636-add-tests
Dec 11, 2025
Merged

dbeaver/pro#7636 add and fix tests#3940
serge-rider merged 6 commits intodevelfrom
7636-add-tests

Conversation

@yagudin10
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

@serge-rider serge-rider merged commit e801f85 into devel Dec 11, 2025
9 of 10 checks passed
@serge-rider serge-rider deleted the 7636-add-tests branch January 11, 2026 04:45
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.

6 participants