-
Notifications
You must be signed in to change notification settings - Fork 495
dbeaver/pro#7636 add and fix tests #3940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: devel
Are you sure you want to change the base?
Conversation
server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/utils/WebTestUtils.java
Show resolved
Hide resolved
...o.cloudbeaver.test.platform/src/io/cloudbeaver/model/navigator/WebNavigatorNodeInfoTest.java
Outdated
Show resolved
Hide resolved
| @Test | ||
| public void testGetObjectReturnsForDatabaseNode() { | ||
| WebSession session = Mockito.mock(WebSession.class); | ||
| Mockito.when(session.getLocale()).thenReturn("en"); |
There was a problem hiding this comment.
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; | ||
| } | ||
| }; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not really, different mocks
There was a problem hiding this comment.
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
No description provided.