Skip to content

Commit 44a73c3

Browse files
committed
improves standalone test
1 parent f0b3932 commit 44a73c3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/test/java/com/odysseusinc/arachne/datanode/service/DataNodeServiceStandaloneTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ public void createSuccessStandaloneMode() {
7171
User user = userService.findByUsername(Const.USER).orElseThrow(NotFoundException::new);
7272
DataNode dataNode = new DataNode();
7373
Mockito.when(centralIntegrationService.sendDataNodeCreationRequest(user, dataNode))
74-
.then(invocationOnMock -> dataNode);
74+
.then(invocationOnMock -> {
75+
throw new RuntimeException("should not be called in Standalone mode");
76+
});
7577
DataNode created = dataNodeService.create(user, dataNode);
7678
assertThat(created, notNullValue());
7779
assertThat(created.getId(), greaterThan(0L));

0 commit comments

Comments
 (0)