use of dmg.cells.nucleus.InitialisableCellInfo in project dcache by dCache.
the class CellInfoMsgHandlerTests method testReceivedCellInfo.
@Test
public void testReceivedCellInfo() {
CellInfo[] info = new CellInfo[1];
String version = "version";
String release = "release";
String cellName = "cell-1";
String cellType = "cell-1-type";
String cellClass = "cell-1-class";
String domainName = "domain-1";
Date creationTime = new Date();
String privateInfo = "cell-1-private";
String shortInfo = "cell-1-short";
int eventQueueSize = 3;
int threadCount = 5;
int state = 2;
CellVersion cellVersion = new CellVersion(version, release);
info[0] = new InitialisableCellInfo(cellName, cellType, cellClass, cellVersion, domainName, creationTime, privateInfo, shortInfo, eventQueueSize, threadCount, state);
info[0].setCellVersion(new CellVersion(version, release));
_handler.process(info, 10);
Queue<StateUpdate> updates = _sum.getQueue();
assertEquals("checking StateUpdateManager's queue size", 1, updates.size());
assertCellInfo(updates.poll(), info[0]);
}
Aggregations