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