Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = 'com.josdem.jmetadata'
version = '1.3.8'
version = '1.3.9'

java {
toolchain {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void setFile(File file) {
| TagException
| ReadOnlyFileException
| InvalidAudioFrameException nre) {
log.error(nre.getMessage(), nre);
throw new BusinessException(nre.getMessage());
}
}

Expand Down
143 changes: 0 additions & 143 deletions src/main/java/com/josdem/jmetadata/util/MethodWrapper.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import java.awt.Image;
import java.io.File;
import java.util.List;

import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import com.josdem.jmetadata.util.ImageUtils;
import java.awt.Image;
import java.io.File;
import java.io.IOException;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.jaudiotagger.audio.AudioFile;
Expand Down Expand Up @@ -66,6 +67,15 @@ void setup() throws Exception {
metadataWriter.setFile(file);
}

@Test
@DisplayName("not setting file due to exception")
void shouldNotSetFile(TestInfo testInfo) throws Exception {
log.info(testInfo.getDisplayName());

doThrow(IOException.class).when(audioFileHelper).read(file);
assertThrows(BusinessException.class, () -> metadataWriter.setFile(file));
}

@Test
@DisplayName("writing artist")
void shouldWriteArtist(TestInfo testInfo) throws Exception {
Expand Down