Skip to content

Commit

Permalink
Unit-Test-Fehler repariert, Property fuer JUnit-Version in pom.xml dazu
Browse files Browse the repository at this point in the history
  • Loading branch information
MDecker-MobileComputing committed Nov 27, 2023
1 parent 43f2f40 commit f828008
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 4 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>${maven.compiler.source}</maven.compiler.target>
<junit.version>5.10.1</junit.version>
</properties>

<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.10.1</version>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down Expand Up @@ -69,7 +70,7 @@
</executions>
</plugin>

<!-- Versuch, Unit-Tests auch mit "GitHub Actions" zum Laufen zu bekommen. -->
<!-- Wird benötigt, damit Unit-Tests auch unter GitHub ausgeführt werden. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand All @@ -78,7 +79,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.10.1</version>
<version>${junit.version}</version>
</dependency>
</dependencies>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ void aufsteigendeReihenfolge(int seed) {

assertTrue( zahl >= 1 );
}

assertTrue( zahl < maxZahl );
//assertTrue( zahl > maxZahl ); // Check für Sortierreihenfolge

assertTrue( zahl > maxZahl ); // Check für Sortierreihenfolge
maxZahl = zahl;
}

Expand Down

0 comments on commit f828008

Please sign in to comment.