Skip to content

Commit

Permalink
Ucdl repo test (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfloe authored Sep 1, 2024
1 parent 31f7a25 commit faa8925
Showing 1 changed file with 47 additions and 0 deletions.
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(""));
}
}

0 comments on commit faa8925

Please sign in to comment.