$darkmode
DENOPTIM
denoptim.fitness.descriptors.SocketProvidedDescriptorTest Class Reference

Unit test for descriptor SocketProvidedDescriptor. More...

Collaboration diagram for denoptim.fitness.descriptors.SocketProvidedDescriptorTest:
[legend]

Classes

class  MySocketServer
 
class  RequestHandler
 

Public Member Functions

void setUpSertver () throws Exception
 
void ClossServer () throws Exception
 
void testSocketProvidedDescriptor () throws Exception
 

Private Member Functions

boolean closeEnough (double expected, double actual)
 

Private Attributes

SocketProvidedDescriptor descriptor
 
MySocketServer server
 
Gson jsonConverted
 

Static Private Attributes

static final String HOSTNAME = "localhost"
 

Detailed Description

Unit test for descriptor SocketProvidedDescriptor.

Author
Marco Foscato

Definition at line 51 of file SocketProvidedDescriptorTest.java.

Member Function Documentation

◆ closeEnough()

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

Definition at line 282 of file SocketProvidedDescriptorTest.java.

Referenced by denoptim.fitness.descriptors.SocketProvidedDescriptorTest.testSocketProvidedDescriptor().

Here is the caller graph for this function:

◆ ClossServer()

void denoptim.fitness.descriptors.SocketProvidedDescriptorTest.ClossServer ( ) throws Exception

Definition at line 81 of file SocketProvidedDescriptorTest.java.

References denoptim.fitness.descriptors.SocketProvidedDescriptorTest.server, and denoptim.fitness.descriptors.SocketProvidedDescriptorTest.MySocketServer.stopServer().

Here is the call graph for this function:

◆ setUpSertver()

◆ testSocketProvidedDescriptor()

void denoptim.fitness.descriptors.SocketProvidedDescriptorTest.testSocketProvidedDescriptor ( ) throws Exception

Definition at line 243 of file SocketProvidedDescriptorTest.java.

References denoptim.fitness.descriptors.SocketProvidedDescriptor.calculate(), denoptim.fitness.descriptors.SocketProvidedDescriptorTest.closeEnough(), and denoptim.fitness.descriptors.SocketProvidedDescriptorTest.descriptor.

Here is the call graph for this function:

Member Data Documentation

◆ descriptor

SocketProvidedDescriptor denoptim.fitness.descriptors.SocketProvidedDescriptorTest.descriptor
private

◆ HOSTNAME

final String denoptim.fitness.descriptors.SocketProvidedDescriptorTest.HOSTNAME = "localhost"
staticprivate

◆ jsonConverted

Gson denoptim.fitness.descriptors.SocketProvidedDescriptorTest.jsonConverted
private

◆ server


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