$darkmode
DENOPTIM
denoptim.fitness.FitnessProviderTest Class Reference

Unit test for internal fitness provider. More...

Collaboration diagram for denoptim.fitness.FitnessProviderTest:
[legend]

Public Member Functions

void testConfigureDescriptorsList () throws Exception
 
void testGetFitness () throws Exception
 
void testGetFitnessWithCustomDescriptors () throws Exception
 
void testGetFitnessWithParametrizedDescriptors () throws Exception
 This test is reproducing most of what done in FitnessParametersTest#testProcessExpressions() so if both fail the problem is most likely in FitnessParameters. More...
 
void testGetConstantFitness () throws Exception
 

Package Functions

void setUp ()
 

Static Package Attributes

static File tempDir
 

Private Member Functions

boolean closeEnough (double expected, double actual)
 

Private Attributes

SmilesParser sp
 
Logger logger
 

Static Private Attributes

static final String SEP = System.getProperty("file.separator")
 

Detailed Description

Unit test for internal fitness provider.

Author
Marco Foscato

Definition at line 55 of file FitnessProviderTest.java.

Member Function Documentation

◆ closeEnough()

boolean denoptim.fitness.FitnessProviderTest.closeEnough ( double  expected,
double  actual 
)
private

Definition at line 310 of file FitnessProviderTest.java.

Referenced by denoptim.fitness.FitnessProviderTest.testGetConstantFitness(), and denoptim.fitness.FitnessProviderTest.testGetFitnessWithParametrizedDescriptors().

Here is the caller graph for this function:

◆ setUp()

void denoptim.fitness.FitnessProviderTest.setUp ( )
package

◆ testConfigureDescriptorsList()

void denoptim.fitness.FitnessProviderTest.testConfigureDescriptorsList ( ) throws Exception

◆ testGetConstantFitness()

◆ testGetFitness()

void denoptim.fitness.FitnessProviderTest.testGetFitness ( ) throws Exception

Definition at line 108 of file FitnessProviderTest.java.

References denoptim.fitness.DescriptorForFitness.addDependentVariable(), denoptim.fitness.FitnessProvider.getFitness(), denoptim.fitness.FitnessProviderTest.logger, and denoptim.fitness.FitnessProviderTest.sp.

Here is the call graph for this function:

◆ testGetFitnessWithCustomDescriptors()

void denoptim.fitness.FitnessProviderTest.testGetFitnessWithCustomDescriptors ( ) throws Exception

Definition at line 173 of file FitnessProviderTest.java.

References denoptim.fitness.DescriptorForFitness.addDependentVariable(), denoptim.constants.DENOPTIMConstants.FITNESSTAG, denoptim.fitness.FitnessProvider.getFitness(), denoptim.fitness.FitnessProviderTest.logger, and denoptim.fitness.FitnessProviderTest.sp.

Here is the call graph for this function:

◆ testGetFitnessWithParametrizedDescriptors()

Member Data Documentation

◆ logger

◆ SEP

final String denoptim.fitness.FitnessProviderTest.SEP = System.getProperty("file.separator")
staticprivate

◆ sp

◆ tempDir

File denoptim.fitness.FitnessProviderTest.tempDir
staticpackage

The documentation for this class was generated from the following file: