@@ -134,7 +134,7 @@ public void buildConfigDriveTestNoVmDataAndNic() {
134134 @ Test (expected = CloudRuntimeException .class )
135135 public void buildConfigDriveTestIoException () {
136136 try (MockedStatic <ConfigDriveBuilder > configDriveBuilderMocked = Mockito .mockStatic (ConfigDriveBuilder .class )) {
137- configDriveBuilderMocked .when (() -> ConfigDriveBuilder .writeVendorEmptyJsonFile (nullable (File .class ))).thenThrow (CloudRuntimeException .class );
137+ configDriveBuilderMocked .when (() -> ConfigDriveBuilder .writeVendorDataJsonFile (nullable (File .class ))).thenThrow (CloudRuntimeException .class );
138138 Mockito .when (ConfigDriveBuilder .buildConfigDrive (null , new ArrayList <>(), "teste" , "C:" , null , supportedServices )).thenCallRealMethod ();
139139 ConfigDriveBuilder .buildConfigDrive (null , new ArrayList <>(), "teste" , "C:" , null , supportedServices );
140140 }
@@ -144,7 +144,7 @@ public void buildConfigDriveTestIoException() {
144144 public void buildConfigDriveTest () {
145145 try (MockedStatic <ConfigDriveBuilder > configDriveBuilderMocked = Mockito .mockStatic (ConfigDriveBuilder .class )) {
146146
147- configDriveBuilderMocked .when (() -> ConfigDriveBuilder .writeVendorEmptyJsonFile (Mockito .any (File .class ))).then (invocationOnMock -> null );
147+ configDriveBuilderMocked .when (() -> ConfigDriveBuilder .writeVendorDataJsonFile (Mockito .any (File .class ))).then (invocationOnMock -> null );
148148
149149 configDriveBuilderMocked .when (() -> ConfigDriveBuilder .writeVmMetadata (Mockito .anyList (), Mockito .anyString (), Mockito .any (File .class ), anyMap ())).then (invocationOnMock -> null );
150150
@@ -163,7 +163,7 @@ public void buildConfigDriveTest() {
163163 Assert .assertEquals ("mockIsoDataBase64" , returnedIsoData );
164164
165165 configDriveBuilderMocked .verify (() -> {
166- ConfigDriveBuilder .writeVendorEmptyJsonFile (Mockito .any (File .class ));
166+ ConfigDriveBuilder .writeVendorDataJsonFile (Mockito .any (File .class ));
167167 ConfigDriveBuilder .writeVmMetadata (Mockito .anyList (), Mockito .anyString (), Mockito .any (File .class ), anyMap ());
168168 ConfigDriveBuilder .linkUserData (Mockito .anyString ());
169169 ConfigDriveBuilder .generateAndRetrieveIsoAsBase64Iso (Mockito .anyString (), Mockito .anyString (), Mockito .anyString ());
@@ -172,33 +172,33 @@ public void buildConfigDriveTest() {
172172 }
173173
174174 @ Test (expected = CloudRuntimeException .class )
175- public void writeVendorEmptyJsonFileTestCannotCreateOpenStackFolder () {
175+ public void writeVendorDataJsonFileTestCannotCreateOpenStackFolder () {
176176 File folderFileMock = Mockito .mock (File .class );
177177 Mockito .doReturn (false ).when (folderFileMock ).mkdirs ();
178178
179- ConfigDriveBuilder .writeVendorEmptyJsonFile (folderFileMock );
179+ ConfigDriveBuilder .writeVendorDataJsonFile (folderFileMock );
180180 }
181181
182182 @ Test (expected = CloudRuntimeException .class )
183- public void writeVendorEmptyJsonFileTest () {
183+ public void writeVendorDataJsonFileTest () {
184184 File folderFileMock = Mockito .mock (File .class );
185185 Mockito .doReturn (false ).when (folderFileMock ).mkdirs ();
186186
187- ConfigDriveBuilder .writeVendorEmptyJsonFile (folderFileMock );
187+ ConfigDriveBuilder .writeVendorDataJsonFile (folderFileMock );
188188 }
189189
190190 @ Test
191- public void writeVendorEmptyJsonFileTestCreatingFolder () {
191+ public void writeVendorDataJsonFileTestCreatingFolder () {
192192 try (MockedStatic <ConfigDriveBuilder > configDriveBuilderMocked = Mockito .mockStatic (ConfigDriveBuilder .class )) {
193193
194194 File folderFileMock = Mockito .mock (File .class );
195195 Mockito .doReturn (false ).when (folderFileMock ).exists ();
196196 Mockito .doReturn (true ).when (folderFileMock ).mkdirs ();
197197
198198 //force execution of real method
199- configDriveBuilderMocked .when (() -> ConfigDriveBuilder .writeVendorEmptyJsonFile (folderFileMock )).thenCallRealMethod ();
199+ configDriveBuilderMocked .when (() -> ConfigDriveBuilder .writeVendorDataJsonFile (folderFileMock )).thenCallRealMethod ();
200200
201- ConfigDriveBuilder .writeVendorEmptyJsonFile (folderFileMock );
201+ ConfigDriveBuilder .writeVendorDataJsonFile (folderFileMock );
202202
203203 Mockito .verify (folderFileMock ).exists ();
204204 Mockito .verify (folderFileMock ).mkdirs ();
0 commit comments