This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: clean up of some code in several places * WIP * chore: package renaming + little coverage increase * feat: increased coverage + formatting by IntelliJ * feat: comments adjusted * fix: application layer had a dependency on the presentation layer * chore: cleanup
- Loading branch information
Showing
54 changed files
with
536 additions
and
451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...rmatievlaanderen/vsds/demonstrator/member/application/exceptions/MemberTypeException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package be.informatievlaanderen.vsds.demonstrator.member.application.exceptions; | ||
|
||
public class MemberTypeException extends RuntimeException { | ||
private final String collection; | ||
private final String memberType; | ||
|
||
public MemberTypeException(String collection, String memberType) { | ||
this.collection = collection; | ||
this.memberType = memberType; | ||
|
||
} | ||
|
||
@Override | ||
public String getMessage() { | ||
return "Member of collection %s was not of expected type %s".formatted(collection, memberType); | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
...rmatievlaanderen/vsds/demonstrator/member/application/exceptions/MembertypeException.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...laanderen/vsds/demonstrator/member/application/exceptions/MissingCollectionException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...aanderen/vsds/demonstrator/member/application/exceptions/NoGeometryProvidedException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package be.informatievlaanderen.vsds.demonstrator.member.application.exceptions; | ||
|
||
public class NoGeometryProvidedException extends RuntimeException { | ||
@Override | ||
public String getMessage() { | ||
return "No geometry could be found in the provided member"; | ||
} | ||
@Override | ||
public String getMessage() { | ||
return "No geometry could be found in the provided member"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...trator/member/rest/dtos/LineChartDto.java → ...pplication/valueobjects/LineChartDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...atievlaanderen/vsds/demonstrator/member/application/valueobjects/MemberIngestedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package be.informatievlaanderen.vsds.demonstrator.member.application.valueobjects; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class MemberIngestedEvent { | ||
private final MemberDto memberDto; | ||
|
||
public MemberIngestedEvent(@NotNull MemberDto memberDto) { | ||
this.memberDto = memberDto; | ||
} | ||
|
||
public MemberDto getMemberDto() { | ||
return memberDto; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e/informatievlaanderen/vsds/demonstrator/member/domain/member/valueobjects/LineChart.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rator/member/rest/dtos/CoordinateDto.java → ...mber/presentation/dtos/CoordinateDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nstrator/member/rest/dtos/DataSetDto.java → .../member/presentation/dtos/DataSetDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...trator/member/rest/dtos/MapBoundsDto.java → ...ember/presentation/dtos/MapBoundsDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...r/member/rest/MemberExceptionHandler.java → ...entation/rest/MemberExceptionHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.