Skip to content

Commit 57697dd

Browse files
committed
added some tests
1 parent a3b9d67 commit 57697dd

File tree

9 files changed

+1485
-1100
lines changed

9 files changed

+1485
-1100
lines changed

src/main/java/edu/kit/datamanager/mappingservice/impl/MappingService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public class MappingService {
5151
/**
5252
* Repo holding all MappingRecords.
5353
*/
54-
private final IMappingRecordDao mappingRepo;
54+
@Autowired
55+
private IMappingRecordDao mappingRepo;
5556
/**
5657
* Path to directory holding all mapping files.
5758
*/
@@ -63,9 +64,8 @@ public class MappingService {
6364
private final static Logger LOGGER = LoggerFactory.getLogger(MappingService.class);
6465

6566
@Autowired
66-
public MappingService(ApplicationProperties applicationProperties, IMappingRecordDao mappingRepo) {
67+
public MappingService(ApplicationProperties applicationProperties) {
6768
init(applicationProperties);
68-
this.mappingRepo = mappingRepo;
6969
}
7070

7171
/**

src/main/java/edu/kit/datamanager/mappingservice/plugins/MappingPluginException.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,14 @@ public MappingPluginException(MappingPluginState state, String message, Throwabl
6060
super(message, cause);
6161
this.state = state;
6262
}
63+
64+
/**
65+
* This method returns the state of the plugin.
66+
*
67+
* @return The state of the plugin.
68+
*/
69+
public MappingPluginState getState() {
70+
return state;
71+
}
6372
}
6473

0 commit comments

Comments
 (0)