/** * Creates a plane info object. * * @param z The selected z-section. * @param t The selected time-point. * @param c The selected channel. * @return See above. * @throws Exception Thrown if an error occurred. */ public PlaneInfo createPlaneInfo(int z, int t, int c) throws Exception { PlaneInfo planeInfo = new PlaneInfoI(); planeInfo.setTheZ(omero.rtypes.rint(z)); planeInfo.setTheC(omero.rtypes.rint(c)); planeInfo.setTheT(omero.rtypes.rint(t)); planeInfo.setDeltaT(omero.rtypes.rdouble(0.5)); return planeInfo; }
@Test(dependsOnMethods = {"testMetadataLevel"}) public void testPlaneInfoZCT() { List<IObjectContainer> containers = store.getIObjectContainers(PlaneInfo.class); for (IObjectContainer container : containers) { PlaneInfo planeInfo = (PlaneInfo) container.sourceObject; assertNotNull("theZ is null", planeInfo.getTheZ()); assertNotNull("theC is null", planeInfo.getTheC()); assertNotNull("theT is null", planeInfo.getTheT()); } }