/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package randomevents.hive;
import org.junit.After;
import org.junit.AfterClass;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import randomevents.generator.UniformRandomGenerator;
/**
*
* @author Kirill
*/
public class HiveTest {
public HiveTest() {
}
@BeforeClass
public static void setUpClass() {
}
@AfterClass
public static void tearDownClass() {
}
@Before
public void setUp() {
}
@After
public void tearDown() {
}
/**
* Test of move method, of class Hive.
*/
@Test
public void testMove() {
System.out.println("bee move");
int n = 5;
Hive hive = new Hive(n);
hive.setRandomGenerator(new UniformRandomGenerator(0.11, 0.22, 0.15, 0.15, 0.27, 0.31));
double expResult = 3.0;
double distance = hive.rand();
System.out.println(distance);
//assertEquals(expResult, distance);
System.out.println("bee move 2");
hive.setRandomGenerator(new UniformRandomGenerator(6));
System.out.println(hive.rand());
}
}