blob: 9293a90dcea0bd74e23af5b993d59217dbbc2fba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package org.openslx.virtualization.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" ) );
} );
}
}
|