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