Skip to content

Commit 41b288a

Browse files
author
Stefan Hahmann
committed
Update ApposePixiTest to replace deprecated exceptions with IOException
1 parent 9f76b0f commit 41b288a

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/test/java/org/mastodon/mamut/appose/ApposePixiTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import static org.junit.jupiter.api.Assertions.assertTrue;
44

5+
import java.io.IOException;
56
import java.util.ArrayList;
67
import java.util.List;
78
import java.util.Map;
@@ -10,8 +11,6 @@
1011
import org.apposed.appose.Builder;
1112
import org.apposed.appose.Environment;
1213
import org.apposed.appose.Service;
13-
import org.apposed.appose.TaskException;
14-
import org.apposed.appose.BuildException;
1514
import org.junit.jupiter.api.Test;
1615

1716
class ApposePixiTest
@@ -116,7 +115,7 @@ class ApposePixiTest
116115
+ "cuda-dev = { features = ['cuda', 'dev'], solve-group = 'default' }";
117116

118117
@Test
119-
void testApposePixi() throws BuildException, InterruptedException, TaskException
118+
void testApposePixi() throws InterruptedException, IOException
120119
{
121120
Environment env = Appose.pixi().content( ENV_CONTENT ).logDebug().build();
122121
List< String > launchArgs = new ArrayList<>( env.launchArgs() );
@@ -165,7 +164,7 @@ public Map< String, String > envVars()
165164
}
166165

167166
@Test
168-
void testApposePixiToml() throws BuildException, InterruptedException, TaskException
167+
void testApposePixiToml() throws InterruptedException, IOException
169168
{
170169
Environment env = Appose.pixi( "src/test/resources/org/mastodon/mamut/appose/stardist.toml" ).logDebug().build();
171170
List< String > launchArgs = new ArrayList<>( env.launchArgs() );
@@ -214,7 +213,7 @@ public Map< String, String > envVars()
214213
}
215214

216215
@Test
217-
void testApposePixiTomlGpu() throws BuildException, InterruptedException, TaskException
216+
void testApposePixiTomlGpu() throws InterruptedException, IOException
218217
{
219218
Environment env = Appose.pixi( "src/test/resources/org/mastodon/mamut/appose/stardist-gpu.toml" ).logDebug().build();
220219
try (Service python = env.python())

0 commit comments

Comments
 (0)