Skip to content

Commit 06b5f8f

Browse files
committed
fix: build
1 parent 1ed0926 commit 06b5f8f

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

backend/src/main/java/ch/xxx/aidoclibchat/adapter/client/ImportRestClient.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
*/
1313
package ch.xxx.aidoclibchat.adapter.client;
1414

15-
import java.io.IOException;
1615
import java.util.List;
1716

1817
import org.springframework.stereotype.Component;
@@ -33,6 +32,7 @@
3332
import ch.xxx.aidoclibchat.domain.model.entity.WorkLink;
3433
import ch.xxx.aidoclibchat.usecase.mapping.TableMapper;
3534
import tools.jackson.dataformat.csv.CsvMapper;
35+
import tools.jackson.dataformat.csv.CsvSchema;
3636

3737
@Component
3838
public class ImportRestClient implements ImportClient {
@@ -56,12 +56,8 @@ public List<Artist> importArtists() {
5656

5757
private <T> List<T> mapString(String result, Class<T> myClass) {
5858
List<T> zipcodes = List.of();
59-
try {
60-
zipcodes = this.csvMapper.readerFor(myClass).with(CsvSchema.builder().setUseHeader(true).build())
61-
.<T>readValues(result).readAll();
62-
} catch (IOException e) {
63-
throw new RuntimeException(e);
64-
}
59+
zipcodes = this.csvMapper.readerFor(myClass).with(CsvSchema.builder().setUseHeader(true).build())
60+
.<T>readValues(result).readAll();
6561
return zipcodes;
6662
}
6763

backend/src/test/java/ch/xxx/aidoclibchat/architecture/MyArchitectureTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.junit.jupiter.api.Test;
2121
import org.slf4j.Logger;
2222
import org.slf4j.LoggerFactory;
23-
import org.springframework.boot.web.reactive.error.DefaultErrorAttributes;
2423
import org.springframework.context.annotation.Configuration;
2524
import org.springframework.core.annotation.Order;
2625
import org.springframework.scheduling.annotation.Scheduled;
@@ -91,7 +90,7 @@ public void ruleControllerAnnotations() {
9190
@Test
9291
public void ruleExceptionsType() {
9392
ArchRule exceptionType = ArchRuleDefinition.classes().that().resideInAPackage("..domain.exceptions..").should()
94-
.beAssignableTo(RuntimeException.class).orShould().beAssignableTo(DefaultErrorAttributes.class);
93+
.beAssignableTo(RuntimeException.class);
9594
exceptionType.check(this.importedClasses);
9695
}
9796

0 commit comments

Comments
 (0)