Skip to content

Commit

Permalink
Rename testGetName() to testToString() in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhahmann committed Nov 15, 2023
1 parent fcdebac commit 5a1730a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class ClusteringMethodTest
{

@Test
public void testGetName()
public void testToString()
{
assertEquals( "Average linkage", ClusteringMethod.AVERAGE_LINKAGE.toString() );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class CropCriteriaTest
{

@Test
public void testGetName()
public void testToString()
{
assertEquals( "Timepoint", CropCriteria.TIMEPOINT.toString() );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@

import org.junit.Test;

import java.util.NoSuchElementException;

import static org.junit.Assert.*;

public class SimilarityMeasureTest
{

@Test
public void testGetName()
public void testToString()
{
assertEquals( "Normalized Zhang Tree Distance", SimilarityMeasure.NORMALIZED_DIFFERENCE.toString() );
}
Expand Down

0 comments on commit 5a1730a

Please sign in to comment.