Esempio n. 1
0
 @Test(expected = Sphere1D.NoSubSpaceException.class)
 public void testSubSpace() {
   Sphere1D.getInstance().getSubSpace();
 }
Esempio n. 2
0
 @Test
 public void testSerialization() {
   Space s1 = Sphere1D.getInstance();
   Space deserialized = (Space) TestUtils.serializeAndRecover(s1);
   Assert.assertTrue(s1 == deserialized);
 }
Esempio n. 3
0
 @Test
 public void testDimension() {
   Assert.assertEquals(1, Sphere1D.getInstance().getDimension());
 }