Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaf25526

Browse files
committed
Update test
1 parentbf78f18 commitaf25526

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.idea/
33
java-snippets.iml
44
out/
5+
build/

‎src/test/java/LibraryTest.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ public void testCaptureScreen() throws IOException, AWTException {
119119
Library.captureScreen(filename);
120120
Filef =newFile(filename);
121121
assertTrue(f.exists() && !f.isDirectory());
122+
}catch (HeadlessExceptione) {
123+
// the test runs on computer without a screen, it is ok to fail
122124
}finally {
123125
Files.deleteIfExists(newFile(filename).toPath());
124126
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp