blob: 2572c582d72be0e083ab05908d29f62da7a4b233 (
plain) (
tree)
|
|
package org.openslx.vm.disk;
import java.io.IOException;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
public class DiskImageTest
{
@Test
@DisplayName( "Test of invalid disk image" )
public void testInvalidDiskImage() throws IOException
{
Assertions.assertThrows( DiskImageException.class, () -> {
DiskImage.newInstance( DiskImageTestResources.getDiskFile( "image-default.invalid" ) );
} );
}
}
|