Skip to content

Commit

Permalink
Bugfix: issue 239 (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
walaniam authored Aug 14, 2023
1 parent 2d7472e commit a2e5fac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.InvalidPathException;
import java.nio.file.StandardOpenOption;
import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -83,12 +84,10 @@ private void writeMarkers(List<File> success, List<File> failed) throws MojoExec
StandardOpenOption.CREATE,
StandardOpenOption.APPEND);

} catch (IOException e) {
} catch (IOException | InvalidPathException e) {
log.error("Failed to write BOAT markers to: {}", markersDirectory, e);
throw new MojoExecutionException("Failed to write BOAT markers", e);

}

}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
package com.backbase.oss.boat;

import static org.assertj.core.api.Assertions.assertThat;

import lombok.extern.slf4j.Slf4j;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.project.MavenProject;
import org.apache.maven.shared.invoker.*;
import org.codehaus.plexus.logging.console.ConsoleLogger;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.function.Executable;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
import org.junit.jupiter.params.provider.ValueSource;
import org.sonatype.plexus.build.incremental.DefaultBuildContext;

import java.io.File;
import java.util.*;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;

@Slf4j
class GeneratorTests {
Expand Down Expand Up @@ -189,8 +184,6 @@ void testBoatDocsWithNonExistingMarkersDirectory() {
mojo.markersDirectory = new File(" //43243 \\d a1r1\4t 11t134 t835jyz");
mojo.execute();
});


}

@Test
Expand Down

0 comments on commit a2e5fac

Please sign in to comment.