blob: 2572c582d72be0e083ab05908d29f62da7a4b233 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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" ) );
} );
}
}
|