use of net.imagej.table.BoolTable in project imagej-omero by imagej.
the class UploadTableTest method testBoolTable.
@Test
public void testBoolTable() throws ServerError, PermissionDeniedException, CannotCreateSessionException, ExecutionException, DSOutOfServiceException, DSAccessException {
final BoolTable table = new DefaultBoolTable(2, 4);
table.get(0).fill(new boolean[] { true, true, false, false });
table.get(1).fill(new boolean[] { true, false, true, false });
// Create expectations
setUpMethodCalls();
final long id = service.uploadTable(credentials, "table", table, 0);
assertEquals(id, -1);
// NB: Can only capture in a Verifications block
new Verifications() {
{
TableData td;
tablesFacility.addTable((SecurityContext) any, (ImageData) any, anyString, td = withCapture());
tableEquals(table, td, Boolean.class);
}
};
}
Aggregations