Created
April 9, 2025 14:28
-
-
Save martin-mfg/26f90d4b4e4392846b8416cc0d8efe4b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
diff --git a/pom.xml b/pom.xml | |
index 402a6a8..0fedd31 100644 | |
--- a/pom.xml | |
+++ b/pom.xml | |
@@ -636,7 +636,7 @@ | |
</configOptions> | |
<importMappings> | |
- <importMapping>PersonalStatusType=at.swgt.model.PersonalStatusType</importMapping> | |
+<!-- <importMapping>PersonalStatusType=at.swgt.model.PersonalStatusType</importMapping>--> | |
</importMappings> | |
<!-- | |
<enumNameMappings> | |
diff --git a/src/main/java/at/swgt/model/PersonalStatusType.java b/src/main/java/at/swgt/model/PersonalStatusType.java | |
deleted file mode 100644 | |
index 7e8f69a..0000000 | |
--- a/src/main/java/at/swgt/model/PersonalStatusType.java | |
+++ /dev/null | |
@@ -1,12 +0,0 @@ | |
-package at.swgt.model; | |
- | |
-// fix for bad naming in openapi | |
-public enum PersonalStatusType { | |
- OK, | |
- Test, | |
- StBP, | |
- StuBei, | |
- VorAnm, | |
- extern, | |
- VANoHStat | |
-} | |
diff --git a/src/test/java/at/swgt/rest/test/OpenTuitionFeesRestServiceTest.java b/src/test/java/at/swgt/rest/test/OpenTuitionFeesRestServiceTest.java | |
index 9b831db..84b9ef7 100644 | |
--- a/src/test/java/at/swgt/rest/test/OpenTuitionFeesRestServiceTest.java | |
+++ b/src/test/java/at/swgt/rest/test/OpenTuitionFeesRestServiceTest.java | |
@@ -1,6 +1,6 @@ | |
package at.swgt.rest.test; | |
-import at.swgt.model.PersonalStatusType; | |
+import at.campusonline.api.generated.model.PersonalStatusType; | |
import at.campusonline.api.generated.model.SemesterListResource1; | |
import at.campusonline.api.generated.model.SemesterResource; | |
import at.campusonline.api.generated.model.SemesterType; | |
@@ -37,7 +37,7 @@ public class OpenTuitionFeesRestServiceTest { | |
public void beforeEach() { | |
StudentPersonResource student = new StudentPersonResource(); | |
student.setMatriculationNumber("01003038"); | |
- student.setPersonalStatusType(PersonalStatusType.Test); | |
+ student.setPersonalStatusType(PersonalStatusType.TEST); | |
Mockito.when(studyApi.studyApiStudentPersonsPersonUidGet(any())) | |
.thenReturn(student); | |
diff --git a/src/test/java/at/swgt/rest/test/PaymentRestServiceTest.java b/src/test/java/at/swgt/rest/test/PaymentRestServiceTest.java | |
index 2d6f8d6..9a29159 100644 | |
--- a/src/test/java/at/swgt/rest/test/PaymentRestServiceTest.java | |
+++ b/src/test/java/at/swgt/rest/test/PaymentRestServiceTest.java | |
@@ -1,6 +1,6 @@ | |
package at.swgt.rest.test; | |
-import at.swgt.model.PersonalStatusType; | |
+import at.campusonline.api.generated.model.PersonalStatusType; | |
import at.campusonline.api.generated.model.SemesterListResource1; | |
import at.campusonline.api.generated.model.SemesterResource; | |
import at.campusonline.api.generated.model.SemesterType; | |
@@ -104,7 +104,7 @@ public class PaymentRestServiceTest { | |
public void shouldEnterNewPayment() { | |
StudentPersonResource student = new StudentPersonResource(); | |
student.setMatriculationNumber("01003038"); | |
- student.setPersonalStatusType(PersonalStatusType.Test); | |
+ student.setPersonalStatusType(PersonalStatusType.TEST); | |
Mockito.when(studyApi.studyApiStudentPersonsPersonUidGet(any())) | |
.thenReturn(student); | |
RestAssured.enableLoggingOfRequestAndResponseIfValidationFails(); | |
@@ -194,7 +194,7 @@ public class PaymentRestServiceTest { | |
public void shouldWorkWithValidSemesterKey() { | |
StudentPersonResource student = new StudentPersonResource(); | |
student.setMatriculationNumber("01003038"); | |
- student.setPersonalStatusType(PersonalStatusType.Test); | |
+ student.setPersonalStatusType(PersonalStatusType.TEST); | |
Mockito.when(studyApi.studyApiStudentPersonsPersonUidGet(any())) | |
.thenReturn(student); | |
RestAssured.enableLoggingOfRequestAndResponseIfValidationFails(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment