From 92af4def500da71d1d263cf5da6a9c3a9287226d Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Tue, 20 Dec 2011 11:40:09 +0000 Subject: [PATCH] Fix test on Windows --- src/main/java/org/sonar/runner/RunnerException.java | 2 -- src/test/java/org/sonar/runner/LauncherTest.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/org/sonar/runner/RunnerException.java b/src/main/java/org/sonar/runner/RunnerException.java index de4bb00..777e5dd 100644 --- a/src/main/java/org/sonar/runner/RunnerException.java +++ b/src/main/java/org/sonar/runner/RunnerException.java @@ -19,8 +19,6 @@ */ package org.sonar.runner; -import java.io.IOException; - /** * @since 1.2 */ diff --git a/src/test/java/org/sonar/runner/LauncherTest.java b/src/test/java/org/sonar/runner/LauncherTest.java index 8d3f394..f857441 100644 --- a/src/test/java/org/sonar/runner/LauncherTest.java +++ b/src/test/java/org/sonar/runner/LauncherTest.java @@ -49,7 +49,7 @@ public class LauncherTest { public void shouldThrowExceptionWhenNoFilesMatchingPattern() throws Exception { File baseDir = new File(getClass().getResource("/org/sonar/runner/LauncherTest/shouldFilterFiles/").toURI()); try { - Launcher.getLibraries(baseDir, "*/*.jar"); + Launcher.getLibraries(baseDir, "*.jar"); fail("Exception expected"); } catch (RunnerException e) { assertThat(e.getMessage(), startsWith("No files matching pattern \"*.jar\" in directory ")); -- 2.39.5