VoidValue implements CellValue { public static VoidValue from(final Object o) throws FastOdsException { if (o == null || o instanceof VoidValue) { return INSTANCE; } else { throw new FastOdsException("Can't cast " + o + " to Void"); } } private  VoidValue(); static VoidValue from(final Object o); @Override void setToCell(final TableCell tableCell); static final VoidValue INSTANCE; }
@Test public void testFromNull() throws FastOdsException { Assert.assertEquals(VoidValue.INSTANCE, VoidValue.from(null)); }
@Test public void testFromVV() throws FastOdsException { Assert.assertEquals(VoidValue.INSTANCE, VoidValue.from(VoidValue.INSTANCE)); }
@Test(expected = FastOdsException.class) public void testFromString() throws FastOdsException { VoidValue.from("VoidValue.INSTANCE"); }