-
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.
- Loading branch information
1 parent
31f7a25
commit faa8925
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
server/src/test/java/de/uftos/repositories/ucdl/UcdlRepositoryImplTest.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,47 @@ | ||
package de.uftos.repositories.ucdl; | ||
|
||
import static org.junit.Assert.assertThrows; | ||
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; | ||
|
||
import org.apache.coyote.BadRequestException; | ||
import org.junit.jupiter.api.Test; | ||
|
||
@SuppressWarnings("checkstyle:MissingJavadocType") | ||
public class UcdlRepositoryImplTest { | ||
|
||
|
||
@Test | ||
void getUcdl() { | ||
assertThrows(BadRequestException.class, () -> new UcdlRepositoryImpl().getUcdl()); | ||
} | ||
|
||
@Test | ||
void setUcdl() { | ||
assertThrows(BadRequestException.class, () -> new UcdlRepositoryImpl().setUcdl("")); | ||
} | ||
|
||
@Test | ||
void getDefaultUcdl() { | ||
assertDoesNotThrow(() -> new UcdlRepositoryImpl().getDefaultUcdl()); | ||
} | ||
|
||
@Test | ||
void parseFile() { | ||
assertDoesNotThrow(() -> new UcdlRepositoryImpl().parseFile()); | ||
} | ||
|
||
@Test | ||
void parseString() { | ||
assertDoesNotThrow(() -> new UcdlRepositoryImpl().parseString("")); | ||
} | ||
|
||
@Test | ||
void getConstraints() { | ||
assertDoesNotThrow(() -> new UcdlRepositoryImpl().getConstraints()); | ||
} | ||
|
||
@Test | ||
void getConstraintsFromString() { | ||
assertDoesNotThrow(() -> new UcdlRepositoryImpl().getConstraintsFromString("")); | ||
} | ||
} |