use of cbit.vcell.simdata.PortableCommandWrapper in project vcell by virtualcell.
the class PortableCommandWrapperTest method unset.
@Test(expected = IllegalStateException.class)
public void unset() {
PortableCommandWrapper empty = new PortableCommandWrapper();
System.err.println(empty.asJson() + ", should not print!");
}
use of cbit.vcell.simdata.PortableCommandWrapper in project vcell by virtualcell.
the class PortableCommandWrapperTest method badPackage.
@Test(expected = IllegalArgumentException.class)
public void badPackage() {
@SuppressWarnings("unused") PortableCommandWrapper shell = new PortableCommandWrapper(null);
System.err.println("should not print!");
}
use of cbit.vcell.simdata.PortableCommandWrapper in project vcell by virtualcell.
the class PortableCommandWrapperTest method store.
@Test
public void store() throws IOException {
String json = null;
{
SumPortableCommandTestClass c = new SumPortableCommandTestClass(2, 3);
PortableCommandWrapper shell = new PortableCommandWrapper(c);
json = shell.asJson();
// System.out.println(json);
c.execute();
}
PortableCommand c2 = PortableCommandWrapper.fromJson(json);
c2.execute();
}
Aggregations