Skip to content
Snippets Groups Projects
Commit a2a02811 authored by Matej Lukes's avatar Matej Lukes
Browse files

mesh model tests moved from project application to MeshModel projet and changed to junit 3

parent 4278d18a
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,7 @@
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
......@@ -88,10 +89,11 @@
<artifactId>vecmath</artifactId>
<version>1.5.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>RELEASE</version>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
......
package cz.fidentis.analyst.mesh.core;
import static org.junit.jupiter.api.Assertions.*;
import org.testng.annotations.Test;
import static org.testng.AssertJUnit.assertEquals;
/**
* Unit test for cornerTableRow
......@@ -10,7 +12,7 @@ class CornerTableRowTest {
/**
* unit test for getVertex
*/
@org.junit.jupiter.api.Test
@Test
void getVertexIndex() {
CornerTableRow row = new CornerTableRow(42, -1);
assertEquals(42, row.getVertexIndex());
......@@ -19,7 +21,7 @@ class CornerTableRowTest {
/**
* Unit test for getOppositeCornerIndex
*/
@org.junit.jupiter.api.Test
@Test
void getOppositeCornerIndex() {
CornerTableRow row = new CornerTableRow(0, 42);
assertEquals(42, row.getOppositeCornerIndex());
......@@ -28,7 +30,7 @@ class CornerTableRowTest {
/**
* Unit test for setOppositeCornerIndex
*/
@org.junit.jupiter.api.Test
@Test
void setOppositeCornerIndex() {
CornerTableRow row = new CornerTableRow(0, 42);
assertEquals(42, row.getOppositeCornerIndex());
......
package cz.fidentis.analyst.mesh.core;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import org.testng.annotations.Test;
import static org.testng.AssertJUnit.assertEquals;
/**
* Unit tests for CornerTable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment