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