VMNodeBean extends JobNodeBean { @Override public boolean hasSubNodes() { return false; } VMNodeBean(CloudVmStatus vmStatus, boolean hasRights, FastDateFormat fmt); @Override void reCalculate(); @Override List<JobNodeBean> getSubNodes(); @Override boolean hasSubNodes(); @Override boolean isKillable(); @Override boolean isStopable(); @Override boolean isRunnable(); @Override boolean isPausable(); @Override boolean isRampPausable(); @Override String getType();  }
@Test public void testHasSubNodes_1() throws Exception { CloudVmStatus cloudVmStatus = new CloudVmStatus("", "", "", JobStatus.Completed, VMImageType.AGENT, VMRegion.ASIA_1, VMStatus.pending, new ValidationStatus(), 1, 1, new Date(), new Date()); cloudVmStatus.setTotalTps(1); cloudVmStatus.setUserDetails(new LinkedList()); VMNodeBean fixture = new VMNodeBean(cloudVmStatus, true, FastDateFormat.getDateTimeInstance(FastDateFormat.MEDIUM, FastDateFormat.MEDIUM)); boolean result = fixture.hasSubNodes(); assertTrue(!result); }