Skip to content

Commit 6f9d655

Browse files
committed
fix(test): fix test for LicenseTest
Signed-off-by: Gaurav Mishra <[email protected]>
1 parent 8bbf257 commit 6f9d655

File tree

1 file changed

+1
-1
lines changed
  • rest/resource-server/src/test/java/org/eclipse/sw360/rest/resourceserver/integration

1 file changed

+1
-1
lines changed

rest/resource-server/src/test/java/org/eclipse/sw360/rest/resourceserver/integration/LicenseTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ public void before() throws TException, IOException {
165165
given(this.licenseServiceMock.importOsadlInformation(any())).willReturn(testRequestSummary);
166166
given(this.licenseServiceMock.addLicenseType(any(), any(), any())).willReturn(RequestStatus.SUCCESS);
167167
given(this.sw360ReportServiceMock.getLicenseBuffer()).willReturn(ByteBuffer.allocate(10000));
168+
given(this.licenseServiceMock.importSpdxInformation(any())).willReturn(new RequestSummary().setRequestStatus(RequestStatus.SUCCESS));
168169

169170
doNothing().when(licenseServiceMock).deleteLicenseById(any(), any());
170171
doNothing().when(licenseServiceMock).deleteAllLicenseInfo(any());
171-
doNothing().when(licenseServiceMock).importSpdxInformation(any());
172172
doNothing().when(licenseServiceMock).getDownloadLicenseArchive(any(), any(), any());
173173
doNothing().when(licenseServiceMock).uploadLicense(any(), any(), anyBoolean(), anyBoolean());
174174
}

0 commit comments

Comments
 (0)